3 ms·
You really need to sanitize that input. It's really simple to inject arbitrary html into your page... best case it messes up the output and just looks bad. Wors
by axod 18y ago
You really need to sanitize that input. It's really simple to inject arbitrary html into your page... best case it messes up the output and just looks bad. Worst case it exposes something etc etc
Not to mention things like this:
http://taggl.net/search/?tag=--%3E%3Cscript%3Ealert http://taggl.net/search/?tag=--%3E%3Cscript%3Ealert(0)%3C%2Fscript%3E%3C!--
http://taggl.net/search/?tag=%2F%22 http://taggl.net/search/?tag=%2F%22
It doesn't look like you're santizing at all, so someone could have fun with your backend/sql/etc etc
- LPTS 18y agoLittle Bobby Tables, we call him. http://xkcd.com/327/ http://xkcd.com/327/
- aston 18y agoIf I had to guess, I'd say he is sanitizing before it hits the database. Not cleaning it up before displaying it to the user, though.
- jeroen 18y agoExactly. My bad, will fix that tomorrow. (it's late over here)