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
Related attack patterns· 1
Exploits12
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Weakness | Improper Handling of Alternate Encodingcwe-173 | 100% | live |
| Weakness | Incorrect Behavior Order: Validate Before Canonicalizecwe-180 | 100% | live |
| Weakness | Incorrect Comparisoncwe-697 | 100% | live |
| Weakness | Improper Neutralizationcwe-707 | 100% | live |
| Weakness | Incorrect Behavior Order: Validate Before Filtercwe-181 | 100% | live |
| Weakness | Incorrect Behavior Order: Early Validationcwe-179 | 100% | live |
| Weakness | Incomplete List of Disallowed Inputscwe-184 | 100% | live |
| Weakness | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')cwe-74 | 100% | live |
| Weakness | Encoding Errorcwe-172 | 100% | live |
| Weakness | Permissive List of Allowed Inputscwe-183 | 100% | live |
| Weakness | Improper Input Validationcwe-20 | 100% | live |
| Weakness | Improper Resolution of Path Equivalencecwe-41 | 100% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.