Skip to content
Sharp

OWASP Vulnerabilities · interview question

What does the 'OR 1=1;--' SQL Injection payload typically achieve?

Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiessql-injection
Choose one answer
Answer and explanation

Correct answer

B. It bypasses authentication checks

Why

The 'OR 1=1;--' payload alters the logic of SQL queries to always evaluate to true, often used to bypass authentication checks and gain unauthorized access by continuing execution despite conditions.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →