Explore

SQL Injection and XSS: The Bugs Behind Most Data Breaches

by turhan-ergene

A plain-language look at two of the most common website vulnerabilities, SQL injection and cross-site scripting, and why they matter even if you've never written a line of code. For anyone curious about why websites get hacked.

You're previewing this room. Log in or create a free account to answer the questions and track your progress.
Study material

Websites often store information, like usernames and passwords, in a database. To fetch or change that information, the website's code sends commands called SQL queries. SQL injection happens when someone types text into an ordinary form field, like a search box or login box, that is written so it gets treated as part of the database command instead of as plain text. If the website doesn't check the input carefully, the attacker's extra command runs alongside the real one, letting them read or change data they should never be able to touch.

What is SQL injection?

multiple choice

AEntering extra database commands into a form so the site runs them by mistake
BRepeatedly guessing a password until one of the common guesses happens to work
CSending an email that pretends to come from a real, trusted company
DOverloading a website with traffic until it stops responding to anyone
Think about what happens when a form doesn't check what you type before using it in a command.
Log in to answer

Ready to test yourself?

Sign up free to answer, score points, and build your streak.

SQL Injection and XSS: The Bugs Behind Most Data Breaches · Froga