Detailedlikelihood: Lowseverity: MediumDraft

CAPEC-120Double Encoding

Abstraction
Detailed
Status
Draft
Likelihood
Low
Severity
Medium

Description

The adversary utilizes a repeating of the encoding process for a set of characters (that is, character encoding a character encoding of a character) to obfuscate the payload of a particular request. This may allow the adversary to bypass filters that attempt to detect illegal characters or strings, such as those that might be used in traversal or injection attacks. Filters may be able to catch illegal encoded strings, but may not catch doubly encoded strings. For example, a dot (.), often used in path traversal attacks and therefore often blocked by filters, could be URL encoded as %2E. However, many filters recognize this encoding and would still block the request. In a double encoding, the % in the above URL encoding would be encoded again as %25, resulting in %252E which some filters might not catch, but which could still be interpreted as a dot (.) by interpreters on the target.

Related weaknesses· 10

CWE-173CWE-172CWE-177CWE-181CWE-183CWE-184CWE-74CWE-20CWE-697CWE-692

Related attack patterns· 1

CAPEC-267 (ChildOf)

Exploits10

TypeTargetConfidenceTier
WeaknessEncoding Errorcwe-172100%live
WeaknessIncomplete List of Disallowed Inputscwe-184100%live
WeaknessImproper Handling of Alternate Encodingcwe-173100%live
WeaknessIncorrect Behavior Order: Validate Before Filtercwe-181100%live
WeaknessImproper Handling of URL Encoding (Hex Encoding)cwe-177100%live
WeaknessImproper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')cwe-74100%live
WeaknessImproper Input Validationcwe-20100%live
WeaknessIncorrect Comparisoncwe-697100%live
WeaknessIncomplete Denylist to Cross-Site Scriptingcwe-692100%live
WeaknessPermissive List of Allowed Inputscwe-183100%live

Related by meaning· 6

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

CAPEC
XSS Using Doubled Characters
CAPEC
URL Encoding
CAPEC
Using Slashes and URL Encoding Combined to Bypass Validation Logic
CAPEC
Using Escaped Slashes in Alternate Encoding
CAPEC
Using Unicode Encoding to Bypass Validation Logic
CAPEC
Parameter Injection
Sourced from MITRE CAPEC. Curated by Adam Lundqvist, SQUR.