Skip to content

Pin validated DNS resolution in fetch proxy - #3

Open
zeropath-ai-staging[bot] wants to merge 1 commit into
test-2from
zvuln_fix_2f2282dc
Open

zeropath-ai-staging[bot] wants to merge 1 commit into
test-2from
zvuln_fix_2f2282dc

Conversation

@zeropath-ai-staging

Copy link
Copy Markdown

The application is vulnerable to Server-Side Request Forgery (SSRF) because the DNS rebinding protection implemented in index.js is susceptible to a Time-Of-Check to Time-Of-Use (TOCTOU) race condition. While the code resolves the hostname to check for private IPs (line 44), this validation is bypassed because axios.get(url) on line 54 performs its own independent DNS resolution, allowing an attacker to serve a private IP after initial validation.

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.

0 participants