Tenable Discovers SSRF Vulnerability in Java TLS Handshakes ... #1789
+19
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
What Tenable found
Tenable Research identified an SSRF primitive inside Java’s TLS client-certificate validation logic when a Java server performs mutual TLS (mTLS). A malicious client certificate can abuse the X.509 Authority Information Access (AIA) extension — specifically the CA Issuers URI — to make the server fetch attacker-chosen URIs during the TLS handshake. In some cases, this SSRF-style fetch can be turned into a Denial of Service (DoS) by...
🔧 Technical Details
When a system supports building incomplete X.509 chains by dereferencing Authority Information Access (AIA) → CA Issuers URIs, treat any peer-provided certificate chain as untrusted input. In mTLS, the server validates client certs; if AIA CA Issuers fetching is enabled, an attacker can supply a client leaf certificate with a crafted
CA Issuers - URI:...and omit intermediates, causing the server-side certpath builder to fetch attacker-chosen resources during the TLS handshake (SSRF). Instrumentation such as Java’s-Djava.security.debug=certpathcan revealCertStore URI:...dereferences, and tools likenccan capture the resulting outbound HTTP requests (including a controllableUser-Agentvia-Dhttp.agent).To convert AIA-based SSRF into a DoS, point CA Issuers to an expensive or unbounded source supported by the URI handler (e.g., on Unix-like systems
file:///dev/urandom<...🤖 Agent Actions
Summary:
file://URIs.-Dhttp.agent, netcat listener) and the impact of unbounded reads like/dev/urandom.Tests:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.