Skip to content

πŸ›‘οΈ Sentinel: [HIGH] Fix SSRF bypass via Local-Use IPv4/IPv6 Translation (RFC 8215)#84

Closed
ManupaKDU wants to merge 1 commit into
mainfrom
sentinel/ssrf-local-use-ipv4-ipv6-15943869541579030197
Closed

πŸ›‘οΈ Sentinel: [HIGH] Fix SSRF bypass via Local-Use IPv4/IPv6 Translation (RFC 8215)#84
ManupaKDU wants to merge 1 commit into
mainfrom
sentinel/ssrf-local-use-ipv4-ipv6-15943869541579030197

Conversation

@ManupaKDU

Copy link
Copy Markdown
Contributor

🚨 Severity: HIGH
πŸ’‘ Vulnerability: Server-Side Request Forgery (SSRF) bypass allowing attackers to ping internal IP addresses by wrapping them in Local-Use IPv4/IPv6 Translation (RFC 8215) addresses (e.g., 64:ff9b:1::127.0.0.1). Python's ipaddress module evaluates these as is_global = True and does not automatically extract the embedded IPv4 address.
🎯 Impact: An attacker could bypass SSRF IP blocklists and probe internal subnets or local resources.
πŸ”§ Fix: Added a manual check for the /96 mapping (ip_int >> 32 == 0x0064ff9b0001000000000000) to explicitly unpack the encapsulated IPv4 address and validate it using the standard SSRF blocklist rules. Added tests to guarantee this scenario is caught.
βœ… Verification: Run python3 -m unittest test_testping1.py and ensure the test_is_reachable_ssrf_bypass_local_use_translation test passes.


PR created automatically by Jules for task 15943869541579030197 started by @ManupaKDU

…on (RFC 8215)

Added SSRF protection for Local-Use IPv4/IPv6 Translation mappings
(`64:ff9b:1::/96`). Previously, Python's `ipaddress` module evaluated
these addresses as globally routable IPv6, allowing an attacker to ping
internal IPv4 addresses by wrapping them in this prefix. The embedded
IPv4 payload is now manually unwrapped and validated against existing
SSRF blocklists. Added corresponding unit tests to prevent regressions.

Co-authored-by: ManupaKDU <95234271+ManupaKDU@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.

@manupawickramasinghe manupawickramasinghe deleted the sentinel/ssrf-local-use-ipv4-ipv6-15943869541579030197 branch June 7, 2026 11:28
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.

2 participants