Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/googlesky/cve-2026-110697
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingSupply Chain SecurityLabs & Practice
GitHubgooglesky/cve-2026-110697

CVE-2026-110697

Proof-of-concept and containerized differential lab for CVE-2026-110697, an unescaped SQL LIKE wildcard in Red Hat Quay robot listing that leaks cross-tenant robot tokens.

View Repository
3 days agoNot yet reviewed
Share

CVE-2026-110697 — Red Hat Quay cross-tenant robot token theft (unescaped SQL LIKE)

License: MIT

Published at: https://github.com/googlesky/CVE-2026-110697 (public repository; lab, PoC, write-up and captured evidence).

PoC, containerized differential lab, and root-cause analysis for CVE-2026-110697 (CVSS 3.1 9.9 CRITICAL, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H), a tenant-isolation failure in Red Hat Quay / Project Quay caused by an unescaped SQL LIKE wildcard in the robot account listing function (Red Hat advisory, NVD record). Discovered by Dave O'Connor (Red Hat).

ComponentRed Hat Quay / Project Quay (quay/quay), robot account listing API
Affectedall supported Quay branches before the fix — fixed in 3.9.28, 3.10.28, 3.12.24, 3.14.10, 3.15.9, 3.16.7, 3.17.7, 3.18.3 (Quay.io SaaS already fixed)
Fixed byquay/quay commit 094cfb0 — "Fix CVE-2026-110697 and CVE-2026-123710 (#8056)" (2026-11-11, author Brandon Caton, Red Hat)
CWECWE-89 (improper neutralization of special elements used in an SQL command — LIKE wildcard)
Impactcross-tenant credential theft: another tenant's robot accounts and decrypted authentication tokens; stolen credentials operate the victim's image read/push/overwrite (CI/CD supply-chain impact)
Vectorauthenticated, low-privileged: any account that can create a namespace (its own user namespace is enough); no admin rights, no victim interaction
Triggercreate a namespace whose name differs from the victim's namespace in exactly one character, replaced by _; list "own" robots

An authenticated attacker creates a namespace (or registers a username) whose name contains an underscore at the position where it should match the victim's namespace character. The robot listing endpoint builds LIKE '<attacker-ns>+%_' from the attacker's own namespace without escaping, so the _ absorbs the victim namespace's character and the query returns the victim's robot accounts together with their decrypted tokens. Robot tokens are the credentials CI/CD pipelines use to push and pull images, so the theft converts directly into unauthorized image overwrite inside the victim tenant — the impact Red Hat rates at 9.9.

1. Root cause

data/model/user.py, _list_entity_robots() (vulnerable tree — tag v3.18.2 line 634, and master 094cfb0^ line 796):

def _list_entity_robots(entity_name, include_metadata=True, include_token=True):
    ...
    if include_metadata or include_token:
        query = (
            User.select(User, RobotAccountToken, RobotAccountMetadata)
            .join(RobotAccountMetadata, JOIN.LEFT_OUTER)
            .switch(User)
            .join(RobotAccountToken)                       # <-- encrypted token joined in
            .where(User.robot == True, User.username ** (entity_name + "+%"))
        )

In peewee, ** compiles to a raw LIKE/ILIKE (Quay binds it as ILIKE on PostgreSQL, see evidence/sqlprobe-vuln.txt). entity_name is the caller's own namespace name, taken verbatim from the authenticated user's account or organization and concatenated with +%:

  • _ — single-character wildcard (the character Quay itself allows inside usernames: VALID_USERNAME_REGEX = ^([a-z0-9]+(?:[._-][a-z0-9]+)*)$, util/validation.py);
  • % — multi-character wildcard (fixed literal at the end of the pattern).

The decrypted-token sink sits one frame up: endpoints/api/robot_models_pre_oci.py calls .decrypt() on every matched RobotAccountToken row, and endpoints/api/robot.py robots_list() serializes them into the response (token=true is the default on both endpoints).

The collision arithmetic: victim namespace N, attacker namespace A where A is N with one interior character replaced by _. The API-generated pattern is A + "+%"; the victim's robot username is N + "+" + shortname; the _ matches the victim character, every other position matches literally:

victim org     : abxc      robot username: abxc+bot
attacker org   : ab_c      LIKE pattern  : ab_c+%
                                 ab_c+%
                                 abxc+bot     -> MATCH (foreign tenant)

Reachable API endpoints in the vulnerable tree:

EndpointPrefix sourcePermission requiredReturns
GET /api/v1/user/robots?token=trueauthenticated user's own usernameany logged-in userown + colliding foreign robots + decrypted tokens
GET /api/v1/organization/<orgname>/robots?token=truethe caller's own organization nameorg member (attacker is admin of the colliding org they created)own + colliding foreign robots + decrypted tokens

The same flawed query also powers two second-order paths, both covered by the same fix: change_username() (data/model/user.py:302) renames every robot the wildcard matches — so renaming the attacker's own underscore username renames the victim's robot cross-tenant (probe mode demonstrates it), and namespace deletion (delete_user(), data/model/user.py:1730) deletes them.

Upstream fix (commit 094cfb0, data/model/user.py):

-            .where(User.robot == True, User.username ** (entity_name + "+%"))
+            .where(User.robot == True, prefix_search(User.username, entity_name + "+"))

prefix_search() (data/text.py) escapes ! % _ [ and compiles the pattern with SQL ESCAPE '!', which turns the underscore back into a literal character. The fix hunk covers both branches of _list_entity_robots(), and every caller (list_namespace_robots, list_entity_robot_permission_teams, change_username, delete_user) inherits it. Upstream added the regression test test_list_namespace_robots_underscore_namespace_exact_match with exactly the collision shape this PoC implements (ab_c vs abxc).

2. Reproduction environment

Two identical Quay stacks that differ only in the target component (the fix commit), each with its own PostgreSQL and Redis, on a dedicated Podman network cve-2026-110697-net:

ContainerImageSource
quay-vulncve-2026-110697:vulnquay/quay @ 094cfb0^ (fix parent — vulnerable)
quay-fixedcve-2026-110697:fixedquay/quay @ 094cfb0 (fix commit)
quay-db-{vuln,fixed}postgres:18per-side database
quay-redis-{vuln,fixed}redis:8per-side ephemeral store
  • Both Quay images are built from the upstream Dockerfile (target final, BUILD_ANGULAR=false — the UI bundle is not needed for the API PoC). Identical base image, Python requirements, and config; the only delta is the fix commit. Exact commits, image digests and the supporting-image digests are recorded in evidence/versions.txt.
  • ASan/UBSan builds are not applicable: this is a Python-constructed SQL pattern (CWE-89 logic flaw), not a native memory-safety bug. The equivalent instrumentation is two-layer: lab/sqlprobe.py runs inside both containers against identical seeded data and prints the modelled query (see below), and the instrumented database build (./lab/run-lab.sh instrument-db, then any PoC mode, then ./lab/run-lab.sh dbquery) switches PostgreSQL to log_statement='all' so the evidence records the SQL the database actually executed on each side — see evidence/dbquery-vuln.txt / evidence/dbquery-fixed.txt. Both prove the malformed pattern and the foreign-tenant match on the vulnerable build, and the escaped pattern plus exact-only match on the fixed build.
  • Every lab container is CPU/memory bounded (--cpus 2 --memory 4g).

3. Running the environment

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    885
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    796
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    629
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    458
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    433
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    385

Explore all tools

Browse our collection of tools

View all tools →