Cookie Hijacking
Last updated
Was this helpful?
Last updated
Was this helpful?
When the application is vulnerable to XSS, we could try to hijack cookies such as session tokens that are being stored on the client-side.
Here we find an example of this scenario:
In an accessed session we can go to the Inspect>Application>Cookies tab and check the values that are being stored
In case we don't see it directly, we can assume that is configured this way and try to get the cookie values directly to our host machine. For this, we set up a listener port with
We can try to make a cookie hijacking using the Stored XSS vulnerable part
Once we have the cookie value we can go to the website page, go to Inspect>Application>Cookies tab, and set the cookie value manually. After that, we can reload the page to update these values on the browser