I think it definitelly isn't, because XSS which isn't saved anywhere would damage ONLY attacker.
Am I right or are there any cases where XSS could hurt non-db-application? (I mean datas are not saved anywhere)
|
I think it definitelly isn't, because XSS which isn't saved anywhere would damage ONLY attacker. Am I right or are there any cases where XSS could hurt non-db-application? (I mean datas are not saved anywhere) |
||||
|
|
|
Very wrong, the basic form of XSS is Reflected XSS, where the payload is sent in the URL (for example) from the victim himself. See XSS on OWASP for more details. |
|||||||
|
|
There are many ways XSS can exploit and do much damage without it having to be stored in a database. Remember that the XSS can even be stored in cookies! However if you are only talking about non-persistent- reflected-XSS it is still very dangerous, but more from a social engineering point of view. This is because you have to actually distribute the XSS payload instead of it spreading on its own. Means of distribution of the payload can be for example:
|
|||
|
|
|
I figure that if XSS is a vulnerability, the next step is to look at code injection. Let's use SSI for example. If this works:
Then it's possible that this would work also:
No matter what, you should sanitize your input. More on SSI injection here. |
|||||
|
|
A good example of the dangers of XSS with or without a database attached can be seen from the BEEF Project. This shows some of the things that can be done to a users browser once it's been affected by a XSS issue. If you look at the youtube videos on this page there's some good examples of what can be done. |
|||
|
|