Skip to content
Sharp

Authentication · interview question

Which OWASP vulnerability does using HTML encoding help mitigate?

Multiple choiceMediumchapter-17-curatedpremiumauthenticationsalting-and-bcrypt
Choose one answer
Answer and explanation

Correct answer

C. Stored XSS

Why

HTML encoding replaces special characters with their corresponding HTML entities, preventing malicious scripts from being executed when user input is displayed. This is a key defense against stored XSS attacks.

Test yourself on Authentication

A free test with instant, explained results. No account needed.

Start free test
All Authentication questions →