Code Monkey home page Code Monkey logo

domclobbering's Issues

OWASP Cheat Sheet

Add a link to the OWASP cheat sheet in the main page, which has been created with this PR.

Add GitHub Actions

Check the test server build status via Github actions automatically after each commit.

Syntax Error in UI Script

Issue Description

The snippet for online testing of clobbering markups has a syntax error in line 184 (missing closing bracket).

if (v && (!isNaN(v) || v.toString().indexOf('HTML') > -1 || v.toString().indexOf('Element') > -1     
     || v.toString().indexOf('Collection') > -1 || v.toString().indexOf('Window') > -1) {
    is_clobbered = true;
}

The affected webpage is https://domclob.xyz/domc_markups/list.

iframe tag with id attribute cannot clobber document.x

Here is a correction for the paper as well as the domclob.xyz website about the DOM Clobbering markups. Contrary to previous findings, iframe HTML element with id=x attribute cannot clobber the DOM Tree Accessors (i.e. document.x).

According to the HTML standard on named element lookup on Document interface, only the following elements can clobber the document.x.

  • Exposed embed, form, iframe, img, or exposed object elements that have a name content attribute
  • Exposed object elements that have an id content attribute
  • img elements that have an id content attribute whose value is name, and that have a non-emptyname content attribute

Upon running some real-world tests using BrowserStack, I found that the iframe HTML element with id=x attribute cannot clobber the DOM Tree Accessors at least in the following listed versions of Chrome, Firefox, and Edge.

  • Chrome: Tested from version 86 to 123
  • Firefox: Tested from version 80 to 124
  • Edge: Tested from version 80 to 123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.