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
phpmyadmin-pmadb-central-sqli — phpMyAdmin 5.2.3 - High - Remote - SQLi - central columns pmadb query leftover | Kitploit
Tools/GitHubGitHub/abraxas/phpmyadmin-pmadb-central-sqli
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLabs & Practice
GitHubabraxas/phpmyadmin-pmadb-central-sqli

phpmyadmin-pmadb-central-sqli

phpMyAdmin 5.2.3 - High - Remote - SQLi - central columns pmadb query leftover

View Repository
426 days agoNot yet reviewed

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.

    905
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    881
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    673
  • 4

    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.

    454
  • 5

    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.

    402
  • 6

    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.

    397

Explore all tools

Browse our collection of tools

View all tools →
Share

Abraxas Labs - phpmyadmin-pmadb-central-sqli

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  phpmyadmin-pmadb-central-sqli

Write-up: https://abraxaslabs.tech/research/phpmyadmin-pmadb-central-sqli

phpmyadmin-pmadb-central-sqli

Class: SQLi Reach: Remote

phpMyAdmin 5.2.3 (tag RELEASE_5_2_3, commit 962857e). Central columns writes col_extra by concatenating POST extra and attribute into a single-quoted SQL literal on the control-user link. Neighboring fields go through escapeString. These two do not.

A signed-in user POSTs index.php?route=/database/central-columns with multi_edit_central_column_save=1 and a quote in field_attribute (or col_extra). getInsertQuery / updateOneColumn then run that string as the pma control user against pma__central_columns. That account is the configuration-storage user, not the logged-in SQL box.

CVE-2016-5703 was the database name in central columns. These extra and attribute fields were not that bug.

IDno CVE yet
ClassSQLi (control-user on pma__central_columns)
ReachRemote (authenticated cookie login; pmadb central columns enabled)
CWECWE-89
CVSSHigh: 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
ProductphpMyAdmin
Affected5.2.3 tag RELEASE_5_2_3 (962857e)
AuthAuthenticated cookie login. pmadb central columns enabled.
LicenseGNU Affero GPL v3.0
Lab127.0.0.1:19210 only

What an attacker can do

A signed-in phpMyAdmin user who can open Central columns can inject SQL as the control user on pma__central_columns.

PrivilegeMethod / pathLab-proven or inferred
Break the control-user INSERT/UPDATE string (integrity of pmadb SQL)POST index.php?route=/database/central-columns multi_edit_central_column_save=1 with a quote in field_attribute / col_extraLab-proven. #1064 JSON error. Witness PMA-PMADB-CENTRAL-SQLI-WITNESS in the control-user error
Keep neighboring fields in-bandSame POST, quote in field_nameLab-proven. Row stored as neg'col. escapeString held
Read or overwrite other users' central-column rowsSame sink, once the string is closedInferred. Lab stops at syntax error; no stacked query
Extra statements as the control userSame sink if the control mysqli link allows multi-queryInferred. Default mysqli::query is single-statement. Not enabled here
Reach other pmadb tables (bookmarks, history, pma__userconfig)Only if stacked queries or a INTO-style write is possibleInferred. Control user in this lab has only phpmyadmin.* DML

Closed on this lab: unauthenticated access, the signed-in appuser SQL box (appdb only), OS shell, and stacked queries. Feature no-ops if pmadb / central columns is off (that is a FAIL, not this leftover).

How I found it

Eight parallel source hunts of RELEASE_5_2_3. Neighboring fields in CentralColumns.php are escapeString'd. Extra and attribute are implode into a single-quoted literal. CVE-2016-5703 was the database name, not these columns.

Wrong turns: treating a quote in field_name as the leftover (it stores as neg'col; that is the negative); expecting the general log to show the unescaped witness (the INSERT dies with #1064 before a successful write); treating pmadb-off as this leftover (feature no-ops).

Lab

python3 phpmyadmin-pmadb-central-sqli-Abraxas-Labs.py

or

cd lab
./run.sh

Loopback only: http://127.0.0.1:19210. Images phpmyadmin:5.2.3 and mysql:8.0. Compose project phpmyadmin-pmadb-central-sqli. Witness PMA-PMADB-CENTRAL-SQLI-WITNESS.

SUCCESS phpmyadmin-pmadb-central-sqli how=live insert-syntax=yes field-name-escaped=yes general-log-unescaped=false error-has-witness=true PMA-PMADB-CENTRAL-SQLI-WITNESS

The fix

escapeString / quoteString(..., CONNECT_CONTROL) on extra and attribute. Allowlist auto_increment, UNSIGNED, BINARY, UNSIGNED ZEROFILL, and on update CURRENT_TIMESTAMP. phpMyAdmin 6.x quoteString on the designer JSON blob is the patched shape for this class of pmadb concat.

References

  • github.com/phpmyadmin/phpmyadmin tag RELEASE_5_2_3 (962857e)
  • libraries/classes/Database/CentralColumns.php getInsertQuery / updateOneColumn
  • Controllers/Database/CentralColumnsController.php POST multi_edit_central_column_save
  • Route GET|POST /database/central-columns
  • Same pin leftovers: phpmyadmin-webauthn · phpmyadmin-designer-json-sqli · phpmyadmin-setup-validate · phpmyadmin-csrf-sql
  • CWE-89

License

GNU Affero GPL v3.0. See LICENSE. Loopback lab only. No warranty.

Download Tool