Detailedlikelihood: Highseverity: HighDraft

CAPEC-64Using Slashes and URL Encoding Combined to Bypass Validation Logic

Abstraction
Detailed
Status
Draft
Likelihood
High
Severity
High

Description

This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple ways of encoding a URL and abuse the interpretation of the URL. A URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.

Related weaknesses· 9

CWE-177CWE-173CWE-172CWE-73CWE-22CWE-74CWE-20CWE-697CWE-707

Related attack patterns· 1

CAPEC-267 (ChildOf)

Exploits9

TypeTargetConfidenceTier
WeaknessIncorrect Comparisoncwe-697100%live
WeaknessImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal')cwe-22100%live
WeaknessImproper Neutralizationcwe-707100%live
WeaknessExternal Control of File Name or Pathcwe-73100%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
WeaknessEncoding Errorcwe-172100%live
WeaknessImproper Handling of Alternate Encodingcwe-173100%live
WeaknessImproper Input Validationcwe-20100%live

Related by meaning· 6

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

CAPEC
URL Encoding
CAPEC
Using Unicode Encoding to Bypass Validation Logic
CAPEC
Double Encoding
CAPEC
Using Escaped Slashes in Alternate Encoding
CAPEC
Using Slashes in Alternate Encoding
CAPEC
Using UTF-8 Encoding to Bypass Validation Logic
Sourced from MITRE CAPEC. Curated by Adam Lundqvist, SQUR.