Repository navigation
Security fixes from the 2026-11-10 audit: pool API, redirects, NAT64, CSV, Discord embeds, SSH host keys, verified downloads - #375
Merged
Conversation
…l checks - Pool API (--serve): without --serve-password only requests addressed to an IP or localhost are answered (DNS rebinding); /pop, /delete and /report refuse cross-site browser requests (Sec-Fetch-Site / foreign Origin); upstream logins are masked unless the API is password-protected - netio: Authorization, Cookie and Proxy-Authorization are dropped when a redirect changes the host or goes from https to http - MCP fetch_url: use netpolicy.is_public_address (NAT64, 6to4, Teredo) - proxies.csv: text cells starting with = + - @ tab CR get a leading ' - Discord bot: escape markdown in third-party fields, no backticks in code - proxy-list workflow: pin GitHub's published SSH host keys - live list and geo/ASN databases: no unverified TLS fallback
| ["evil.example", f"evil.example:{port}", f"127.0.0.1:{port}", f"localhost:{port}", f"[::1]:{port}"]} | ||
|
|
||
| answers = run_server(client) | ||
| assert answers.pop("evil.example").startswith(b"HTTP/1.1 403") |
|
|
||
| answers = run_server(client) | ||
| assert answers.pop("evil.example").startswith(b"HTTP/1.1 403") | ||
| assert answers.pop(next(h for h in answers if h.startswith("evil"))).startswith(b"HTTP/1.1 403") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #369. Fixes from a full-project security audit (no critical or high findings).
/pop,/delete,/reportrefuse cross-site browser requests (Sec-Fetch-Site/Origin), also with a password. Without a password, upstream logins come back masked (user:•••@); with--serve-passwordthe full URL is returned as documented. New section in docs/proxy-server.md.fetch_url: target check now usesnetpolicy.is_public_address, which refuses NAT64-wrapped private addresses.StrictHostKeyChecking=yes); a test fails on accept-new anywhere.Behaviour changes users may notice: API by host name without a password → 403 (use localhost/IP or set a password); masked logins without a password; CSV cells with a leading apostrophe; behind a TLS-inspecting firewall the live list fails instead of loading unverified.