CAPEC-182
Flash Injection
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.
On this page
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-182: Flash Injection: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/182.html and https://cve.bz/cve/capec/182?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
[Find Injection Entry Points] The attacker first takes an inventory of the entry points of the application.
2 techniques
- 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.
Experiment
They probe what they found.
[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.
4 techniques
- 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(''))
Exploit
They carry out the attack.
[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 skill
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
| Impact | Affects | Note |
|---|---|---|
| Other | Confidentiality | Information Leakage |
| Modify Data | Integrity | |
| Read Data | Confidentiality | |
| Execute Unauthorized Commands | Authorization | Run Arbitrary Code |
| Gain Privileges | Accountability, Authentication, Authorization, Non-Repudiation | |
| Bypass Protection Mechanism | Access Control, Authorization |
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.
Weaknesses it exploits
- CWE-20 Improper Input Validation
- CWE-184 Incomplete List of Disallowed Inputs
- CWE-697 Incorrect Comparison
Recent CVEs with these weaknesses
- 5.5CVE-2026-139984
A weakness has been identified in walinejs Waline up to 1.43.6. The affected element is an unknown function of the component OAuth Login Callback Handler. Executing a manipulation of the argument Type can lead to improper input validation.…
- 3.7CVE-2026-140099
Forge, also called node-forge, is a native implementation of Transport Layer Security in JavaScript. Prior to 1.4.4, pki.privateKeyFromPem() and pki.privateKeyFromAsn1() ignore the RSAPrivateKey version and otherPrimeInfos fields and inter…
- 8.8CVE-2026-75938
A flaw was found in openshift/cluster-api-provider-ibmcloud. When the IBMPowerVSCluster.Spec.Ignition is configured, the controller embeds an IBM Identity and Access Management (IAM) bearer token directly into the PowerVS instance user-dat…
- 9.1CVE-2026-137019
Enclave OS Mini is a Rust-based runtime for confidential applications inside Intel SGX enclaves. Prior to enclave-os-mini-wasm version 0.53.0 and enclave-cluster version 0.8.0, Enclave OS Mini accepted a caller-chosen user_handle during FI…
- 8.8CVE-2026-126634
Incomplete List of Disallowed Inputs vulnerability in Apache Unomi. This issue affects Apache Unomi: from 1.5.2 before 3.1.0, from 4.0.0-rc1 before 4.0.0. Users are recommended to upgrade to version 3.1.0 or 4.0.0, which fix this iss…
- 5.3CVE-2026-138678
The AIL Framework (ail-project/ail-framework) allowed authenticated users to configure arbitrary outbound HTTP/HTTPS destinations for MISP event export and WebHook notifications. The prior validation only verified that the URL used an http…
- 2.1CVE-2026-138333
A security vulnerability has been detected in dailydotdev daily up to d8fc89d978eb4a454992349adafa283700c52e31. This affects the function render of the file statusline/statusline.mjs of the component Statusline Handler. The manipulation le…
- 1.9CVE-2026-138330
A vulnerability was identified in Anil-matcha open-duet up to 0.8.1. Impacted is the function classify_bash_command of the file backend/app/services/github_classifier.py of the component Git Risk Classifier. Such manipulation leads to impr…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
Examples
In the following example, the SWF file contains
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)
MITRE's words, unchanged: CAPEC-182 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.