Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

mikf/gallery-dl
master @ 4f0abb2
4
Fixes
0
CVEs
HIGH
Peak severity
66.7%
Coverage
Highlights
HTTP Header Injection: 1 prior fix. Scrutinize any change in this area.
gallery_dl/cache.py: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

HTTP Header Injection: Basic Authorization headers could be injected from .netrc data, potentially leading to credential theft or unauthorized access to protected resources.
SSL/TLS Bypass: Hostname verification could be disabled when verify_mode is CERT_NONE, though the fix was primarily to prevent a crash; the underlying insecure behavior remains when the user opts out of certificate checks.
Insecure Permissions: Cache database files were created with default permissions, allowing other local users to read potentially sensitive cached data.