[SECURITY] Add Connection-Level SSRF Protection (CVSS 9.4) #59
Reference in New Issue
Block a user
Delete Branch "security/fix-ssrf"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security Fix: Connection-Level SSRF Protection (CVSS 9.4)
Summary
Adds runtime IP validation at connection time to mitigate DNS rebinding attacks (TOCTOU vulnerability).
Problem
Previous implementation only validated URLs at pre-flight time. Attacker-controlled DNS servers with TTL=0 could return:
Solution
create_safe_socket(): Validates resolved IPs at connection timeget_safe_httpx_transport(): Provides safe transport for httpxChanges
Security References