Katalog CWE

CWE-914 · Słabość

Improper Control of Dynamically-Identified Variables

Abstrakcja
Bazowa
Status
Niekompletny
Dodano
26 stycznia 2013
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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

Many languages offer powerful features that allow the programmer to access arbitrary variables that are specified by an input string. While these features can offer significant flexibility and reduce development time, they can be extremely dangerous if attackers can modify unintended variables that have security implications.

Skutki

  • Integrity

    Modify Application Data

    An attacker could modify sensitive data or program variables.

  • Integrity

    Execute Unauthorized Code or Commands

  • Other, Integrity

    Varies by Context; Alter Execution Logic

Zapobieganie

  • Implementation · Input Validation

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

  • Implementation, Architecture and Design · Refactoring

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

Przykłady podatności

Słabość nadrzędna

Słabości podrzędne

Kiedy powstaje

Dotyczy

Not Language-Specific, Interpreted

Wpis z katalogu CWE 4.20.