Description
The product does not return custom error pages to the user, possibly exposing sensitive information.
Potential Impact
Confidentiality
Read Application Data
Demonstrative Examples
Public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {try {...} catch (ApplicationSpecificException ase) {logger.error("Caught: " + ase.toString());}}<customErrors mode="Off" /><customErrors mode="RemoteOnly" /><customErrors mode="On" defaultRedirect="YourErrorPage.htm" />Real-World CVE Examples
| CVE ID | Description |
|---|---|
| CVE-2023-27998 | analytics platform does not have a custom error page, allowing access to sensitive information |
Related Weaknesses
Frequently Asked Questions
What is CWE-756?
CWE-756 (Missing Custom Error Page) is a software weakness identified by MITRE's Common Weakness Enumeration. It is classified as a Base-level weakness. The product does not return custom error pages to the user, possibly exposing sensitive information.
How can CWE-756 be exploited?
Attackers can exploit CWE-756 (Missing Custom Error Page) to read application data. This weakness is typically introduced during the Installation, System Configuration, Operation phase of software development.
How do I prevent CWE-756?
Follow secure coding practices, conduct code reviews, and use automated security testing tools (SAST/DAST) to detect this weakness early in the development lifecycle.
What is the severity of CWE-756?
CWE-756 is classified as a Base-level weakness (Medium abstraction). It has been observed in 1 real-world CVEs.