Commit 4dbf039
security: block requests on DNS resolution failure
Previously, when DNS resolution failed during SSRF validation, the
request was allowed to proceed. This could be exploited by an attacker
using DNS manipulation or timing attacks to bypass SSRF protection.
Fix:
- Return { valid: false } when DNS resolution fails
- Log a warning for security monitoring
- Provide clear error message indicating DNS failure
This is a breaking change for edge cases where legitimate external
services have temporary DNS issues, but security takes precedence.
Severity: MEDIUM
CVSS: 4.9
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0b1b5b4 commit 4dbf039
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
| |||
0 commit comments