CAPEC Definitions

    CAPEC Definitions / CAPEC-174

    CAPEC-174: Flash Parameter Injection

    An adversary takes advantage of improper data validation to inject malicious global parameters into a Flash file embedded within an HTML document. Flash files can leverage user-submitted data to configure the Flash document and access the embedding HTML document.

    Severity:Medium
    Possibility:High

    Extended Description

    These 'FlashVars' are most often passed to the Flash file via URL arguments or from the Object or Embed tag within the embedding HTML document. If these FlashVars are not properly sanitized, an adversary may be able to embed malicious content (such as scripts) into the HTML document. The injected parameters can also provide the adversary control over other objects within the Flash file as well as full control over the parent document's DOM model. As such, this is a form of HTTP parameter injection, but the abilities granted to the Flash document (such as access to a page's document model, including associated cookies) make this attack more flexible. Flash Parameter Injection attacks can also preface further attacks such as various forms of Cross-Site Scripting (XSS) attacks in addition to Session Hijacking attacks.

    Mitigations

    User input must be sanitized according to context before reflected back to the user. The JavaScript function 'encodeURI' is not always sufficient for sanitizing input intended for global Flash parameters. Extreme caution should be taken when saving user input in Flash cookies. In such cases the Flash file itself will need to be fixed and recompiled, changing the name of the local shared objects (Flash cookies).

    Relationships with other CAPECs

    CAPEC-182: Flash Injection

    CAPEC-460: HTTP Parameter Pollution (HPP)

    CAPEC-63: Cross-Site Scripting (XSS)

    CAPEC-178: Cross-Site Flashing

    Prerequisites

    No prerequisites found.

    Related Weaknesses

    CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')