2 ms·
Much nicer than just plaintext pastebins... However, there's some issues with the editor and backend that allow injecting javascript. I was able to do that wi
by tyingq 6y ago
Much nicer than just plaintext pastebins...
However, there's some issues with the editor and backend that allow injecting javascript. I was able to do that with the image insert. I suspect the link insert has a similar issue. Seems like you need something to scrub out that sort of thing on submit or display.
See https://quikpub.co/NPU1KDYKXK https://quikpub.co/NPU1KDYKXK
- DarrenDev 6y agoThanks. I'll look into that. I thought I was stripping out all scripts, but I wasn't checking the image and link insertion. Much appreciated.
- caffeinewriter 6y agoDefinitely use a battle-tested HTML sanitization library if possible. There's a million different pitfalls and footguns with XSS. See: Some of the insane XSS polyglots out there that can be used for testing. https://github.com/0xsobky/HackVault/wiki/Unleashing-an-Ultimate-XSS-Polyglot https://github.com/0xsobky/HackVault/wiki/Unleashing-an-Ulti...
- DarrenDev 6y agoThanks for the advice. It's number 1 on my list now.
- sammorrowdrums 6y agoAlso the stricter the content security policy the more xss holes you can plug.