appsec.fyi

SQL Injection Resources

Post Share

A curated AppSec resource library covering XSS, SQLi, SSRF, IDOR, RCE, XXE, OSINT, and more.

SQL Injection

SQL injection (SQLi) is the insertion of malicious SQL queries via input data from the client to the application. A successful SQL injection exploit can read sensitive data from the database, modify or delete records, execute administrative operations, and in some cases issue commands to the operating system.

Despite being one of the oldest web vulnerability classes, SQL injection continues to appear in modern applications — particularly in legacy codebases, custom query builders, and applications that construct SQL through string concatenation rather than parameterized queries. Second-order SQLi, where the payload is stored first and executed later in a different context, is especially difficult to detect with automated scanners.

SQLi techniques have evolved well beyond simple UNION SELECT attacks. Blind SQLi uses boolean conditions or time delays to extract data one bit at a time. Error-based injection leverages database error messages to leak information. Out-of-band SQLi exfiltrates data through DNS or HTTP requests initiated by the database. Each database engine — MySQL, PostgreSQL, MSSQL, Oracle, SQLite — has its own syntax quirks and exploitation techniques.

Modern WAFs and prepared statements have reduced the attack surface, but bypasses are regularly discovered through encoding tricks, comment injection, and parser differentials between the WAF and the database.

This page collects SQLi techniques, cheat sheets, bypass methods, and real-world exploitation writeups across all major database platforms.

From OWASP

SQL injection is solved, which is exactly why it still matters

The fix has been known for two decades and is unambiguous: send the query and the data separately, so that user input can never be parsed as SQL. A parameterized query is not a mitigation that raises attacker cost — it removes the class. And yet the bug keeps appearing, because the fix only holds where it is applied, and real codebases have places it is not: dynamic ORDER BY and column names, which cannot be parameterized and get concatenated instead; raw-SQL escape hatches in ORMs; stored procedures that build strings internally; reporting and search features written against a different database than the rest of the application.

The techniques below are organized by how much the database tells you. When errors come back, extraction is quick. When they do not but responses differ, boolean-based inference recovers data one condition at a time. When responses are identical, time-based methods use conditional delays, at the cost of a query per bit. Out-of-band methods — making the database resolve a DNS name or open a connection — are fastest of all when the database can reach the network, which is why they appear so often in writeups against otherwise silent targets.

Second-order injection deserves separate attention because it breaks the mental model people bring to testing. Input is stored safely on the way in, then concatenated into a query somewhere else entirely — a scheduled job, an admin view, an export. Nothing happens when you submit the payload, so it looks clean. The writeups here that find these are usually the ones that went looking for where stored values get reused.

On tooling: sqlmap is very good, and leaning on it before you can do the extraction by hand is a mistake that shows up immediately when a target needs a custom tamper script or has a WAF in front of it. Learn the manual path first; the automation makes far more sense afterwards, and so does the substantial body of evasion research collected below.

