-
Notifications
You must be signed in to change notification settings - Fork 15
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
CSP Extension ID leak PoC #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @sammacbeth 🙌 I left couple of comments that should be addressed before merging.
Thanks for the comments @kdzwinel - I've updated the PR addressing all of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - merging 🚀
@@ -3,6 +3,9 @@ | |||
"version": "1.0.0", | |||
"description": "This project contains a collection of pages that are meant to be used for testing various privacy and security features of browsers and browser extensions.", | |||
"main": "server.js", | |||
"engines": { | |||
"node": ">=12.19" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's either 12.19+ or 14.10+ (I know because I had to update node for this to work :) ). I hope that glitch will work with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this was the minimum for crypto.randomInt
- looks like it worked on glitch though :)
res.end(contents.replace('%%UID%%', id)); | ||
}); | ||
// ensure IDs get deleted after 60s | ||
setTimeout(() => cspIds.delete(id), 60000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
smart 🧠
Test page which reports extension scripts which can be leaked (and blocked) via a CSP report.