Detailedlikelihood: Highseverity: HighDraft

CAPEC-79Using Slashes in Alternate Encoding

Abstraction
Detailed
Status
Draft
Likelihood
High
Severity
High

Description

This attack targets the encoding of the Slash characters. An adversary would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the adversary many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.

Related weaknesses· 11

CWE-173CWE-180CWE-181CWE-20CWE-74CWE-73CWE-22CWE-185CWE-200CWE-697CWE-707

Related attack patterns· 1

CAPEC-267 (ChildOf)

Exploits11

TypeTargetConfidenceTier
WeaknessIncorrect Regular Expressioncwe-185100%live
WeaknessIncorrect Behavior Order: Validate Before Filtercwe-181100%live
WeaknessImproper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')cwe-74100%live
WeaknessIncorrect Comparisoncwe-697100%live
WeaknessIncorrect Behavior Order: Validate Before Canonicalizecwe-180100%live
WeaknessImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal')cwe-22100%live
WeaknessImproper Input Validationcwe-20100%live
WeaknessExternal Control of File Name or Pathcwe-73100%live
WeaknessImproper Handling of Alternate Encodingcwe-173100%live
WeaknessExposure of Sensitive Information to an Unauthorized Actorcwe-200100%live
WeaknessImproper Neutralizationcwe-707100%live

Related by meaning· 6

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

CAPEC
Using Escaped Slashes in Alternate Encoding
CAPEC
Using Slashes and URL Encoding Combined to Bypass Validation Logic
CAPEC
Using Alternative IP Address Encodings
CAPEC
Path Traversal
CAPEC
Using Unicode Encoding to Bypass Validation Logic
CAPEC
Double Encoding
Sourced from MITRE CAPEC. Curated by Adam Lundqvist, SQUR.