Start here: the SQLi learning pathAn ordered route through this library — orientation, then methodology, then research. Read the SQLi guideA long-form, source-cited deep dive synthesized from every resource below. The comprehensive SQLi guide on chs.usA hand-written, in-depth practitioner guide — attacks, testing, and prevention. SQLi on the appsec.fyi WikiInterlinked reference pages — techniques, variants, and defenses, one concept per page.
Date Added Link Excerpt
2026-11-27 NEW 2026Blind SQL injection in Bahmni's flowSheet endpoint intermediate 7 min readBlind SQL injection in Bahmni's flowSheet endpoint allowed any authenticated user to read arbitrary data, including other patients' records, identifiers, and password hashes. The vulnerability, fixed in release 3.0.1 (GHSA-jw4p-m348-j6gm), stemmed from an un-bound request parameter in a native SQL query within the flowSheet REST endpoint. This allowed attackers to inject malicious SQL and perform time-based blind exfiltration of sensitive clinical and credential data from the hospital system.
2026-11-27 NEW 2026Blind SQL Injection in SuiteCRM Reports, Through ORDER BY intermediate 4 min readBlind SQL Injection in SuiteCRM Reports, Through ORDER BY, identified as CVE-2026-100365, allows unprivileged users to read sensitive database information, including administrator bcrypt hashes, by manipulating the sort label in grouped reports. This second-order vulnerability exploits the unchecked concatenation of user-provided sort labels directly into the SQL ORDER BY clause, bypassing an XSS filter. The vulnerability affects SuiteCRM versions prior to 7.15.2 and 8.10.2, with the fix implemented by sanitizing the sort label and restricting sort directions.
2026-11-26 NEW 2026I bypassed an Android login screen with one line of text intermediate 6 min read AuthN MobileAndroid login screens can be bypassed with a single line of text through SQL injection, exploiting vulnerabilities where user input is directly concatenated into database queries without sanitization. This technique allows attackers to circumvent authentication and extract sensitive data, such as user credentials, as demonstrated in a challenge involving the Allsafe vulnerable Android app. The vulnerability arises from the misuse of `rawQuery()` without parameterized queries, compounded by insecure password hashing (MD5) and the improper display of all retrieved user data.
2026-11-26 NEW 2026SQL injection exploitation walkthrough with DVWA, SQLMap and Burp Suite beginner 5 min read BurpSQL injection exploitation is demonstrated using Damn Vulnerable Web Application (DVWA), SQLMap, and Burp Suite. This walkthrough explores manual injection, automated detection and exploitation with SQLMap, and request interception and modification with Burp Suite to extract sensitive data, showcasing different attack vectors and prevention techniques like parameterized queries and input validation.
2026-11-26 NEW 2026Finding time-based blind SQL injection in an academic portal intermediate 2 min read Bug BountyTime-based blind SQL injection was identified in the `username` parameter of an academic portal developed by PT. Gamatechno Indonesia. Google Dorking and subsequent security testing revealed that user-controlled input in this parameter could influence SQL query execution, potentially allowing unauthorized database access and sensitive information disclosure. Mitigation involves using parameterized queries, input validation, and restricting database privileges.
2026-11-26 NEW 2026TryHackMe Kitty: SQLi WAF bypass to root cron injection intermediate 5 min readKitty, a TryHackMe box, demonstrates bypassing a hand-rolled SQL injection WAF with `UNION SELECT` to gain initial access and dump credentials. Privilege escalation to root is achieved through a cron job executing a command injection flaw, where an attacker-controlled `X-Forwarded-For` header is written to a file then read by a root-owned script. This highlights how keyword blacklists fail to secure applications and the risks of treating HTTP headers as trusted input for privileged processes. → classroom.anir0y.in
2026-11-26 NEW 2026247CTF The Flag API: blind SQLi on an exact budget intermediate 3 min read247CTF's Flag API challenge demonstrates a blind SQL injection vulnerability arising from string-concatenated SQL queries in a login endpoint. The exploit leverages a boolean oracle formed by the username field, combined with an exact 128-request token budget, to extract a 32-character hex password. The attack efficiently decodes one bit per request using a precisely crafted set of four flat membership tests for each hex digit, fitting the information-theoretic minimum and highlighting how rate limits can become design constraints for exploitation.
2026-11-25 NEW 2026WhatsApp fixes three security flaws including Android SQL injection bug news 1 min read MobileWhatsApp fixed an Android SQL injection vulnerability (CVE 2026 102769) in its November update, which could lead to local file deletion and limited chat database exposure upon opening specially crafted messages from unofficial clients. The update also addressed certificate validation issues in remote attestation and a flaw allowing IP information disclosure via crafted ad reply URLs, with no evidence of widespread exploitation for the SQL injection bug.
2026-11-25 NEW 2026PortSwigger Labs: SQL injection in an MCP server tool walkthrough intermediate 2 min read BurpWalkthrough of SQL injection in a PortSwigger MCP server tool lab, detailing how to exploit an exposed MCP endpoint by crafting JSON-RPC payloads. The analysis involves sending POST requests, identifying the "Invalid JSON-RPC message" error, and enumerating tools using `tools/list`. The `list_products` method is then targeted, and inserting a single quote reveals an SQLi vulnerability, allowing for UNION attacks. The technique culminates in identifying the PostgreSQL version, enumerating the `users` table and `username`/`password` columns, and extracting administrator credentials for successful authentication.
2026-11-25 NEW 2026wpForo unauthenticated SQL injection via multichoice search (CVE-2026-95870) intermediate 9 min readAnalysis of CVE-2026-95870 reveals an unauthenticated SQL injection vulnerability in the wpForo Forum WordPress plugin. Versions 2.0.1 through 3.1.7 are affected by this flaw, which allows attackers to extract sensitive database information, including administrator password hashes, by manipulating multichoice custom field search queries. The vulnerability arises from improper escaping of user-supplied input before its inclusion in a regular expression within an SQL query, enabling SQL injection via a true/false oracle based on search result presence.
2026-11-25 NEW 2026WHMCS SQL injection could expose customer data and admin password hashes without login intermediate 2 min readCVE-2026-82981, a critical SQL injection vulnerability in WHMCS's internet-facing shopping cart, allows unauthenticated attackers to exfiltrate customer data and administrator password hashes. This flaw, with a CVSS score of 8.7, affects unpatched installations and requires administrators to update to fixed versions to protect sensitive information. → thehackernews.com
2026-11-25 NEW 2026CVE-2026-126705: WP Job Portal columns[] SQL injection PoC intermediate 6 min readCVE-2026-126705 in WP Job Portal versions prior to 2.8.1 is an authenticated time-based SQL injection vulnerability within the `columns[]` parameter. This allows a subscriber-level attacker to craft requests that manipulate SQL identifiers, leading to blind extraction of database content and potential privilege escalation. The vulnerability stems from unvalidated keys used to construct SQL update and insert statements, which were patched by validating column names against declared properties and enforcing strict identifier syntax.
2026-11-25 NEW 2026SQL injection in an MCP server tool: PortSwigger Web Academy lab walkthrough intermediate 2 min read BurpWalkthrough of PortSwigger Web Academy's SQL injection lab using the MCP Server Scanner Burp Suite extension. This guide details installing the extension, connecting to the lab's MCP server endpoint, initiating scans, and leveraging the identified MCP SQL injection vulnerability. It explains how to send vulnerable requests to Burp Repeater and craft UNION SQLi payloads, referencing "Payloads All The Things" for examples, to extract administrator credentials and complete the lab exercise.
2026-11-24 NEW 2026Ghost Render CTF: SQL Injection, Jinja2 SSTI and Reverse Shell intermediate 2 min read RCE SSTIWalkthrough of the Ghost Render CTF challenge, detailing the exploitation of SQL injection via SQLmap to extract administrator credentials from a login form. It further describes identifying and leveraging a Jinja2 Server-Side Template Injection (SSTI) vulnerability within a CSV upload feature to execute commands and establish a reverse shell, ultimately retrieving the challenge flag. Tools utilized include Nmap, Burp Suite, SQLmap, and Netcat.
2026-11-23 NEW 2026SQLi at NASA: how I got my Letter of Recognition beginner 4 min read Bug BountyBlind-boolean SQLi vulnerability found in a NASA subdomain, where a WAF blocked direct UNION-based attacks. The vulnerability, stemming from direct string concatenation in SQL queries, allowed for data exfiltration through binary searching the ASCII values of characters, confirmed by a Python script and demonstrable with sqlmap. This blind SQLi was facilitated by an exposed Tomcat stack trace revealing the exact Oracle SQL query, and a WADL file that aided in endpoint discovery.
2026-11-23 NEW 2026How I discovered a blind SQL injection in a private program beginner 2 min read Bug BountyBlind SQL injection was discovered by enumerating subdomains and exploring exposed infrastructure, leading to the `/email-asset-editor/ajax/saveChanges.php` endpoint. Testing the `asset_id` parameter with a time-based payload, like `(select(0)from(select(sleep(5)))v)/*'+(select(0)from(select(sleep(5)))v)+'"+(select(0)from(select(sleep(6)))v)+"*/`, confirmed the vulnerability, enabling database extraction using `sqlmap`.
2026-11-23 NEW 2026Essity: Unauthenticated SQL Injection via REST Batch Route Confusion ████████ news 3 min read API Sec Bug BountyEssity WordPress sites are vulnerable to unauthenticated blind SQL injection via REST batch route confusion. Attackers can exploit a dispatch index desynchronization combined with missing type guards in the `author__not_in` parameter. This allows a crafted nested batch payload to bypass sanitization and inject raw SQL into a `WP_Query`, potentially leading to the compromise of password hashes, session tokens, API keys, and even remote code execution. Updating WordPress to the latest version or blocking unauthenticated POST requests to the batch endpoint mitigates this critical vulnerability. → hackerone.com
2026-11-23 NEW 2026A login bypassed by SQL injection: B-52 on XBEN-029 beginner 4 min read AuthNXBEN-029's login form accepted SQL injection through its username field, allowing an administrator session to be obtained without a valid password. B-52 Security investigated the login's distinct responses to different inputs, realizing the username was directly inserted into SQL queries. By crafting a UNION expression in the username, B-52 returned a custom row, effectively bypassing authentication and granting administrator access.
2026-11-23 NEW 2026TryHackMe Light: SQLite injection past a keyword filter intermediate 4 min readSQLite injection past a keyword filter is demonstrated on the TryHackMe "Light" challenge, where attackers interact with a raw TCP socket. The challenge highlights how a case-sensitive string-matching blocklist for keywords like "UNION SELECT" can be bypassed by using mixed-case variations, as SQL keywords are typically case-insensitive. Comment bans are also rendered ineffective when input is enclosed in quotes, allowing the application's own closing quote to terminate the payload, leading to successful schema discovery and data exfiltration from the hidden admin table. → classroom.anir0y.in
2026-11-23 NEW 2026secret-table-2: AlpacaHack web writeup (SQLi) intermediate 3 min readSQL injection is demonstrated in the "secret-table-2" writeup, where attackers must first discover randomized table and column names before extracting the flag. The vulnerability lies in the application's use of f-strings for constructing SQL queries, allowing for payload injection. By querying `sqlite_master`, the table and then column names can be revealed, enabling a UNION injection to retrieve the flag.
2026-11-23 NEW 2026picoCTF 2026 SQL Map1 writeup intermediate 3 min readpicoCTF 2026 SQL Map1 challenge writeup details exploiting a SQL injection vulnerability in a web application's search feature. The author uses SQLMap to identify boolean-based and time-based blind injection points against a SQLite backend. The process involves dumping both the `flags` and `users` tables, revealing plain MD5 hashed passwords. By cracking the hash for the `ctf-player` account, the author gains access to the `secret.php` page and retrieves the final flag.
2026-11-22 NEW 2026Narrow Grants, Wide Engines: native database attack surface from minimal SQL roles advanced 10 min read RCECVE-2026-116331 in PostgreSQL, alongside similar vulnerabilities found in MySQL and Oracle AI Database, reveals that minimal SQL roles can expose a broad native attack surface. Exploiting type confusion bugs in database engine components, such as PostgreSQL's SORTOP optimization for custom aggregates, allows unprivileged users to achieve arbitrary command execution. These flaws enable attackers to leverage session-local temporary schemas to construct primitives for memory leaks, ASLR bypasses, and control-flow hijacking, ultimately compromising the database's OS service account.
2026-11-21 2026The Devil Went Down to Georgia: How I Made $60k Hacking the DHS beginner 9 min read Bug BountyGeorgia Department of Human Services portals exposed millions of residents' data through three critical vulnerabilities, yielding $60,000 in bug bounties. An OTP brute-force on the Mobile Benefits Portal allowed account takeover, while a Local File Inclusion (LFI) vulnerability, bypassed with `..\` in the filename parameter, could read sensitive system files and other users' documents. The Division of Child Support Services portal suffered from a time-based blind SQL injection in its member lookup endpoint, allowing attackers to extract data by observing response delays, and was confirmed using `sqlmap` with heavy queries targeting the IBM DB2 backend.
2026-11-20 2026SQL Injection: From Theory to Exploitation — A Hands-On Walkthrough beginner 5 min readWalkthrough of SQL Injection techniques, covering In-Band (error-based and union-based), Blind (boolean-based and time-based), and Out-of-Band exploits. It details practical exploitation steps, including identifying vulnerable parameters, enumerating database schemas and tables, and extracting credentials, referencing the TryHackMe SQLi lab. Prevention methods like parameterized queries, input validation, and Web Application Firewalls (WAFs) are also discussed, alongside the use of tools such as SQLmap and Burp Suite.
2026-11-20 2026Behind the Delay: Discovering Time-Based Blind SQL Injection in a Live Web Application intermediate 2 min read Bug BountyTime-Based Blind SQL Injection vulnerability discovered in a live web application by observing response time delays. This technique, confirmed with SQLMap, exploits how user-controlled input is handled in database queries without revealing errors, leading to database fingerprinting and enumeration.
2026-11-19 2026Time-Based Blind SQL Injection: When the Database Talks in Seconds beginner Bug BountyThis guide details Time-Based Blind SQL Injection, a technique where attackers infer database information by observing time delays in responses. Unlike other SQL injection types, it doesn't rely on direct error messages or data display. Instead, attackers craft specific SQL queries that cause a noticeable delay if a condition is met. This allows them to confirm vulnerabilities and gradually extract data by observing these time-based signals. The guide offers comprehensive steps for identification, confirmation, and data extraction using various payloads. → osintteam.blog
2026-11-19 2026How I Found IDOR, SQLi and XSS on NASA intermediate 3 min read AuthZ Bug Bounty IDOR XSSNASA subdomain vulnerability discovery including Broken Access Control (IDOR) in a GraphQL API allowing product UUID enumeration and status manipulation, SQL Injection in an endpoint that directly embeds a `Name` parameter, and Reflected Cross-Site Scripting (XSS) found by directly rendering a `week` URL parameter into JavaScript. → infosecwriteups.com
2026-11-18 2026Metabase SQL Injection & UAF intermediate 6 min readMetabase SQL Injection CVE-2026–72898 affects versions prior to 0.58.24, allowing attackers to execute arbitrary SQL queries via the `/api/session/reset_password` endpoint by manipulating the `user_id` parameter with a nested `raw` field. This vulnerability, stemming from Metabase's Clojure codebase and its use of HoneySQL, can be exploited to achieve Remote Code Execution (RCE) by leveraging PostgreSQL's `copy()` function with the `pg_execute_server_program` privilege, enabling a reverse shell.
2026-11-18 2026Beyond the Basics: Exploring SQL Injection from a Black-Box Perspective intermediate 6 min readSQL injection from a black-box perspective, focusing on PostgreSQL enumeration via UNION-based attacks. The exploration begins with detecting the vulnerability, identifying reflected columns, and pinpointing the PostgreSQL DBMS. It details enumerating databases, schemas, tables, and columns, culminating in data extraction. Differences encountered between PostgreSQL and MySQL structures, metadata enumeration, and string aggregation are highlighted.
2026-11-18 2026I Ignored a NEXT_PUBLIC_ Token for a Week. Then It Unlocked Blind SQLi and the Whole Database intermediate 5 min read Bug Bounty SecretsBlind SQL injection is achievable via a vulnerable `fields` parameter that directly incorporates user input into a `SELECT` clause. Attackers can bypass the `member.` prefix by aliasing a different table to `member` in the `FROM` clause and then using SQL comments to remove the original `FROM` and `WHERE` clauses. This allows for the retrieval of sensitive data, including authentication tokens and user roles, from any tenant on the platform.
2026-11-17 2026Backend Security: JWT, CSRF va SQL Injection qanday ishlaydi?(2) intermediate 4 min read CSRFReference detailing backend security measures, including Rate Limiting algorithms like Token Bucket and Leaky Bucket, protection against CSRF using tokens and SameSite cookies, and preventing SQL Injection via Parameterized Queries and Prepared Statements. It also covers HTTPS and TLS for data encryption and authentication, and their combined application in real-world scenarios like online banking, incorporating JWT validation, CORS, and logging.
2026-11-17 2026One Login Form, Two Burp Suite Tools, and a Full Database Schema intermediate 4 min read BurpBurp Suite's Intruder and Repeater tools demonstrate how to exploit common web application vulnerabilities. Intruder can crack weak admin passwords through brute-force attacks, while Repeater reveals SQL injection flaws by transforming a search box into a gateway for reading the entire database schema. These techniques, applied against OWASP Juice Shop, highlight the need for robust password policies, parameterized queries, and proper input sanitization to prevent such attacks.
2026-11-17 2026emlog pro AI Assistant CSRF to SQL execution PoC intermediate 3 min read AI CSRFemlog pro AI Assistant CSRF to SQL execution PoC details a critical vulnerability, CVE-2026-73847, where missing CSRF protection on the AI Assistant's `execute_tool` endpoint allows an authenticated admin to execute arbitrary SQL. This chained vulnerability permits full database read and write access, excluding the `blog` table, enabling direct user table manipulation for account takeover. The proof-of-concept demonstrates both raw impact with local execution and cross-site delivery via a crafted HTML form exploiting Chrome's default cookie handling.
2026-11-16 2026SQL Injection beginner 4 min readTechnique detailing SQL Injection, a security exploit where attackers insert malicious SQL code into application inputs. This entry covers In-band (Error-based, Union-based), Inferential (Time-based, Boolean), and Out-of-band SQL Injection types, along with impacts like data theft, authentication bypass, and data compromise. Practical examples and tool usage with `uniscan` and `sqlmap` for vulnerability scanning and injection are demonstrated.
2026-11-15 2026TryHackMe: Light_Understanding SQLite Injection from Zero Knowledge beginner 4 min readWalkthrough of a TryHackMe "Light" box focusing on manual SQLite injection. This entry details the process of identifying the database engine, fingerprinting the application's SQL query structure, and bypassing filters on comments (`--`, `/*`) and keywords (`UNION`, `SELECT`) through quote-balancing and case variation. It covers enumerating the schema using `sqlite_master` and extracting data, including flag retrieval, by pivoting through `username` and `password` columns.
2026-11-14 2026How I Solved PortSwigger SQLi Labs 7–18 (Part 2 Walkthrough) intermediate 13 min read BurpPortSwigger SQL injection labs 7–18 are documented, covering UNION attacks to determine column counts, identify text columns, retrieve data from the users table, and concatenate values. Blind SQL injection techniques are demonstrated, including conditional responses for blind testing and conditional errors for error-based exploitation. The walkthrough details password enumeration strategies, highlighting the challenges with blind SQL injection and the development of a custom Python tool to accelerate the process when Burp Suite Community Edition proved too slow.
2026-11-14 2026Prompt Injection Is the SQL Injection of AI Agents beginner 11 min read AIPrompt injection, analogous to SQL injection in web applications, poses a significant risk to AI agents by allowing malicious instructions embedded in external data to be misinterpreted as commands. Unlike SQL injection, prompt injection cannot be easily patched due to the token-based nature of language models, where distinguishing between instructions and data is challenging. Preventing this threat requires a "containment" strategy that relies on robust code-based enforcement within an "AI agent harness" rather than solely on system prompts. This approach involves treating all external content as untrusted data, fencing it with clear markers, and implementing strict, code-driven controls over tool usage, credential management, and data access to minimize the potential impact of any successful injections.
2026-11-14 2026My Cybersecurity Journey: Exploring SQL Injection in a Web Application beginner 2 min readSQL Injection vulnerability in a web application's search functionality is explored, detailing reconnaissance techniques and utilizing SQLMap to identify Boolean-based blind, error-based, UNION-based, and time-based blind SQL Injection. The writeup emphasizes the importance of input validation, secure coding practices like parameterized queries, and the use of tools like Kali Linux and FFUF for identifying and mitigating such risks.
2026-11-13 2026prepared statements prevents SQLi. But it also helped me to exploit a 22 years old PostgreSQL 0-day RCE (CVE-2026-6460) advanced RCEThe user encountered a PostgreSQL 0-day Remote Code Execution (RCE) vulnerability (CVE-2026-6460) in a 22-year-old version. While prepared statements are generally a defense against SQL injection, the user found they could be leveraged to exploit this specific RCE flaw. The details of how this exploit was achieved were posted on r/netsec.
2026-11-13 2026How I Find SQL Injection Vulnerabilities: My Manual Bug-Bounty Testing Method intermediate 8 min read Bug BountySQL injection vulnerabilities are found through manual testing focusing on authenticated flows, JSON bodies, second-order inputs, and blind cases often missed by scanners. This method involves mapping all input points including URL parameters, POST bodies, headers, and cookies, then probing with single quotes and conditional logic to confirm injection. Further steps include counting query columns, fingerprinting the database, and proving impact by retrieving a single, non-sensitive value like the database version, all before submitting a clear, remediation-focused report.
2026-11-13 2026PortSwigger Lab: Blind SQL Injection with Out-of-Band Interaction intermediate 3 min readTutorial on exploiting blind SQL injection vulnerabilities in asynchronous database queries, specifically targeting the PortSwigger Web Security Academy lab. It details using Out-of-Band Application Security Testing (OAST) with Burp Collaborator to trigger DNS lookups via Oracle's EXTRACTVALUE() function and XML External Entity (XXE) payloads. Remediation strategies include parameterized queries and restricting database network egress.
2026-11-12 2026PortSwigger Lab: Blind SQL Injection with Out-of-Band Data Exfiltration intermediate 3 min read BurpWalkthrough of Blind SQL Injection exploiting an asynchronous analytics cookie in the PortSwigger Web Security Academy. This lab focuses on out-of-band data exfiltration (OAST) via DNS lookups to Burp Collaborator, leveraging Oracle's EXTRACTVALUE() and XML external entity resolution. The technique involves crafting a payload that concatenates a SQL subquery fetching the administrator's password directly as a subdomain prefix onto the Collaborator domain, effectively leaking the password in the DNS query logs.
2026-11-12 2026Bypassing a Login Form with SQL Injection: Four Ways to Get There (and What Each One Teaches You) intermediate 6 min read AuthN BurpTutorial detailing four methods to bypass a login form using SQL injection, specifically targeting the `administrator'--` payload. The techniques involve direct form submission, Burp Proxy interception, Burp Repeater analysis of redirects and cookies, and session cookie transfer. Each method highlights different aspects of the vulnerability, from simple proof-of-concept to understanding the authenticated state established by the exploit. The tutorial also contrasts this with defenses like CSRF tokens and discusses secure coding practices such as parameterized queries.
2026-11-11 2026PortSwigger Lab: Blind SQL Injection with Time Delays and Information Retrieval intermediate 5 min read BurpBlind SQL injection with time delays can be exploited by leveraging conditional `pg_sleep()` functions within a `TrackingId` cookie to infer sensitive data, such as administrator passwords. By systematically testing character positions and values while measuring response times, an attacker can reconstruct credentials, as demonstrated in a PortSwigger Web Security Academy lab scenario.
2026-11-10 2026MobileHackingLab “Food Store” Lab Writeup intermediate 8 min read MobileLocal SQLite SQL injection in an Android app's signup form allows privilege escalation. The vulnerability arises from the `DBHelper.addUser()` method directly concatenating unsanitized username input into an `INSERT` statement executed via `db.execSQL()`, while other fields are protected by Base64 encoding. This allows an attacker to inject values for the `isPro` column, granting Pro user status and increased credits without any server-side validation.
2026-11-10 2026Group and session filters checked the column name, profile filters didn’t: ClickHouse SQL injection intermediate 6 min read Bug BountyOpenPanel's analytics filter builder contained a ClickHouse SQL injection vulnerability (CVE-2026-88890) where profile filters passed column names directly into SQL queries without proper sanitization. This allowed authenticated users with project read credentials to bypass project isolation, access other organizations' data, and exfiltrate sensitive PII. The vulnerability was fixed in version 3.0.0 by implementing an allowlist for profile column names.
2026-11-10 2026PortSwigger Lab: Blind SQL Injection with Time Delays intermediate 2 min read BurpPortSwigger Lab: Blind SQL Injection with Time Delays demonstrates exploiting a time-based blind SQL injection vulnerability in a TrackingId cookie. When an application masks query results and errors, time delays can be used by injecting database-specific sleep functions like `pg_sleep(10)` to confirm the vulnerability. This technique, confirmed through Burp Suite, involves closing the string literal, concatenating the sleep function, and commenting out the rest of the query. Remediation involves using parameterized queries.
2026-11-09 2026SQL Injection — Pink CTF Web Challenge beginner 1 min readSQL Injection in Pink CTF: A writeup details how a SQL Injection vulnerability in a web challenge was bypassed by encoding the single quote character as `%27` and using the `%bf` prefix to exploit GBK encoding, followed by employing a `#` comment character to complete the successful injection.
2026-11-09 2026PortSwigger Lab: Visible Error-Based SQL Injection intermediate 4 min read BurpVisible error-based SQL injection is exploited in a PortSwigger Web Security Academy lab by crafting payloads that trigger database data-type conversion errors to exfiltrate sensitive information. Attackers leverage the `CAST()` function within a subquery, feeding it data intended for type conversion into an incompatible type. When the database fails, it outputs the problematic string literal directly into an error message, enabling the leakage of credentials such as the administrator's password, as demonstrated by bypassing character limits and using `LIMIT 1` to obtain specific data.
2026-11-08 2026One Lab, Three Ways: solving PortSwigger’s SQL Injection Hidden Data lab with Burp intermediate BurpThis content details three distinct methods for solving PortSwigger's "SQL Injection Hidden Data" lab using Burp Suite. The author aims to demonstrate diverse approaches to tackling SQL injection vulnerabilities within this specific lab environment, highlighting the flexibility and power of Burp Suite in identifying and exploiting such flaws. The article likely provides step-by-step instructions and explanations for each of the three solutions presented.

Frequently Asked Questions

What is SQL injection?
SQL injection is a code injection technique where an attacker inserts malicious SQL statements into input fields or parameters that are incorporated into database queries. Successful exploitation can read, modify, or delete database data, and in some cases execute operating system commands.
What is the difference between blind and error-based SQLi?
Error-based SQLi extracts data through database error messages visible in the application response. Blind SQLi works when errors are suppressed — it infers data using boolean conditions (true/false responses) or time delays (e.g., IF condition THEN SLEEP(5)). Blind SQLi is slower but works in more restrictive environments.
Are prepared statements enough to prevent SQLi?
Prepared statements (parameterized queries) prevent classic SQLi in most cases. However, they cannot parameterize table names, column names, or ORDER BY clauses. Dynamic SQL built from these elements still requires allowlist validation. ORMs reduce risk but can be bypassed through raw query methods.