S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Misconfiguration·Updated May 6, 2025

Stack Trace Error Detection Scanner

This scanner detects the use of Stack Trace Error Detection in digital assets. Stack traces may expose internal workings of the application and leak sensitive data. Detecting them is vital for maintaining proper error handling and application security.

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsurl
CostFree
3.5k
Times Used
continuous scan runs
5.9k
Continuously Checked
assets under CS
7.6k
Vulnerabilities Found
confirmed findings
References
Detail

Stack Trace Error Detection is commonly used to assess error-handling practices in web applications. It targets applications across various industries such as e-commerce, finance, healthcare, and SaaS platforms. Developers and security professionals use it to uncover exposed internal errors that might be useful to attackers. Applications written in Java, .NET, and similar platforms are typically in scope. The scanner accesses random paths to trigger errors that may reveal sensitive stack traces. These exposures, while not always exploitable on their own, can aid attackers in tailoring further attacks.

This issue involves the application returning full or partial stack traces in its HTTP responses. Stack traces can provide insight into backend technologies, code structure, and libraries in use. Such information can be leveraged for reconnaissance and crafting more targeted attacks. It also indicates poor exception handling or lack of input validation in web applications. This is especially dangerous in production environments where such details should never be exposed. Identifying these leaks is a fundamental aspect of secure software design and deployment.

The scanner checks for stack traces by making HTTP requests to non-existent paths. It analyzes responses for known Java error patterns like "NullPointerException", "ArrayIndexOutOfBoundsException", or generic "Exception in thread". The use of both regex and word matchers helps ensure detection accuracy. The goal is to trigger error-handling logic that accidentally exposes application internals. Regular expressions specifically look for stack trace formats common in Java or similar technologies. This makes it a useful tool in evaluating web application resilience to improper error management.

If exploited by malicious actors, stack trace disclosures can lead to further targeted exploitation. Attackers may learn about class names, file paths, code structure, and exact lines of failure. This enables them to identify potential code injection points or craft payloads aligned with backend logic. It also raises the risk of identifying outdated or vulnerable third-party libraries. In advanced cases, attackers may combine this information with known exploits. Even without exploitation, such disclosures break the principle of least information exposure and present reputational and compliance risks.

REFERENCES

Solution Advice
  • Implement custom error pages that do not reveal backend information.
  • Configure web servers and frameworks to suppress stack trace messages in production.
  • Ensure proper exception handling is in place to catch and mask runtime errors.
  • Perform thorough code reviews to identify and remove verbose error outputs.
  • Use application firewalls or middleware that strips error content before serving responses.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.