Source code disclosure
Description: Source code disclosure
Source code intended to be kept server-side can sometimes end up being disclosed to users. Such code may contain sensitive information such as database passwords and secret keys, which may help malicious users formulate attacks against the application.
Remediation: Source code disclosure
Server-side source code is normally disclosed to clients as a result of typographical errors in scripts or because of misconfiguration, such as failing to grant executable permissions to a script or directory. Review the cause of the code disclosure and prevent it from happening.
- CWE-18: Source Code
- CWE-200: Information Exposure
- CWE-388: Error Handling
- CWE-540: Information Exposure Through Source Code
- CWE-541: Information Exposure Through Include Source Code
- CWE-615: Information Exposure Through Comments
- CAPEC-37: Retrieve Embedded Sensitive Data
Type index (hex)
Type index (decimal)