14 lessons · 177 min Intermediate

Web security — think like an attacker, code like a defender

The OWASP Top 10 explained for developers, with PHP, Go and JS examples and safe challenges.

FR EN
Progress 0/14
1

Think like an attacker

Good code makes things work, security thinks about how to break them. Mindset, ethics, legality and the OWASP Top 10.

7 min
2

Threat modeling

Attack surface, who attacks what, defense in depth: why a single barrier is never enough.

8 min
3

SQL injection

The attack that empties a database, for real. Parameterized queries in PHP and Go, and why escaping is not enough.

18 min
4

Cross-site scripting (XSS)

Reflected, stored, DOM: injecting JS into the victim. Output encoding, textContent vs innerHTML.

20 min
5

Command injection

Running a system command or reading a forbidden file through unvalidated input. Allowlists and safe APIs.

16 min
6

Broken access control

OWASP's number one: IDOR, privilege escalation, and the golden rule: always check on the server.

14 min
7

Authentication & passwords

Why md5 is a mistake, bcrypt/Argon2, brute force and rate limiting, MFA basics.

15 min
8

Secure sessions & cookies

HttpOnly, Secure, SameSite, session fixation: what really travels and how a session gets stolen.

13 min
9

Cross-site request forgery (CSRF)

Making the victim act without knowing. The synchronizer token as the real defense, SameSite as defense in depth.

12 min
10

CORS & the same-origin policy

What CORS really does, why it is NOT server-side security and does not stop CSRF.

11 min
11

Security headers & CSP

Content-Security-Policy nonce + strict-dynamic, HSTS, X-Frame-Options: hardening the browser without false comfort.

11 min
12

Applied cryptography

Hashing vs encryption, HTTPS/TLS, secrets and .env, and the rule: never roll your own crypto.

12 min
13

Dependencies & supply chain

A flaw in a dependency is your flaw. composer audit, npm audit, integrity and trust.

10 min
14

Logging, errors & deployment

Logging without leaking data, handling errors without revealing everything, and the OWASP 2025 go-live checklist.

10 min

Going further · Level 2

Six specific attacks beyond the core Top 10, each with its own lab: path traversal, upload, SSRF, template injection, deserialization, and AI application security.

What you will learn

Spot and fix the OWASP Top 10 2025 flaws in your code

Understand SQL injection, XSS and CSRF from attack to fix

Secure authentication, sessions, cookies and passwords

Configure CORS, security headers and CSP without a false sense of security

This course shows attacks so you learn to defend against them. Only test these techniques on your own systems or on dedicated (authorized) training platforms. Attacking a third-party system without written authorization is illegal.

Start lesson 1

Free · No signup · 7 minutes