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.
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.
multiple choice
Ready to test yourself?
Sign up free to answer, score points, and build your streak.