logo
Home/CWEs/CWE-767/

CWE-767 - Access to Critical Private Variable via Public Method

  • Abstraction:Base
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2009-05-27
  • Latest Modification Date:2023-06-29

Weakness Name

Access to Critical Private Variable via Public Method

Description

The product defines a public method that reads or modifies a private variable.

If an attacker modifies the variable to contain unexpected values, this could violate assumptions from other parts of the code. Additionally, if an attacker can read the private variable, it may expose sensitive information or make it easier to launch further attacks.

Common Consequences

Scope: Integrity, Other

Impact: Modify Application Data, Other

Related Weaknesses

CWE-668Exposure of Resource to Wrong Sphere