CAPEC-52

Detailed Abstraction Level
Meta — Very abstract, high-level category
Standard — Specific enough to understand
Detailed — Tied to specific technique
Draft MITRE CAPEC Status
Stable — Fully reviewed and complete
Draft — Under development
Incomplete — Partially defined
Deprecated — No longer recommended
Obsolete — Replaced by another CAPEC
Likelihood: High Severity: High
Embedding NULL Bytes

Description

An adversary embeds one or more null bytes in input to the target software. This attack relies on the usage of a null-valued byte as a string terminator in many environments. The goal is for certain components of the target software to stop processing the input when it encounters the null byte(s).

Prerequisites

The program does not properly handle postfix NULL terminators

Mitigations

Properly handle the NULL characters supplied as part of user input prior to doing anything with the data.

Skills Required

[Medium] Directory traversal

[High] Execution of arbitrary code