Skip to content

MediumScenarioAppSec and OWASP scenarios

A search page reflects input into HTML and an attacker steals session cookies. Describe the defences.

What a good answer covers

Context-aware output encoding, a strict Content-Security-Policy, HttpOnly and SameSite cookies, input validation, and modern frameworks' auto-escaping while avoiding innerHTML.

More on AppSec and OWASP scenarios

Flashcards for this topic