Skip to content

πŸ›‘οΈ Sentinel: [CRITICAL] Fix SSRF in proxy endpoint#8

Merged
GhostTypes merged 1 commit intomainfrom
sentinel-fix-ssrf-2155436756076202811
Jan 19, 2026
Merged

πŸ›‘οΈ Sentinel: [CRITICAL] Fix SSRF in proxy endpoint#8
GhostTypes merged 1 commit intomainfrom
sentinel-fix-ssrf-2155436756076202811

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

🚨 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.


PR created automatically by Jules for task 2155436756076202811 started by @GhostTypes

🚨 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.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

πŸ‘‹ 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@GhostTypes GhostTypes marked this pull request as ready for review January 19, 2026 14:51
@GhostTypes GhostTypes merged commit db8d5b1 into main Jan 19, 2026
@GhostTypes GhostTypes deleted the sentinel-fix-ssrf-2155436756076202811 branch January 19, 2026 14:51
@github-actions
Copy link
Copy Markdown

πŸŽ‰ This PR is included in version 1.0.2 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant