π‘οΈ Sentinel: [CRITICAL] Fix SSRF in proxy endpoint#8
Conversation
π¨ Severity: CRITICAL π‘ Vulnerability: The `/api/proxy/` endpoint allowed users to request internal network resources (localhost, private IPs) leading to SSRF. π― Impact: Attackers could access internal services, metadata services (cloud), or the proxy server itself. π§ Fix: Implemented `is_safe_url` to validate input URLs, resolving hostnames and blocking private/loopback IPs. Added timeouts to prevent DoS. Hardened error messages. β Verification: Added `tests/test_ssrf.py` which confirms localhost requests are blocked (400) while external requests (google.com) succeed.
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
π This PR is included in version 1.0.2 π The release is available on GitHub release Your semantic-release bot π¦π |
π¨ Severity: CRITICAL
π‘ Vulnerability: The
/api/proxy/endpoint allowed users to request internal network resources (localhost, private IPs) leading to SSRF.π― Impact: Attackers could access internal services, metadata services (cloud), or the proxy server itself.
π§ Fix: Implemented
is_safe_urlto validate input URLs, resolving hostnames and blocking private/loopback IPs. Added timeouts to prevent DoS. Hardened error messages.β Verification: Added
tests/test_ssrf.pywhich confirms localhost requests are blocked (400) while external requests (google.com) succeed.PR created automatically by Jules for task 2155436756076202811 started by @GhostTypes