Unauthenticated Arbitrary YAML Write/Update leads to Code Execution
No fixed version listed yet.Check the vendor advisory. References ↓
getgrav · grav-plugin-admin
The Grav Admin Plugin (grav-plugin-admin) by getgrav contains an improper access control flaw in its administrator controller, which can be reached without credentials. An unauthenticated remote attacker over the network can trigger this by calling certain controller methods, creating or modifying YAML files on the server, which can lead to configuration changes, page tampering, administrator account hijacking, or operating system command execution as the web-server user.
Official description · CVE.org
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.
- Exploited
- Not confirmed
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
Public exploit code (Metasploit) was available 9 days before disclosure.
- Public exploit codeMetasploit9 days before
- Disclosedday 0
Affected versions and fixes
as published in the CVE recordgetgrav grav-plugin-admin
Affected: <= 1.10.7