CWE-541 — Inclusion of Sensitive Information in an Include File
CWE-541: Inclusion of Sensitive Information in an Include File
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
If an include file source is accessible, the file can contain usernames and passwords, as well as sensitive information pertaining to the application and system.
Common consequences
- Confidentiality: Read Application Data
Mitigations
Architecture and Design — Do not store sensitive information in include files.
Architecture and Design — Protect include files from being exposed.
References
- CWE page: https://cwe.mitre.org/data/definitions/541.html
- CWE list: https://cwe.mitre.org/data/index.html