CWE一覧に戻る
CWE-767

パブリック・メソッドによるクリティカルなプライベート変数へのアクセス

Access to Critical Private Variable via Public Method
脆弱性 作成中
JA

この製品は、プライベート変数を読み込んだり変更したりするパブリック・メソッドを定義している。

攻撃者がこの変数を変更して予期しない値を格納すると、コードの他の部分の仮定に違反する可能性がある。さらに、攻撃者がプライベート変数を読むことができれば、機密情報を暴露したり、さらなる攻撃を容易にしたりする可能性がある。

EN

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.

Scope: Integrity, Other / Impact: Modify Application Data; Other
Use class accessor and mutator methods appropriately. Perform validation when accepting data from a public method that is intended to modify a critical private variable. Also be sure that appropriate access controls are being applied when a public method interfaces with critical data.
MITRE公式ページ — CWE-767