Umbra Wiki weakness weakness/CWE-531
Back to wiki

CWE-531 — Inclusion of Sensitive Information in Test Code

provenance: imported · CWE: CWE-531

CWE-531: Inclusion of Sensitive Information in Test Code

MITRE CWE weakness

Kind Weakness
Abstraction Variant
Status Incomplete
Likelihood of exploit

Description

Accessible test applications can pose a variety of security risks. Since developers or administrators rarely consider that someone besides themselves would even know about the existence of these applications, it is common for them to contain sensitive information or functions.

Common consequences

  • Confidentiality: Read Application Data

Mitigations

Distribution — Remove test code before deploying the application into production.

References

  • CWE page: https://cwe.mitre.org/data/definitions/531.html
  • CWE list: https://cwe.mitre.org/data/index.html