You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode SQL injection: how a search box can hand a whole database to a stranger

How hackers break in: the most common attacks on people, websites and apps

Cross-site scripting: how a comment on a website can attack the next visitor

You read the comments under a product before you buy it. One of those comments can attack you, and you do not need to click anything. How is that possible? This is cross-site scripting (XSS). In 2005, a worm of this kind reached over a million MySpace profiles in less than a day.

  1. 1 Under each candle, customers leave reviews, and the shop shows them to everyone who comes by. You read a few before you buy: "Smells like a bakery!"candleshop.examplevanilla candleAnaSmells like a bakery!BenBurns for hours.you

    Under each candle, customers leave reviews, and the shop shows them to everyone who comes by. You read a few before you buy: "Smells like a bakery!"

  2. 2 Rono writes one too: five stars, "Lovely candle!". It looks like any other review, though he never bought a candle. The shop keeps it and shows it to every visitor, you included. What can a review do to the person who reads it?RonoRonoLovely candle!candleshop.exampleAnaBenRonoLovely candle!

    Rono writes one too: five stars, "Lovely candle!". It looks like any other review, though he never bought a candle. The shop keeps it and shows it to every visitor, you included. What can a review do to the person who reads it?

The rest of this episode is for subscribers

Subscribe to read every premium episode. You can cancel when you want.

Paid yearly: $99 instead of $119.88

Next episode Ransomware: why attackers lock files they could simply steal

Share this comic

More comics