🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: XSS: all 10 questions

Quiz: XSS · Question 10 of 10

Why can XSS be as serious as stealing a password?

Why can XSS be as serious as stealing a password?

  1. A.It only changes colours on the page
  2. B.The attacker's script runs as the victim on your site and can perform actions or read data
  3. C.It deletes the database directly
  4. D.It only works on old browsers
Answer & explanation

Correct answer: The attacker's script runs as the victim on your site and can perform actions or read data

The script has the same access as the logged-in user's page.

Can you get the rest right without peeking?

Take the timed Quiz: XSS quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →