Web Hacking Expert - Full-Stack Exploitation Mastery - User Redirection through window.opener Tabnabbing – Part 2

Web Hacking Expert - Full-Stack Exploitation Mastery - User Redirection through window.opener Tabnabbing – Part 2

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial explains how to prevent a specific web attack using the 'rel=noopener' attribute in HTML links. It demonstrates the attack mechanism, where an attacker can overwrite the opener location, and provides a simple countermeasure to prevent this. The tutorial includes a code walkthrough and a summary of the attack and its prevention.

Read more

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What attribute should be added to a link to prevent a specific web attack?

class='safe-link'

href='secure'

target='_self'

rel='noopener'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main purpose of using the 'rel' attribute with 'no opener' in a link?

To prevent the link from being indexed by search engines

To ensure the link opens in the same tab

To enhance the visual appearance of the link

To stop attackers from overriding the opener property

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of the attack discussed, what does the attacker exploit?

The href attribute

The target attribute

The class attribute

The opener property

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the crucial line of code used by the attacker in the example?

document.write('Attack successful')

window.open('https://attacker.local')

opener.location = 'https://attacker.local/redirection.html'

alert('You have been hacked')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main takeaway from the video regarding preventing the attack?

Always use HTTPS for all links

Avoid using any links on your website

Implement the 'rel' attribute with 'no opener'

Use JavaScript to validate all links