COMMON WEAKNESS ENUMERATIONIncomplete

CWE-914

Improper Control of Dynamically-Identified Variables

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

Soyutlama

Base

Yapı

Simple

Sömürü İhtimali

Medium

Problemi anla

Problem nedir?

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

Genişletilmiş açıklama

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.

Kök neden

Problem nasıl ve ne zaman oluşur?

Yaşam döngüsü evresi

Implementation

Risk

Başarılı sömürü neye yol açar?

Modify Application Data

Etkilenen güvenlik alanları: Integrity

An attacker could modify sensitive data or program variables.
Execute Unauthorized Code or Commands

Etkilenen güvenlik alanları: Integrity

Varies by ContextAlter Execution Logic

Etkilenen güvenlik alanları: Other, Integrity

Savunma

Nasıl önlenir ve çözülür?

Implementation

Input Validation

Detay
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

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