Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DOM Clobbering Gadget found in rollup bundled scripts that leads to XSS #1390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 30, 2024

  1. Fix DOM Clobbering Gadget found in rollup bundled scripts that leads …

    …to XSS
    
    ## Descriptions
    We discovered a DOM Clobbering vulnerability in rollup when bundling scripts that use `import.meta.url` or with plugins that emit and reference asset files from code in `cjs/umd/iife` format. The DOM Clobbering gadget can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized `name` attribute) are present.
    
    ### Backgrounds
    DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. More for information about DOM Clobbering. 
    
    
    CWE-79
    [CVE-2024-47068](https://nvd.nist.gov/vuln/detail/CVE-2024-47068)
    andrisecops authored Sep 30, 2024
    Configuration menu
    Copy the full SHA
    1147012 View commit details
    Browse the repository at this point in the history