Umbra Wiki weakness weakness/CWE-766
Back to wiki

CWE-766 — Critical Data Element Declared Public

provenance: imported · CWE: CWE-766

CWE-766: Critical Data Element Declared Public

MITRE CWE weakness

Kind Weakness
Abstraction Base
Status Incomplete
Likelihood of exploit

Description

The product declares a critical variable, field, or member to be public when intended security policy requires it to be private.

This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.

Common consequences

  • Integrity, Confidentiality: Read Application Data, Modify Application Data
  • Other: Reduce Maintainability

Mitigations

Implementation — Data should be private, static, and final whenever possible. This will assure that your code is protected by instantiating early, preventing access, and preventing tampering.

References

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