cve.bz

CAPEC-178

Cross-Site Flashing

Medium severityMedium likelihoodDetailed pattern

An attacker is able to trick the victim into executing a Flash document that passes commands or calls to a Flash player browser plugin, allowing the attacker to exploit native Flash functionality in the client browser. This attack pattern occurs where an attacker can provide a crafted link to a Flash document (SWF file) which, when followed, will cause additional malicious instructions to be executed. The attacker does not need to serve or control the Flash document. The attack takes advantage of the fact that Flash files can reference external URLs. If variables that serve as URLs that the Flash application references can be controlled through parameters, then by creating a link that includes values for those parameters, an attacker can cause arbitrary content to be referenced and possibly executed by the targeted Flash application.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-178: Cross-Site Flashing: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/178.html and https://cve.bz/cve/capec/178?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

  1. Explore

    The attacker looks for a way in.

    1. [Identification] Using a browser or an automated tool, an attacker records all instances of URLs (or partial URL such as domain) passed to a flash file (SWF).

      3 techniques
      • Use an automated tool to record the variables passed to a flash file.
      • Use a browser to manually explore the website and analyze how the flash file receive variables, e.g. JavaScript using SetVariable/GetVariable, HTML FlashVars param tag, etc.
      • Use decompilers to retrieve the flash source code and record all user-controllable variables passed to a loadMovie* directive.
  2. Experiment

    They probe what they found.

    1. [Attempt to inject a remote flash file] The attacker makes use of a remotely available flash file (SWF) that generates a uniquely identifiable output when executed inside the targeted flash file.

      1 technique
      • Modify the variable of the SWF file that contains the remote movie URL to the attacker controlled flash file.
  3. Exploit

    They carry out the attack.

    1. [Access or Modify Flash Application Variables] As the attacker succeeds in exploiting the vulnerability, they target the content of the flash application to steal variable content, password, etc.

      2 techniques
      • Develop malicious Flash application that is injected through vectors identified during the Experiment Phase and loaded by the victim browser's flash plugin and sends document information to the attacker.
      • Develop malicious Flash application that is injected through vectors identified during the Experiment Phase and takes commands from an attacker's server and then causes the flash application to execute appropriately.
    2. [Execute JavaScript in victim's browser] When the attacker targets the current flash application, they can choose to inject JavaScript in the client's DOM and therefore execute cross-site scripting attack.

      1 technique
      • Develop malicious JavaScript that is injected from the rogue flash movie to the targeted flash application through vectors identified during the Experiment Phase and loaded by the victim's browser.

Prerequisites

  • The targeted Flash application must reference external URLs and the locations thus referenced must be controllable through parameters. The Flash application must fail to sanitize such parameters against malicious manipulation. The victim must follow a crafted link created by the attacker.

Skills required

  • Medium skill

    knowledge of Flash internals, parameters and remote referencing.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Modify DataIntegrity
Read DataConfidentiality
Execute Unauthorized CommandsAuthorizationRun Arbitrary Code
Gain PrivilegesAccountability, Authentication, Authorization, Non-Repudiation
Bypass Protection MechanismAccess Control, Authorization

Mitigations

  • Implementation: Only allow known URL to be included as remote flash movies in a flash application

  • Configuration: Properly configure the crossdomain.xml file to only include the known domains that should host remote flash movies.

Weaknesses it exploits

  • CWE-601 URL Redirection to Untrusted Site

Recent CVEs with these weaknesses

  1. 5.3CVE-2026-139997

    React Router is a router for React. From 6.4.0 until 7.18.3 and 8.3.1, react Router loader responses and action responses can accept an attacker-controlled redirect destination without consistently rejecting an external navigation target. …

  2. 6.1CVE-2026-56470

    HCL Telco Observability is affected by an Open Redirection vulnerability in its Keycloak authentication flow, which could allow a remote unauthenticated attacker to manipulate the redirect_uri parameter, enabling the redirection of users t…

  3. 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…

  4. 5.4CVE-2026-4981

    A flaw was found in Red Hat Advanced Cluster Security (ACS). An unauthenticated remote attacker can exploit a vulnerability in the login interface's OAuth callback endpoint by crafting a malicious URL. This URL, containing unvalidated `err…

  5. 2.1CVE-2026-137406

    A weakness has been identified in SourceCodester Syllabus-Aligned Learning Management & Examination System 1.0. Affected by this vulnerability is an unknown functionality of the file approve_enrollment.php. This manipulation causes open re…

  6. 2.1CVE-2026-137402

    A security flaw has been discovered in nirix Traq 3.9.0-beta.1. Affected by this issue is the function createSession of the file src/Traq/Controllers/UserController.php of the component Login Handler. Performing a manipulation of the argum…

  7. 2.1CVE-2026-136991

    A weakness has been identified in Spotweb up to 1.5.8. This issue affects the function redirect of the file lib/SpotTemplateHelper.php of the component Login. Executing a manipulation of the argument http_referer can lead to open redirect.…

  8. 5.3CVE-2026-136917

    Part-DB (Part-DB-server) before 2.20.6 contains an open redirect vulnerability in several controllers that pass user-supplied _redirect or redirect_back parameters to redirect() without validating local paths. Attackers can craft links to …

The newest records naming one of them. Each weakness's page lists them all.

Part of

Examples

The attacker tries to get their malicious flash movie to be executed in the targeted flash application. The m…

The attacker tries to get their malicious flash movie to be executed in the targeted flash application. The malicious file is hosted on the attacker.com domain and the targeted flash application is hosted on example.com The crossdomain.xml file in the root of example.com allows all domains and no specific restriction is specified in the targeted flash application. When the attacker injects their malicious file in the vulnerable flash movie, the rogue flash application is able to access internal variables and parameter of the flash movie.

MITRE's words, unchanged: CAPEC-178 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.