An analyst finds injected JavaScript on a banking page that sends the visitor's cookies to an external server. What is the attacker's most likely goal?
Show the answer
Correct answerC. Hijack the user's authenticated session
AWhy not this: Page script has no access to a password manager's encrypted vault; the stolen data is cookies.
BWhy not this: Hashes are stored server-side and are not reachable by script that only sends the visitor's cookies.
CWhy this is right: Exfiltrated session cookies let the attacker replay the logged-in session without knowing the password.
DWhy not this: Injected page script cannot install an extension; that requires the user to add it from a store or other source.
Script running in the page can read cookies that are not marked HttpOnly, and sending a session cookie to the attacker lets them reuse the authenticated session. Installing an extension is a separate vector and needs user action.