Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

πŸ›‘οΈ Sentinel: [CRITICAL] Fix SSRF vulnerabilities via urllib#53

Merged
mapleleaflatte03 merged 1 commit intomainfrom
sentinel-ssrf-fix-6544187452461386101
Apr 6, 2026
Merged

πŸ›‘οΈ Sentinel: [CRITICAL] Fix SSRF vulnerabilities via urllib#53
mapleleaflatte03 merged 1 commit intomainfrom
sentinel-ssrf-fix-6544187452461386101

Conversation

@mapleleaflatte03
Copy link
Copy Markdown
Owner

πŸ›‘οΈ Sentinel: [CRITICAL] Fix SSRF vulnerabilities via urllib

🚨 Severity: CRITICAL
πŸ’‘ Vulnerability: Server-Side Request Forgery (SSRF) vulnerabilities in URL handling via Python's standard urllib. The application accepted untrusted URLs without ensuring they correspond to a safe scheme (e.g. http:// or https://). Attackers could supply schemes like file:// to read local files on the server (e.g., file:///etc/passwd).
🎯 Impact: Attackers could read local files on the system and potentially reach internal network resources depending on the server configuration.
πŸ”§ Fix: Added robust case-insensitive URL scheme validation checking for http:// and https:// prior to issuing requests with urllib in kernel/federation.py, kernel/treasury.py, and kernel/workspace.py. Raises FederationDeliveryError or RuntimeError as appropriate.
βœ… Verification: Ran unit tests to verify standard execution and manually tested with file:///etc/passwd to ensure the validation immediately fails and raises an exception.


PR created automatically by Jules for task 6544187452461386101 started by @mapleleaflatte03

🚨 Severity: CRITICAL
πŸ’‘ Vulnerability: Server-Side Request Forgery (SSRF) vulnerabilities in URL handling via Python's standard `urllib`. The application accepted untrusted URLs without ensuring they correspond to a safe scheme (e.g. `http://` or `https://`). Attackers could supply schemes like `file://` to read local files on the server (e.g., `file:///etc/passwd`).
🎯 Impact: Attackers could read local files on the system and potentially reach internal network resources depending on the server configuration.
πŸ”§ Fix: Added robust case-insensitive URL scheme validation checking for `http://` and `https://` prior to issuing requests with `urllib` in `kernel/federation.py`, `kernel/treasury.py`, and `kernel/workspace.py`. Raises `FederationDeliveryError` or `RuntimeError` as appropriate.
βœ… Verification: Ran unit tests to verify standard execution and manually tested with `file:///etc/passwd` to ensure the validation immediately fails and raises an exception.

Co-authored-by: mapleleaflatte03 <240846662+mapleleaflatte03@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

πŸ‘‹ 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.

@mapleleaflatte03 mapleleaflatte03 merged commit a968e0c into main Apr 6, 2026
3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant