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.
Date Added Link Excerpt
2026-11-07 NEW 2026DBHub: MySQL comment interpretation bypasses read-only SQL validation intermediateDBHub's MySQL and MariaDB connectors have a vulnerability allowing read-only mode bypass. This exploit enables attackers to execute arbitrary write and Data Definition Language (DDL) commands despite the system being configured for read-only access. The issue stems from the connectors' improper interpretation of MySQL comments. No bounty payout amount was mentioned. → advisories.gitlab.com
2026-11-07 NEW 2026NocoDB SQLi via formula date format argument on MySQL intermediateA critical SQL injection vulnerability was discovered in NocoDB's `DATETIME_FORMAT` formula function when used with MySQL. The function's format argument was directly embedded into a MySQL query string without proper backslash escaping. This flaw allows authenticated users with permissions to add or edit formula fields to inject malicious SQL code, potentially compromising the database.
2026-11-07 NEW 2026One Lab, Three Ways: Solving PortSwigger’s SQL Injection “Hidden Data” Lab with the Browser, Burp… intermediate BurpThis article details three methods for solving PortSwigger's SQL Injection "Hidden Data" lab. The author demonstrates how to exploit the vulnerability using the browser's developer tools, Burp Proxy, and Burp Repeater. All three approaches utilize the same SQL injection payload, highlighting the versatility of different tools in achieving the same outcome. The focus is on the various delivery mechanisms for a single exploit.
2026-11-07 NEW 2026ZDI-26-891 SQL injection advisory newsThis advisory details a SQL injection vulnerability (ZDI-26-891) that could allow an unauthenticated attacker to execute arbitrary SQL commands. The vulnerability, if exploited, could lead to unauthorized data access or modification. The vendor has released a patch to address this security flaw. Further details on the affected product and specific remediation steps are available in the full advisory. → zerodayinitiative.com
2026-11-07 NEW 2026DutyBound HTB: PostgreSQL stacked-query SQLi to RCE intermediate RCEThe user successfully solved the "DutyBound" machine on Hack the Box. The vulnerability exploited was a stacked-query SQL injection in PostgreSQL, which ultimately led to Remote Code Execution (RCE). The summary focuses on the exploit method and the target system. No bounty payout amount was mentioned.
2026-11-06 NEW 2026Dromara SkyEye SQL injection via keyword parameter newsA SQL injection vulnerability exists in Dromara SkyEye, specifically in versions up to commit `65d3ddcede701d33ea5416e47c9b656e47d56401`. This vulnerability, identified as CVE-2026-110609, is rated as HIGH severity with a CVSS score of 7.1. It is exploitable via the keyword parameter. No bounty payout amount is mentioned in the provided information. → vulncheck.com
2026-11-06 NEW 2026SQL-Abstract Perl SQL injection CVEs (oss-security) news 3 min readLibrary provides patches and analysis for three CVEs affecting Perl's SQL-Abstract. CVE-2026-121007 allows SQL injection via nested statement where values. CVE-2026-121008 permits cross-site scripting through unescaped SQL text and bind values in the `html` profile. CVE-2026-121009 bypasses injection guards for function names specified with `-func`. Versions prior to 2.000001_04 are vulnerable.
2026-11-06 NEW 2026SQL injection in the Trilogy MySQL adapter news 2 min readWriteup on GHSA-744p-w4gc-m3gh, a critical SQL injection vulnerability in Trilogy, the MySQL client used by GitHub. Affecting all versions up to 2.13.1 with a CVSS score of 9.3, the bug arises from Trilogy's byte-by-byte string escaping, which incorrectly tags output with the input's encoding. This flaw, exploitable with multibyte encodings like GBK, allows bypasses of Rails parameter validation, as demonstrated by a proof of concept using sqlmap. The fix re-encodes strings to the connection's charset before escaping, and parameterized queries entirely avoid the issue.
2026-11-06 NEW 2026Unauthenticated SQL injection in YesWiki exposes password hashes news 3 min readWriteup of CVE-2026-116207, an unauthenticated SQL injection vulnerability in YesWiki affecting versions 4.6.0 up to, but not including, 4.7.0 and alpha versions up to 5.0.0-alpha4. Attackers can exploit this flaw in the Bazar entries search API by injecting backtick characters into search parameters, allowing arbitrary SQL command execution to steal password hashes or cause denial-of-service conditions via commands like SLEEP().
2026-11-06 NEW 2026CSA alert: active exploitation of Metabase SQL injection news 1 min readAlert concerning active exploitation of Metabase SQL injection vulnerability (CVE-2026-72898). Unauthenticated remote attackers can inject arbitrary SQL, gaining administrator access. This critical vulnerability, with a CVSS score of 10.0, affects numerous Metabase versions. A proof-of-concept exploit is publicly available. Users should immediately update to patched versions and follow post-upgrade security guidance, including revoking sessions and rotating credentials. A temporary workaround involves blocking access to the `/api/session/reset_password` endpoint.
2026-11-06 NEW 2026SurrealDB MCP tool identifier statement injection news 1 min read API SecLibrary patch addressing CVE-GHSA-cr79-9p8r-p5wx in SurrealDB's MCP tool identifier validation. The vulnerability allowed statement injection by exploiting a discrepancy between identifier validation and SQL lexing, where escaped backticks in identifiers were not correctly handled. This enabled arbitrary SQL query execution by breaking out of quoted identifiers. Versions 4.0.0 and later are unaffected.
2026-11-06 NEW 2026Unauthenticated SQLi in WPGraphQL 2.11.1 news API Sec GraphQLAdvisory for GHSA-4x56-83j8-4m8f details an unauthenticated SQL Injection vulnerability in WPGraphQL versions prior to 2.11.1. This flaw, identified as CVE-2026-40762, arises because the plugin constructs SQL commands using externally influenced input without properly neutralizing special characters. This allows attackers to inject malicious SQL code, altering the intended query and potentially leading to unauthorized data access or manipulation.
2026-11-05 NEW 2026Understanding SQL Injection beginner Bug BountySQL injection (SQLi) remains a persistent and common vulnerability, despite its age. This summary stems from a practical learning experience. SQLi occurs when an attacker inserts malicious SQL code into input fields, which can then be executed by the database. This can lead to unauthorized data access, modification, or deletion. Developers must implement proper input validation and parameterized queries to prevent such attacks. The article focuses on understanding and mitigating this prevalent security flaw.
2026-11-05 NEW 2026Web Gauntlet ~ CyLab Security Academy CTF Write-up | SQL Injection and Filter Bypass intermediate Bug BountyThis write-up details a successful approach to the "Web Gauntlet" challenge in the CyLab Security Academy CTF. The solution involved exploiting SQL injection vulnerabilities to bypass filters. The author explains the process of identifying and leveraging these weaknesses to gain access and solve the challenge. No bounty payout amount is mentioned in the provided content.
2026-11-04 NEW 2026Unauthenticated SQL Injection in Simple School Management System 1.0 — staff_delete.php intermediate AuthNAn unauthenticated SQL injection vulnerability has been discovered in the Simple School Management System version 1.0, specifically within the `staff_delete.php` file. This vulnerability, classified as High severity (CVSS 7.5), could allow attackers to compromise the system. The identified CWEs are CWE-89 (SQL Injection) and CWE-862 (Missing Authorization). No specific payout amount was mentioned in the provided content.
2026-11-02 NEW 2026From SQL Injection to RCE — HTB SQL Injection Skills Assessment intermediate RCEThis content details a user's journey through the Hack The Box (HTB) SQL Injection Skills Assessment. The assessment progresses from basic SQL injection vulnerabilities to achieving Remote Code Execution (RCE). The user shares their experience and learning process in mastering these advanced SQL injection techniques within the HTB platform.
2026-11-02 NEW 2026Unauthenticated SQL Injection in Code-Projects Simple School Management System 1.0 newsAn unauthenticated SQL injection vulnerability (CWE-89) has been discovered in Code-Projects Simple School Management System version 1.0. This means an attacker can exploit the software without needing to log in or provide any credentials. The vulnerability allows for the injection of malicious SQL commands, potentially leading to unauthorized access, modification, or deletion of sensitive data stored within the system. The content provided does not specify a bug bounty payout amount.
2026-11-02 NEW 2026Unauthenticated SQL injection in WPGraphQL 2.11.1 (CVE-2026-40762) news GraphQLAdvisory detailing CVE-2026-40762, an unauthenticated SQL injection vulnerability in WPGraphQL versions prior to 2.11.1. This flaw occurs because the plugin constructs SQL commands using external input without properly neutralizing special SQL syntax elements. This allows attackers to inject malicious SQL code through user-controlled inputs, altering the intended query.
2026-11-01 NEW 2026SQLi in user authentication module of Futurum Software (INCIBE-CERT) news AuthNWriteup of CVE-2026-14571, a Blind SQL Injection in Futurum Software's user authentication module, discovered by Diego González Aguín. This critical vulnerability (CVSS v4.0: 9.1) arises from inadequate input validation and sanitization, along with a flawed Web Application Firewall configuration, enabling unauthenticated attackers to execute arbitrary queries and exfiltrate sensitive PII.
2026-11-01 NEW 2026Tabularis MCP SQL Injection read-only bypass (news brief) news 4 min read AILibrary for Tabularis versions before 0.28.0, addressing CVE-2026-118378, a SQL injection vulnerability in the SQLite driver. A crafted `table_name` passed to the `describe_table` tool allows attackers, including AI agents, to bypass read-only mode and write approval by executing stacked SQL statements, potentially leading to data modification or deletion. This flaw (CWE-89) has a CVSS 4.0 score of 8.5 from VulnCheck.
2026-11-01 NEW 2026OpenEMR Syndromic Surveillance authenticated error-based SQL injection intermediate 2 min readWriteup detailing an authenticated error-based SQL injection in OpenEMR's Syndromic Surveillance module, allowing Clinician-level users to extract bcrypt password hashes and reset any user's password. Exploitation involves abusing MySQL's `extractvalue()` function for data exfiltration and stacked queries for account takeover, bypassing inadequate sanitization by `add_escape_custom()`. The vulnerability affects specific OpenEMR versions and has been patched.
2026-11-01 NEW 2026Tabularis MCP SQL injection read-only bypass (CVE-2026-118378) news AIWriteup of CVE-2026-118378 in Tabularis before 0.28.0 details an SQL injection vulnerability within the SQLite driver. MCP clients can exploit a crafted `table_name` argument in the `describe_table` tool to execute stacked statements, bypassing read-only mode. Attackers can close the PRAGMA argument and append commands to read, modify, or drop SQLite data, as identified in advisories GHSA-v867-6qx2-gwmg and NVD.
2026-11-01 NEW 2026CyLab: Secret Box beginner SecretsThis content describes a "CyLab: Secret Box" web exploitation challenge of medium difficulty. The challenge presents a system advertised as perfectly secure, intended to conceal secrets only visible to the user. However, the description hints at a potential vulnerability, posing the question, "Or can...?" The goal is likely to find a way to bypass the advertised security and access the "secrets." No specific bug bounty payout amount is mentioned.
2026-10-31 NEW 2026Unpacking CVE-2017–8917: A Hands-On Guide to Reproducing and Fixing the Joomla com_fields SQL… intermediateThis article provides a detailed, hands-on guide to reproducing and fixing CVE-2017–8917, a SQL injection vulnerability affecting Joomla's `com_fields` component. The vulnerability allows unauthenticated attackers to extract sensitive data from the database. The author walks through the exploitation process, demonstrating how to trigger the SQL injection and gain access to database information. Crucially, the post also offers a clear explanation of the fix and provides guidance on how to patch affected Joomla installations to prevent exploitation.
2026-10-31 NEW 2026How I Solved PortSwigger SQLi Labs 1–6 (Part 1 Walkthrough) intermediateThis article details a walkthrough of PortSwigger's SQL injection (SQLi) labs, specifically covering the solutions for labs 1 through 6. The author provides step-by-step guidance on how to exploit common SQL injection vulnerabilities within these exercises, offering practical insights for learning and practicing SQLi techniques. The content focuses on the methodologies and commands used to identify and leverage these flaws in a controlled lab environment, aiming to enhance the reader's understanding of web application security.
2026-10-31 NEW 2026Deep Dive into Patch Diffing: Analyzing the Code-Level Fix for CVE-2017–8917 in Joomla! advancedThis article details a deep dive into patch diffing, specifically analyzing the code-level fix for CVE-2017–8917 in Joomla!. Patch diffing is a technique used to understand security vulnerabilities by comparing vulnerable code with its patched version. The analysis focuses on how the fix addresses the identified security flaw in Joomla!, providing insights into the methods and processes involved in reverse engineering and code analysis for security purposes.
2026-10-31 NEW 2026Injection Attacks Through the Ages: From Turing Machines to Prompt Injection beginner AI TalksTalk from OWASP Foundation detailing the historical evolution of injection attacks, tracing their roots from foundational concepts like Turing machines and classical vulnerabilities such as SQL injection and command injection, to contemporary threats like prompt injection in AI systems, offering historical context and defense strategies for security professionals and developers.
2026-10-31 NEW 2026My Journey into Server-Side Security: Learning Through PortSwigger Labs beginnerThis content describes a personal journey into learning server-side security through PortSwigger Labs. The author likely details their experiences and the knowledge gained from these practical exercises. The focus is on the educational aspect and skill development in the realm of server-side vulnerabilities and their mitigation.
2026-10-31 NEW 2026Unauthenticated SQLi in a GraphQL API: From Guest to Admin Takeover intermediate API Sec AuthN GraphQLAn unauthenticated SQL injection vulnerability was discovered in a GraphQL API, allowing a guest user to escalate their privileges to an administrator. This severe flaw enabled attackers to bypass authentication and gain full administrative control over the system. The vulnerability highlights the critical need for robust input validation and secure coding practices, even in seemingly well-protected API environments.
2026-10-21 2026Unauthenticated SQL injection in GLPI (≤ 11.0.8) intermediate 4 min readWriteup detailing an unauthenticated SQL injection vulnerability in GLPI versions up to 11.0.8. The vulnerability arises from improper handling of date parameters in `front/planning.php` via the `checkavailability` and `genical` parameters, leading to raw concatenation into SQL queries within `CommonITILTask::genericPopulatePlanning()` and `ProjectTask::populatePlanning()`. Exploitation, particularly in GLPI 11.0.8 and the 12-dev branch, allows an attacker to exfiltrate sensitive data such as password hashes or session identifiers, potentially leading to account takeover. The fix involves using `DB::quoteValue()` to properly escape user-supplied data.
2026-09-24 2026Breaking the Superuser Guardrails of managed-PostgreSQL Providers intermediate 17 min read RCEAnalysis of security hardening extensions used by managed PostgreSQL providers, including those from Azure, Aiven, Supabase, PlanetScale, Xata.io, AWS Aurora, Google AlloyDB, and NeonDB, reveals significant vulnerabilities. The research details how these extensions, designed to prevent superuser access and block dangerous functions like `COPY TO/FROM PROGRAM`, can be bypassed. The author discovered 76 vulnerabilities across these extensions, highlighting systemic risks and challenging vendor assumptions about tenant isolation.
2026-09-17 2026From Bug to Schema: Exploring Error-Based SQL Injection on an Authenticating Portal intermediate AuthNThis paper details the discovery of an error-based SQL injection vulnerability within a production environment, identified through a Vulnerability Disclosure Program (VDP). The analysis focuses on how the vulnerability was found and exploited. The content emphasizes that this case study is for educational purposes, and all sensitive organizational data has been anonymized. No specific bounty payout amount is mentioned. → infosecwriteups.com
2026-09-03 2026Over 3 Million WordPress Sites Affected by Migration Plugin Vulnerability news 2 min readVulnerability in the All-in-One WP Migration and Backup WordPress plugin, CVE-2026-19949, allows unauthenticated remote code execution. The flaw, a second-order SQL injection, exploits insufficiently escaped user input within the archive restore functionality. Attackers can leverage WordPress trackback functionality to extract a secret key, then use it to import a malicious .wpress archive containing a must-use plugin for RCE. Versions up to 7.109 are affected; version 7.110 patches the issue. → securityweek.com
2026-08-31 2026ServiceNow Patches 3 Critical Code Injection Vulnerabilities news 2 min readReference to CVE-2026-18885, CVE-2026-18886, CVE-2026-74820, and CVE-2026-6876, critical vulnerabilities affecting the ServiceNow AI platform. These include three code injection flaws allowing arbitrary code execution, improper access control enabling data modification and privilege escalation, and an SQL injection vulnerability for database manipulation. Additionally, a high-severity sandbox escape flaw permits unauthenticated code execution. All exploit low-complexity attacks and do not require authentication or user interaction. → securityweek.com
2026-08-28 2026Three CVSS 10.0 ServiceNow Flaws Could Let Unauthenticated Attackers Execute Code and SQL news 4 min readAdvisory detailing three CVSS 10.0 ServiceNow vulnerabilities, including CVE-2026-18885 (code injection), CVE-2026-18886 (improper access control), and CVE-2026-74820 (SQL injection), which allow unauthenticated attackers to execute arbitrary code and manipulate data. Also covers CVE-2026-6876, an 8.7 rated sandbox escape. Patches are available for affected Xanadu, Yokohama, Zurich, and Australia versions. → thehackernews.com
2026-08-28 2026ServiceNow warns of three max severity security vulnerabilities news 2 min readAdvisory on three maximum-severity ServiceNow AI Platform vulnerabilities, including CVE-2026-18885 (code injection), CVE-2026-18886 (privilege escalation via code injection), and CVE-2026-74820 (SQL injection). These critical flaws, along with a high-severity sandbox escape (CVE-2026-6876), can be exploited by unauthenticated attackers with low complexity. Previous attacks have chained ServiceNow vulnerabilities, such as CVE-2024-4879, CVE-2024-5178, and CVE-2024-5217, for data theft. → bleepingcomputer.com
2026-08-26 2026From SQL Injection to Remote Code Execution: Following an Unexpected Attack Chain intermediate RCEThis write-up details a vulnerability discovery, responsibly disclosed and patched. The author stumbled upon an attack chain that escalated from an SQL injection to remote code execution. The technical details, including payloads and command output, are presented to illustrate the technique, with sensitive information redacted for security. The author emphasizes that the discovery was unexpected. → infosecwriteups.com
2026-08-24 2026SQL injection remains a persistent cyber threat after two decades beginner 3 min readSurvey of SQL injection vulnerabilities, detailing how the persistent threat, despite being well-understood for over two decades, continues to impact organizations globally. This entry highlights significant past incidents like the Heartland Payment Systems breach (2008-2009), Sony attacks (2011), TalkTalk (2015), and the 2023 MOVEit Transfer breach, underscoring the severe consequences including data theft, financial losses, and reputational damage. It emphasizes that implementation weaknesses, inadequate governance, and insufficient developer awareness, rather than a lack of available security measures, allow SQLi to persist.
2026-08-19 2026Early exploitation attempts observed of GeoServer zero day news 3 min readAnalysis of a GeoServer zero-day unauthenticated SQL injection vulnerability in `jsonArrayContains` reveals early internet-wide scanning and exploitation attempts. This flaw, potentially leading to remote code execution on H2 database deployments, echoes past real-world compromises like the 2024 breach of a U.S. federal agency exploiting CVE-2024-36401. Organizations should identify exposed GeoServer instances, monitor for suspicious activity, and await vendor patches.
2026-08-18 2026They patched their SaaS and left the self-hosted OSS version vulnerable - AppFlowy Authenticated SQL Injection news 3 min read AuthZWriteup detailing an authenticated SQL injection vulnerability in the self-hosted open-source version of AppFlowy. The vulnerability exists in the `search_term` parameter for the `/api/workspace/{workspace-id}/quick-note` endpoint, allowing authenticated users to exfiltrate, modify, or delete database contents via unsanitized input embedded into JSON path queries. The AppFlowy team confirmed the issue was patched in their commercial cloud offering but remained silent regarding the open-source version.
2026-08-17 2026Trezor Data Breach Analysis: 14000 Customers Exposed in ShipMonk Metabase SQL Injection Incident news 4 min readAnalysis of the Trezor data breach reveals a SQL injection vulnerability in ShipMonk's Metabase instance, exploited by attackers to exfiltrate PII of 14,000 customers. This incident highlights supply chain risks within the crypto sector, featuring MITRE ATT&CK techniques T1190 and T1068, and involves the ShinyHunters group for extortion. The breach exposed customer names, addresses, phone numbers, and emails, increasing phishing and social engineering risks for affected individuals. → rescana.com
2026-08-12 2026Critical SQL Injection in Metabase via Password Reset: CVE-2026-72898 news 3 min read AuthNWriteup of CVE-2026-72898, a critical SQL injection vulnerability in Metabase's password reset functionality. This unauthenticated flaw, with a CVSS score of 10.0, allows attackers to execute arbitrary SQL against the application database by exploiting undeclared fields in the request body. Exploitation can lead to administrative access and compromise of connected databases. Immediate upgrades to patched versions are strongly advised, along with auditing administrator accounts and reviewing logs for unauthorized activity. → bishopfox.com
2026-08-11 2026Inside the Metabase SQLi: Exploited in the Wild news 4 min readWriteup of GHSA-vwf4-m7j8-wcjf, a zero-day SQL Injection vulnerability in Metabase versions 1.58+, exploited in the wild. This analysis details the reverse engineering process, including decompiling Clojure code and identifying how Clojure's `merge` function, JSON keywordization, and HoneySQL's `:raw` keyword enable arbitrary blind SQL injection via the `/api/session/reset_password` endpoint. Recommendations include checking `/api/session/properties` and testing exploitability with a specific `curl` command. → wiz.io
2026-08-10 2026Inside the Metabase SQLi: Exploited in the Wild news 4 min readWriteup of the Metabase SQLi vulnerability, present in versions 1.58+, that targets the `/api/session/reset_password` endpoint. This vulnerability leverages Clojure's `merge` function, JSON keywordization, and HoneySQL's `:raw` keyword to achieve blind SQL injection. Wiz Research reverse-engineered the vulnerability, noting that versions 0.58.22 and 0.58.24 were affected, and patched versions are available. → wiz.io
2026-08-08 2026Metabase Zero-Day Exploited in Wild Allows Admin Access Without Authentication news 2 min readWriteup on a zero-day vulnerability impacting Metabase versions prior to specific patches, allowing unauthenticated remote attackers to inject SQL and gain administrator access. This critical flaw, with a CVSS score of 10.0, enables attackers to alter configurations, steal credentials, and read or export sensitive data. Affected versions include ranges within 0.58.0 through 0.63.0. Indicators of compromise involve specific API call patterns, and mitigation includes patching, blocking the `/api/session/reset_password` endpoint, and performing post-incident security checks. Framework was a reported victim, experiencing data exfiltration of customer PII. → thehackernews.com
2026-08-07 2026Attackers Compile khunt Inside Oracle to Turn SQL Injection Into Windows SYSTEM Access intermediate 2 min readLibrary of scripts and techniques for attackers to compile post-exploitation toolkits like khunt directly within Oracle databases. This method bypasses traditional endpoint detection by creating Java stored procedures that execute arbitrary commands on the Windows host, leveraging SQL injection flaws in web applications to gain initial access and then using Oracle's embedded JVM to achieve SYSTEM-level code execution. The toolkit includes components for command execution, credential theft, file manipulation, and archive unpacking. → thehackernews.com
2026-08-06 2026Attackers hid malware inside Oracle Database after SQL injection breach intermediate 2 min readAnalysis of a campaign detailing attackers exploiting SQL injection to hide custom Java malware, dubbed Khunt, within Oracle databases. The technique leverages Oracle's embedded Java Virtual Machine (OJVM) to upload, compile, and execute malicious code directly from database objects, enabling persistent footholds and facilitating post-exploitation activities like credential theft and SYSTEM-level command execution by blending with legitimate database functionality. Huntress recommends monitoring for unexpected Java source objects and compiled classes in Oracle environments. → csoonline.com
2026-08-06 2026Oracle SQL Injection Attack Enables Remote Code Execution intermediate 4 min readWriteup detailing an Oracle SQL injection attack that achieved remote code execution by abusing `CREATE JAVA SOURCE` functionality. Threat actors deployed the `khunt` toolkit within the Oracle database, leveraging modules like `KhuntCmd` for OS command execution and `KhuntHash` for credential theft. This technique highlights how legitimate database features can be weaponized, underscoring the need for secure coding, least-privilege access, enhanced Oracle monitoring, and robust incident response. → esecurityplanet.com
2026-08-05 2026Hackers run khunt post-exploitation toolkit from Oracle database advanced 2 min readToolkit for post-exploitation using Oracle database integration, discovered by Huntress. This attack leveraged a SQL injection vulnerability in a Java application to embed the "khunt" toolkit as Java objects within an Oracle database. The toolkit included components like KhuntCmd for OS command execution, KhuntHash for credential theft, and KhuntFS for file management, all triggered via SQL commands to gain SYSTEM-level privileges and potentially exfiltrate sensitive data like registry hives. → bleepingcomputer.com
2026-08-05 2026Hackers Smuggle Post-Exploitation Toolkit Into Oracle Database Via Classic SQL Injection Flaw intermediate 3 min readLibrary that details how a SQL injection vulnerability in a public-facing web application was used to smuggle a custom post-exploitation toolkit named "khunt" into an Oracle database. The attackers abused the `CREATE JAVA SOURCE` command to store and compile Java code as database objects, allowing them to run arbitrary OS commands from within the database, pivot to the underlying Windows server, and exfiltrate registry hives and system information. This technique, sometimes called "oraexec," exploits a blind spot in traditional endpoint security tooling.
Browse all 184 SQL Injection resources →

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.

Weekly AppSec Digest

Get new resources delivered every Monday.