CWE-914

Improper Control of Dynamically-Identified Variables

High

Description

The product does not properly restrict reading from or writing to dynamically-identified variables.

Potential Impact

How to Fix

Implementation

For any externally-influenced input, check the input against an allowlist of internal program variables that are allowed to be modified.

Implementation

Refactor the code so that internal program variables do not need to be dynamically identified.

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-914 vulnerabilities in your codebase.

Get Security Assessment