---
title: "CAPEC-182: Flash Injection"
url: https://radicalnotion.ai/capec/capec-182
type: capec
description: "An attacker tricks a victim to execute malicious flash content that executes commands or makes flash calls specified by the attacker. One example of this attack is cross-site flashing, an attacker controlled parameter to a reference call loads from content specified by the attacker."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-182: Flash Injection

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

## Description

An attacker tricks a victim to execute malicious flash content that executes commands or makes flash calls specified by the attacker. One example of this attack is cross-site flashing, an attacker controlled parameter to a reference call loads from content specified by the attacker.

## Execution flow

### Step 1: Explore

\[Find Injection Entry Points\] The attacker first takes an inventory of the entry points of the application.

- Spider the website for all available URLs that reference a Flash application.
- List all uninitialized global variables (such as \_root.\*, \_global.\*, \_level0.\*) in ActionScript, registered global variables in included files, load variables to external movies.

### Step 2: Experiment

\[Determine the application's susceptibility to Flash injection\] Determine the application's susceptibility to Flash injection. For each URL identified in the explore phase, the attacker attempts to use various techniques such as direct load asfunction, controlled evil page/host, Flash HTML injection, and DOM injection to determine whether the application is susceptible to Flash injection.

- Test the page using direct load asfunction, getURL,javascript:gotRoot("")///d.jpg
- Test the page using controlled evil page/host, http://example.com/evil.swf
- Test the page using Flash HTML injection, "'\>\<img src='asfunction:getURL,javascript:gotRoot("")//.jpg' \>
- Test the page using DOM injection, (gotRoot(''))

### Step 3: Exploit

\[Inject malicious content into target\] Inject malicious content into target utilizing vulnerable injection vectors identified in the Experiment phase

## Prerequisites

- The target must be capable of running Flash applications. In some cases, the victim must follow an attacker-supplied link.

## Skills required

- **Medium:** The attacker needs to have knowledge of Flash, especially how to insert content the executes commands.

## Resources required

- None: No specialized resources are required to execute this type of attack. The attacker may need to be able to serve the injected Flash content.

## Consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Other | Information Leakage |
| 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 | - |

## Mitigations

- Implementation: remove sensitive information such as user name and password in the SWF file.
- Implementation: use validation on both client and server side.
- Implementation: remove debug information.
- Implementation: use SSL when loading external data
- Implementation: use crossdomain.xml file to allow the application domain to load stuff or the SWF file called by other domain.

## Example instances

In the following example, the SWF file contains getURL('javascript:SomeFunc("someValue")','','GET') A request like http://example.com/noundef.swf?a=0:0;alert('XSS') becomes javascript:SomeFunc("someValue")?a=0:0;alert(123)

## Related weaknesses (CWE)

- [CWE-20](https://radicalnotion.ai/cwe/cwe-20): Improper Input Validation
- [CWE-184](https://radicalnotion.ai/cwe/cwe-184): Incomplete List of Disallowed Inputs
- [CWE-697](https://radicalnotion.ai/cwe/cwe-697): Incorrect Comparison

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-137](https://radicalnotion.ai/capec/capec-137) | Parameter Injection |
| Child | [CAPEC-174](https://radicalnotion.ai/capec/capec-174) | Flash Parameter Injection |
| Child | [CAPEC-178](https://radicalnotion.ai/capec/capec-178) | Cross-Site Flashing |
| Can also be | [CAPEC-248](https://radicalnotion.ai/capec/capec-248) | Command Injection |

## Frequently asked questions

### What is CAPEC-182?

An attacker tricks a victim to execute malicious flash content that executes commands or makes flash calls specified by the attacker. One example of this attack is cross-site flashing, an attacker controlled parameter to a reference call loads from content specified by the attacker.

### How does a Flash Injection attack work?

It typically unfolds over 3 phases. It begins with: \[Find Injection Entry Points\] The attacker first takes an inventory of the entry points of the application.

### How do you prevent CAPEC-182?

Implementation: remove sensitive information such as user name and password in the SWF file.

### What weaknesses does CAPEC-182 target?

CAPEC-182 exploits 3 CWE weaknesses: CWE-20 (Improper Input Validation), CWE-184 (Incomplete List of Disallowed Inputs) and CWE-697 (Incorrect Comparison).

### How severe is CAPEC-182?

MITRE rates CAPEC-182 as Medium severity with high likelihood of attack.

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

---

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