COMMON WEAKNESS ENUMERATIONIncomplete

CWE-74

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Soyutlama

Class

Yapı

Simple

Sömürü İhtimali

High

Problemi anla

Problem nedir?

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Kök neden

Problem nasıl ve ne zaman oluşur?

Yaşam döngüsü evresi

Implementation

REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Risk

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

Read Application Data

Etkilenen güvenlik alanları: Confidentiality

Many injection attacks involve the disclosure of important information -- in terms of both data sensitivity and usefulness in further exploitation.
Bypass Protection Mechanism

Etkilenen güvenlik alanları: Access Control

In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
Alter Execution Logic

Etkilenen güvenlik alanları: Other

Injection attacks are characterized by the ability to significantly change the flow of a given process, and in some cases, to the execution of arbitrary code.
Other

Etkilenen güvenlik alanları: Integrity, Other

Data injection attacks lead to loss of data integrity in nearly all cases as the control-plane data injected is always incidental to data recall or writing.
Hide Activities

Etkilenen güvenlik alanları: Non-Repudiation

Often the actions performed by injected control code are unlogged.

Savunma

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

Requirements

Güvenlik gereksinimi

Detay
Programming languages and supporting technologies might be chosen which are not subject to these issues.

Implementation

Uygulama aşaması savunması

Detay
Utilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.

Doğrulama

Nasıl tespit edilir?

Automated Static Analysis

High
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

MITRE görseli

Zafiyet ilişkisi ve akışı

CWE-74 MITRE diagramı
CWE-74: Common Weakness Enumeration Entry CWE-74 · DayBreach Sözlük · DayBreach