Product-Generated Error Message Information Leak |
Weakness ID: 210 (Weakness Base) | Status: Draft |
Description Summary
Example 1
The following code uses custom configuration files for each user in the application. It checks to see if the file exists on the system before attempting to open and use the file. If the configuration file does not exist, then an error is generated, and the application exits.
If this code is running on a server, such as a web application, then the person making the request should not know what the full pathname of the configuration directory is. By submitting a username that is not associated with a configuration file, an attacker could get this pathname from the error message. It could then be used to exploit path traversal, symbolic link following, or other problems that may exist elsewhere in the application.
Reference | Description |
---|---|
CVE-2005-1745 | Infoleak of sensitive information in error message (physical access required). |
Phase: Implementation Any error should be parsed for dangerous revelations. |
Build: Debugging information should not make its way into a production release. |
Handle exceptions internally and do not display errors containing potentially sensitive information to a user. Create default error pages if necessary. |
Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
---|---|---|---|---|
ChildOf | ![]() | 209 | Information Exposure Through an Error Message | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 535 | Information Leak Through Shell Error Message | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 536 | Information Leak Through Servlet Runtime Error Message | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 537 | Information Leak Through Java Runtime Error Message | Development Concepts (primary)699 Research Concepts (primary)1000 |
ParentOf | ![]() | 550 | Information Leak Through Server Error Message | Development Concepts (primary)699 Research Concepts (primary)1000 |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
PLOVER | Product-Generated Error Message Infoleak |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
PLOVER | Externally Mined | |||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-09-08 | CWE Content Team | MITRE | Internal | |
updated Relationships, Other Notes, Taxonomy Mappings | ||||
2009-12-28 | CWE Content Team | MITRE | Internal | |
updated Demonstrative Examples |