logo

Database

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.

Weakness:

234 - Technical information leak - Stacktrace

Category: Information Collection

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