SQL Injection: Bypassing a Login with OR 1=1

A login form that builds its SQL query by pasting your input into a string can be talked into authenticating you as someone else. Here I walk through turning a SQL error into a login bypass with a classic OR ‘1’=‘1’ payload, why it works at the query level, and how parameterised queries end the whole bug class.

November 12, 2026 · 4 min · 760 words · Akshit Kathuria