I have been a developer and now I am trying to look at XSS from the point of view of a developer. I was thinking of a particular case of reflected XSS . Let us say we have a vulnerable website and if an attacker can trick the users to click on a malicious link he can get their session tokens by using document.cookie
I was wondering that if the website starts to use http-only
cookies (I suppose this will make it impossible to access the session tokens by the use of JavaScript. Am I missing out a point?) but still remains vulnerable to script injection in such a case what are the options left for the attacker? What are the other ways of exploiting this vulnerability?