-
Notifications
You must be signed in to change notification settings - Fork 127
Prevent scripts in comments #446
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
Conversation
The raw source taken straight from the database is this:
There are no special hidden characters at play, or anything like that. Another variation we might want to test:
And another interesting example:
And:
|
Oh, and this beauty:
|
Pirate stuff on Popular JSPerfs page still happening today :-( |
There's a good list of cases to try on https://github.com/cure53/DOMPurify (also that library is a bit more mature and has a bug bounty -- it might be worth throwing it on as well). |
Seems like a pretty nifty lib @ThomasRooney |
Started debugging #445 and ... we already strip
script
because that's the default setting of marky-markdown (sanitize
)@mathiasbynens can you provide the raw content of the comment referenced in #436? My hunch is that they've worked around our basic sanitation somehow.