swoops / eval_villain Goto Github PK
View Code? Open in Web Editor NEWA Firefox Web Extension to improve the discovery of DOM XSS.
License: GNU General Public License v3.0
A Firefox Web Extension to improve the discovery of DOM XSS.
License: GNU General Public License v3.0
This is more of an fyi since I have no suggested fix.
applyEvalVillain("eval")
turns direct eval into indirect eval
eval_villain/src/js/switcheroo.js
Line 385 in 8c49852
Since eval
!== %eval%, all eval becomes direct eval.
You can see the difference in
const x = 'indirect';
(() => {
const x = 'direct';
console.log(`eval(x) => ${ eval('x') }`); // -> indirect
console.log(`(0, eval)(x) => ${ (0, eval)('x') }`); // -> direct
})();
This happens because of step 6.a in 12.3.4.1
- If Type(ref) is Reference and IsPropertyReference(ref) is false and GetReferencedName(ref) is "eval", then
a. If SameValue(func, %eval%) is true, then
when evaluating function calls where the function is the identifier eval.
It'd be amazing if this had chromium support, as most other hacking add-ons are made for chromium
Hiya ๐
We've had a bug complaining that Eval Villain is no longer loaded when ZAP launches Firefox: zaproxy/zaproxy#7878
Thanks to @willdurand we've found out its a bug in Selenium, which we're following up on.
But there is a work around: "it looks like the source manifest.json doesn't include browser_specific_settings, which means AMO sets it (yes, AMO slightly updates manifest.json files these days). I think the workaround is to update the manifest.json file and add applications.gecko.id, and then get that new version signed by AMO."
You ok doing this until selenium gets fixed?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.