
SPIP CVE-2023-27372 Unauthenticated RCE Exploit (Web Shell Upload)
This Python script exploits CVE-2023-27372, an unauthenticated remote code execution vulnerability in SPIP CMS versions prior to 4.2.1. It leverages a cache poisoning flaw in the password reset mechanism to upload a web shell and gather basic system information.
Author: @ronkkeli (Script v1.2) TryHackMe: ronkkeli Original PoC Concept: nuts7
An unauthenticated RCE vulnerability exists in the ecrire/inc/filtres.php file within the reset_cache function. This function uses the oubli parameter from the password recovery page (spip.php?page=spip_pass). By sending a specially crafted serialized payload in the parameter, an attacker can inject arbitrary PHP code into the cache file . This script uses this flaw to execute and write a persistent web shell to the server.
oubliecrire/data/cache/reset_cache.phpfile_put_contents-f).-d).whoami, hostname, uname, id, pwd) using the shell.requests librarybeautifulsoup4 librarypip install requests beautifulsoup4