---
title: "CAPEC-267: Leverage Alternate Encoding"
url: https://radicalnotion.ai/capec/capec-267
type: capec
description: "An adversary leverages the possibility to encode potentially harmful input or content used by applications such that the applications are ineffective at validating this encoding standard."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-267: Leverage Alternate Encoding

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

## Description

An adversary leverages the possibility to encode potentially harmful input or content used by applications such that the applications are ineffective at validating this encoding standard.

## Execution flow

### Step 1: Explore

\[Survey the application for user-controllable inputs\] Using a browser, an automated tool or by inspecting the application, an adversary records all entry points to the 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.
- Manually inspect the application to find entry points.

### Step 2: Experiment

\[Probe entry points to locate vulnerabilities\] The adversary uses the entry points gathered in the "Explore" phase as a target list and injects various payloads using a variety of different types of encodings 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 different encodings of content in order to bypass validation routines.

## Prerequisites

- The application's decoder accepts and interprets encoded characters. Data canonicalization, input filtering and validating is not done properly leaving the door open to harmful characters for the target host.

## Skills required

- **Low:** An adversary can inject different representation of a filtered character in a different encoding.
- **Medium:** An adversary may craft subtle encoding of input data by using the knowledge that they have gathered about the target host.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Modify Data | - |
| Confidentiality | Read Data | - |
| Authorization | Execute Unauthorized Commands | Run Arbitrary Code |
| Accountability, Authentication, Authorization, Non-Repudiation | Gain Privileges | - |
| Access Control, Authorization | Bypass Protection Mechanism | - |
| Availability | Unreliable Execution, Resource Consumption | Denial of Service |

## Mitigations

- Assume all input might use an improper representation. Use canonicalized data inside the application; all data must be converted into the representation used inside the application (UTF-8, UTF-16, etc.)
- 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. Test your decoding process against malicious input.

## Example instances

Microsoft Internet Explorer 5.01 SP4, 6, 6 SP1, and 7 does not properly handle unspecified "encoding strings," which allows remote adversaries to bypass the Same Origin Policy and obtain sensitive information via a crafted web site, aka "Post Encoding Information Disclosure Vulnerability." Related Vulnerabilities CVE-2010-0488

Adversaries may attempt to make an executable or file difficult to discover or analyze by encrypting, encoding, or otherwise obfuscating its contents on the system or in transit. This is common behavior that can be used across different platforms and the network to evade defenses.

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-73](https://radicalnotion.ai/cwe/cwe-73): External Control of File Name or Path
- [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-180](https://radicalnotion.ai/cwe/cwe-180): Incorrect Behavior Order: Validate Before Canonicalize
- [CWE-181](https://radicalnotion.ai/cwe/cwe-181): Incorrect Behavior Order: Validate Before Filter
- [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-153](https://radicalnotion.ai/capec/capec-153) | Input Data Manipulation |
| Child | [CAPEC-3](https://radicalnotion.ai/capec/capec-3) | Using Leading 'Ghost' Character Sequences to Bypass Input Filters |
| Child | [CAPEC-4](https://radicalnotion.ai/capec/capec-4) | Using Alternative IP Address Encodings |
| Child | [CAPEC-43](https://radicalnotion.ai/capec/capec-43) | Exploiting Multiple Input Interpretation Layers |
| Child | [CAPEC-52](https://radicalnotion.ai/capec/capec-52) | Embedding NULL Bytes |
| Child | [CAPEC-53](https://radicalnotion.ai/capec/capec-53) | Postfix, Null Terminate, and Backslash |
| Child | [CAPEC-64](https://radicalnotion.ai/capec/capec-64) | Using Slashes and URL Encoding Combined to Bypass Validation Logic |
| Child | [CAPEC-71](https://radicalnotion.ai/capec/capec-71) | Using Unicode Encoding to Bypass Validation Logic |
| Child | [CAPEC-72](https://radicalnotion.ai/capec/capec-72) | URL Encoding |
| Child | [CAPEC-78](https://radicalnotion.ai/capec/capec-78) | Using Escaped Slashes in Alternate Encoding |
| Child | [CAPEC-79](https://radicalnotion.ai/capec/capec-79) | Using Slashes in Alternate Encoding |
| Child | [CAPEC-80](https://radicalnotion.ai/capec/capec-80) | Using UTF-8 Encoding to Bypass Validation Logic |
| Child | [CAPEC-120](https://radicalnotion.ai/capec/capec-120) | Double Encoding |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| ATTACK | Obfuscated Files or Information | 1027 |

## Frequently asked questions

### What is CAPEC-267?

An adversary leverages the possibility to encode potentially harmful input or content used by applications such that the applications are ineffective at validating this encoding standard.

### How does a Leverage Alternate Encoding attack work?

It typically unfolds over 2 phases. It begins with: \[Survey the application for user-controllable inputs\] Using a browser, an automated tool or by inspecting the application, an adversary records all entry points to the application.

### How do you prevent CAPEC-267?

Assume all input might use an improper representation. Use canonicalized data inside the application; all data must be converted into the representation used inside the application (UTF-8, UTF-16, etc.)

### What weaknesses does CAPEC-267 target?

CAPEC-267 exploits 9 CWE weaknesses, including CWE-20 (Improper Input Validation), CWE-73 (External Control of File Name or Path), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component) and CWE-172 (Improper Encoding or Decoding of Data).

### How severe is CAPEC-267?

MITRE rates CAPEC-267 as High severity with high likelihood of attack.

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

---

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