Skip to content
Sharp

OWASP Vulnerabilities · interview question

In the context of XSS, why is it insufficient to rely solely on client-side JavaScript sanitization?

Multiple choiceHardchapter-17-curatedpremiumowasp-vulnerabilitiescross-site-scripting-xss
Choose one answer
Answer and explanation

Correct answer

A. Client-side validations can be bypassed.

Why

Client-side validations can be bypassed by attackers who disable JavaScript or manipulate the client. Server-side validation and encoding are essential to ensure security.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →