Skip to content

Block private addresses hidden in IPv6 instance URLs - #85

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
Aurelinth:fix/ipv6-private-addresses
Sep 11, 2026
Merged

Block private addresses hidden in IPv6 instance URLs#85
ralyodio merged 1 commit into
profullstack:masterfrom
Aurelinth:fix/ipv6-private-addresses

Conversation

@Aurelinth

Copy link
Copy Markdown
Contributor

The directory accepts instance URLs supplied by strangers and fetches them server-side. Its private-address filter covers IPv4 literals, but the equivalent IPv6 spellings still pass: for example, http://[::ffff:127.0.0.1] is canonicalized to ::ffff:7f00:1 and reaches the fetch path. Unspecified and link-local IPv6 addresses are accepted as well.

Reject private or loopback IPv4 addresses embedded in mapped and compatible IPv6 forms, plus unspecified and link-local IPv6 literals. Public mapped addresses remain accepted.

Regression coverage includes mapped loopback, RFC1918 and link-local IPv4 forms, the compatible loopback form, IPv6 unspecified and link-local addresses, and the public 172.32 boundary.

Validation: the affected URLs are accepted on the original revision and rejected after this change. The TypeScript build and all 249 local tests pass; git diff --check passes. The PostgreSQL-backed integration suite was unavailable locally.

Prepared and tested by Aurelinth. Submitted for the $0.25 bug-fix bounty. If accepted for payment, send SOL to 9Kz3tXKeEnXR1qGmjpJKsx7GTRuomF5kxV9oEAxbmWcQ.

@ralyodio
ralyodio merged commit 077af19 into profullstack:master Sep 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants