Security context

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

geemus/netrc
master @ c7c5ceb
2
Fixes
4
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
lib/netrc.rb: most-fixed (2 issues). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

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

Auth Bypass: The library decrypted or read netrc credentials before enforcing permission checks, allowing unauthorized local processes to potentially access decrypted secrets if the configuration file permissions were overly permissive. This was mitigated by reordering the check before `gpg` decryption or reading.
Incorrect Privilege Assignment: Failing to enforce strict file permissions allowed the library to read netrc files that were world-readable or group-readable, risking accidental exposure of credentials to other users on a multi-user system.