Detailedlikelihood: Mediumseverity: MediumDraft

CAPEC-3Using Leading 'Ghost' Character Sequences to Bypass Input Filters

Abstraction
Detailed
Status
Draft
Likelihood
Medium
Severity
Medium

Description

Some APIs will strip certain leading characters from a string of parameters. An adversary can intentionally introduce leading "ghost" characters (extra characters that don't affect the validity of the request at the API layer) that enable the input to pass the filters and therefore process the adversary's input. This occurs when the targeted API will accept input data in several syntactic forms and interpret it in the equivalent semantic way, while the filter does not take into account the full spectrum of the syntactic forms acceptable to the targeted API.

Related weaknesses· 12

CWE-173CWE-41CWE-172CWE-179CWE-180CWE-181CWE-183CWE-184CWE-20CWE-74CWE-697CWE-707

Related attack patterns· 1

CAPEC-267 (ChildOf)

Exploits12

TypeTargetConfidenceTier
WeaknessImproper Handling of Alternate Encodingcwe-173100%live
WeaknessIncorrect Behavior Order: Validate Before Canonicalizecwe-180100%live
WeaknessIncorrect Comparisoncwe-697100%live
WeaknessImproper Neutralizationcwe-707100%live
WeaknessIncorrect Behavior Order: Validate Before Filtercwe-181100%live
WeaknessIncorrect Behavior Order: Early Validationcwe-179100%live
WeaknessIncomplete List of Disallowed Inputscwe-184100%live
WeaknessImproper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')cwe-74100%live
WeaknessEncoding Errorcwe-172100%live
WeaknessPermissive List of Allowed Inputscwe-183100%live
WeaknessImproper Input Validationcwe-20100%live
WeaknessImproper Resolution of Path Equivalencecwe-41100%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CAPEC
Exploiting Multiple Input Interpretation Layers
CAPEC
XSS Using Invalid Characters
CAPEC
Parameter Injection
CAPEC
Command Delimiters
CAPEC
Using Escaped Slashes in Alternate Encoding
CAPEC
XSS Using Doubled Characters
Sourced from MITRE CAPEC. Curated by Adam Lundqvist, SQUR.