HTTP Stack Trace Obtainable
Description
Detects when a server exposes a full stack trace in its error response body, leaking internal implementation details such as file paths, class names, and line numbers that can aid an attacker in crafting further exploits.
Detection Strategy
• Sends an HTTP POST request with a malformed JWT in the Authorization header to trigger an authentication error
• Reports a vulnerability if the response status is 5xx and the body contains a <ul id="stacktrace"> element, the canonical markup emitted by Java frameworks (Spring Boot, Struts, etc.) when exposing a structured stack trace
• A non-5xx status, or a body where the stacktrace marker is not a <ul> element (e.g. <div id="stacktrace"> or class="stacktrace"), is not considered vulnerable
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' pentesting team, fill out this contact form.