by laurencei · 12y ago · 0 comments
If my site will only ever allow users to see their own submitted data, and never ever data another user has submitted (i.e. no general 'posts' etc) - then is there actually a XSS risk on my site?
So I'm curious if an attacker can gain anything by looking at their own XSS attack?
There are other defenses against that, like having HttpOnly set on your cookies. Once you decide to let one particular thing through, though, you've lost defense in depth.
Persistent attacks are generally considered to be more dangerous, but reflected attacks are still quite bad.
That said, there is still no excuse to trust user input. Always protect against XSS like you always protect against SQL injection.