Tabnabbing: Exploit

Open redirectExploitation

From PayloadsAllTheThings by Swissky and contributors, under the MIT licence. Shown as written; the title and classification are ours. Licences. Its authors can have this tip removed by writing to abuse@bugbountytips.org.

  1. Attacker posts a link to a website under his control that contains the following JS code: window.opener.location = "http://evil.com"

  2. He tricks the victim into visiting the link, which is opened in the browser in a new tab.

  3. At the same time the JS code is executed and the background tab is redirected to the website evil.com, which is most likely a phishing website.

  4. If the victim opens the background tab again and doesn't look at the address bar, it may happen that he thinks he is logged out, because a login page appears, for example.

  5. The victim tries to log on again and the attacker receives the credentials

Comments

No comments yet.