---
title: "CAPEC-71: Using Unicode Encoding to Bypass Validation Logic"
url: https://radicalnotion.ai/capec/capec-71
type: capec
description: "An attacker may provide a Unicode string to a system component that is not Unicode aware and use that to circumvent the filter or cause the classifying mechanism to fail to properly understanding the request. That may allow the attacker to slip malicious data past the content filter and/or possibly cause the application to route the request incorrectly."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-71: Using Unicode Encoding to Bypass Validation Logic

- **Abstraction:** Detailed
- **Status:** Draft
- **Typical severity:** High
- **Likelihood of attack:** Medium
- **CAPEC catalog version:** 3.9

## Description

An attacker may provide a Unicode string to a system component that is not Unicode aware and use that to circumvent the filter or cause the classifying mechanism to fail to properly understanding the request. That may allow the attacker to slip malicious data past the content filter and/or possibly cause the application to route the request incorrectly.

## Execution flow

### Step 1: Explore

\[Survey the application for user-controllable inputs\] Using a browser or an automated tool, an attacker follows all public links and actions on a web site. They record all the links, the forms, the resources accessed and all other potential entry-points for the web application.

- Use a spidering tool to follow and record all links and analyze the web pages to find entry points. Make special note of any links that include parameters in the URL.
- Use a proxy tool to record all user input entry points visited during a manual traversal of the web application.
- Use a browser to manually explore the website and analyze how it is constructed. Many browsers' plugins are available to facilitate the analysis or automate the discovery.

### Step 2: Experiment

\[Probe entry points to locate vulnerabilities\] The attacker uses the entry points gathered in the "Explore" phase as a target list and injects various Unicode encoded payloads to determine if an entry point actually represents a vulnerability with insufficient validation logic and to characterize the extent to which the vulnerability can be exploited.

- Try to use Unicode encoding of content in Scripts in order to bypass validation routines.
- Try to use Unicode encoding of content in HTML in order to bypass validation routines.
- Try to use Unicode encoding of content in CSS in order to bypass validation routines.

## Prerequisites

- Filtering is performed on data that has not be properly canonicalized.

## Skills required

- **Medium:** An attacker needs to understand Unicode encodings and have an idea (or be able to find out) what system components may not be Unicode aware.

## Indicators

- Unicode encoded data is passed to APIs where it is not expected

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Access Control, Authorization | Bypass Protection Mechanism | - |
| Confidentiality, Integrity, Availability | Execute Unauthorized Commands | Run Arbitrary Code |
| Integrity | Modify Data | - |
| Availability | Unreliable Execution | - |

## Mitigations

- Ensure that the system is Unicode aware and can properly process Unicode data. Do not make an assumption that data will be in ASCII.
- Ensure that filtering or input validation is applied to canonical data.
- Assume all input is malicious. Create an allowlist that defines all valid input to the software system based on the requirements specifications. Input that does not match against the allowlist should not be permitted to enter into the system.

## Example instances

A very common technique for a Unicode attack involves traversing directories looking for interesting files. An example of this idea applied to the Web is http://target.server/some\_directory/../../../winnt In this case, the attacker is attempting to traverse to a directory that is not supposed to be part of standard Web services. The trick is fairly obvious, so many Web servers and scripts prevent it. However, using alternate encoding tricks, an attacker may be able to get around badly implemented request filters. In October 2000, an adversary publicly revealed that Microsoft's IIS server suffered from a variation of this problem. In the case of IIS, all the attacker had to do was provide alternate encodings for the dots and/or slashes found in a classic attack. The Unicode translations are . yields C0 AE / yields C0 AF \\ yields C1 9C Using this conversion, the previously displayed URL can be encoded as http://target.server/some\_directory/%C0AE/%C0AE/%C0AE%C0AE/%C0AE%C0AE/winnt See also: CVE-2000-0884

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-74](https://radicalnotion.ai/cwe/cwe-74): Improper Neutralization of Special Elements in Output Used by a Downstream Component
- [CWE-172](https://radicalnotion.ai/cwe/cwe-172): Improper Encoding or Decoding of Data
- [CWE-173](https://radicalnotion.ai/cwe/cwe-173): Improper Handling of Alternate Encoding
- [CWE-176](https://radicalnotion.ai/cwe/cwe-176): Improper Handling of Unicode Encoding
- [CWE-179](https://radicalnotion.ai/cwe/cwe-179): Incorrect Behavior Order: Early Validation
- [CWE-180](https://radicalnotion.ai/cwe/cwe-180): Incorrect Behavior Order: Validate Before Canonicalize
- [CWE-183](https://radicalnotion.ai/cwe/cwe-183): Permissive List of Allowed Inputs
- [CWE-184](https://radicalnotion.ai/cwe/cwe-184): Incomplete List of Disallowed Inputs
- [CWE-692](https://radicalnotion.ai/cwe/cwe-692): Incomplete Denylist to Cross-Site Scripting
- [CWE-697](https://radicalnotion.ai/cwe/cwe-697): Incorrect Comparison

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-267](https://radicalnotion.ai/capec/capec-267) | Leverage Alternate Encoding |
| Peer | [CAPEC-80](https://radicalnotion.ai/capec/capec-80) | Using UTF-8 Encoding to Bypass Validation Logic |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| OWASP Attacks | Unicode Encoding | - |

## Frequently asked questions

### What is CAPEC-71?

An attacker may provide a Unicode string to a system component that is not Unicode aware and use that to circumvent the filter or cause the classifying mechanism to fail to properly understanding the request. That may allow the attacker to slip malicious data past the content filter and/or possibly cause the application to route the request incorrectly.

### How does a Using Unicode Encoding to Bypass Validation Logic attack work?

It typically unfolds over 2 phases. It begins with: \[Survey the application for user-controllable inputs\] Using a browser or an automated tool, an attacker follows all public links and actions on a web site. They record all the links, the forms, the resources accessed and all other potential entry-points for the web application.

### How do you prevent CAPEC-71?

Ensure that the system is Unicode aware and can properly process Unicode data. Do not make an assumption that data will be in ASCII.

### What weaknesses does CAPEC-71 target?

CAPEC-71 exploits 11 CWE weaknesses, including CWE-20 (Improper Input Validation), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), CWE-172 (Improper Encoding or Decoding of Data) and CWE-173 (Improper Handling of Alternate Encoding).

### How severe is CAPEC-71?

MITRE rates CAPEC-71 as High severity with medium likelihood of attack.

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/71.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-71). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
