cve/2021/CVE-2021-21425.md

43 lines
2.6 KiB
Markdown
Raw Normal View History

2024-05-25 21:48:12 +02:00
### [CVE-2021-21425](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21425)
![](https://img.shields.io/static/v1?label=Product&message=grav-plugin-admin&color=blue)
2025-09-29 21:09:30 +02:00
![](https://img.shields.io/static/v1?label=Version&message=%3C%3D%201.10.7%20&color=brightgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-284%20Improper%20Access%20Control&color=brightgreen)
2024-05-25 21:48:12 +02:00
### Description
Grav Admin Plugin is an HTML user interface that provides a way to configure Grav and create and modify pages. In versions 1.10.7 and earlier, an unauthenticated user can execute some methods of administrator controller without needing any credentials. Particular method execution will result in arbitrary YAML file creation or content change of existing YAML files on the system. Successfully exploitation of that vulnerability results in configuration changes, such as general site information change, custom scheduler job definition, etc. Due to the nature of the vulnerability, an adversary can change some part of the webpage, or hijack an administrator account, or execute operating system command under the context of the web-server user. This vulnerability is fixed in version 1.10.8. Blocking access to the `/admin` path from untrusted sources can be applied as a workaround.
### POC
#### Reference
- http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html
- http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html
- https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/
#### Github
2025-09-29 21:09:30 +02:00
- https://github.com/0xD13/OSCP-Prep-Guide
2024-05-25 21:48:12 +02:00
- https://github.com/ARPSyndicate/cvemon
- https://github.com/CsEnox/CVE-2021-21425
- https://github.com/EdgeSecurityTeam/Vulnerability
2025-09-29 21:09:30 +02:00
- https://github.com/EssenceCyber/Exploit-List
- https://github.com/MelvinM8/OSCP
- https://github.com/Mr-Tree-S/POC_EXP
2024-05-25 21:48:12 +02:00
- https://github.com/NaInSec/CVE-PoC-in-GitHub
- https://github.com/SYRTI/POC_to_review
- https://github.com/WhooAmii/POC_to_review
2025-09-29 21:09:30 +02:00
- https://github.com/bluetoothStrawberry/cve-2021-21425
2024-05-25 21:48:12 +02:00
- https://github.com/frknktlca/GravCMS_Nmap_Script
- https://github.com/gkhan496/WDIR
2025-09-29 21:09:30 +02:00
- https://github.com/grey-master-a/GravCMS_Nmap_Script
2024-05-25 21:48:12 +02:00
- https://github.com/k0mi-tg/CVE-POC
- https://github.com/manas3c/CVE-POC
2025-09-29 21:09:30 +02:00
- https://github.com/n0-traces/cve_monitor
2024-05-25 21:48:12 +02:00
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/soosmile/POC
- https://github.com/trhacknon/Pocingit
- https://github.com/tzwlhack/Vulnerability
- https://github.com/whoforget/CVE-POC
- https://github.com/youwizard/CVE-POC
- https://github.com/zecool/cve