You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent Squid config injection via --allow-domains and --allow-urls (#1517)
* fix: prevent Squid config injection via domain inputs
Malicious input to --allow-domains or --allow-urls containing
whitespace, newlines, or null bytes could inject arbitrary
directives into the generated squid.conf. This adds:
1. Character validation in validateDomainOrPattern() rejects
whitespace, null bytes, quotes, semicolons, backslashes
2. assertSafeForSquidConfig() in squid-config.ts validates
every value before interpolation into squid.conf
3. URL pattern validation in cli.ts for --allow-urls
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use JSON.stringify in error message to prevent log injection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: use shared SQUID_DANGEROUS_CHARS for URL/domain validation
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/62b8aef1-1409-4f1d-8641-71dce77c2ceb
* fix: correct error message for URL pattern validation
Agent-Logs-Url: https://github.com/github/gh-aw-firewall/sessions/62b8aef1-1409-4f1d-8641-71dce77c2ceb
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
0 commit comments