Common web vulnerabilities
Someone types a quote mark and a few words into a login box, and the server returns every user in the database. The attacker only typed data. Why did the server run it as a command?
In this lesson you'll learn to
- Prevent SQL and command injection with parameterised queries and safe APIs.
- Prevent cross-site scripting with context-aware escaping and a Content Security Policy.
- Prevent cross-site request forgery with SameSite cookies, tokens and origin checks.
- Prevent server-side request forgery when your server fetches URLs that users supply.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.