Bleeding of cookies over the network
In this module, we exploit the XSS vulnerability in the target practice, so you can start the task below and go through the steps at your own pace.
This time the administrator will notice if users start sending unintentional messages, for example! In this task, we resort to an alternative leakage channel, so we send a cookie secretly to an HTTP listener that we have launched on the attacker's server. This way, the cookies are not visible on the site but are transferred unnoticed to the attacker.
Listener
We first need a listener to which the cookies can be sent. Fortunately, the attacker's machine already has an HTTP server running on port 80. The URL address is listed under the attacker's resources (starting with https://web-).
Open the attacker's terminal and use the tail command to monitor incoming HTTP requests to the listener.
1tail -f /var/log/apache2/access.logLearn to hack — start here
Hundreds of interactive courses, virtual labs and CTF challenges in your browser. Start a free trial — no card required.