Vulnerabilities · 2021 · Getgrav
CVE-2021-21425
Getgrav Grav-plugin-admin vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Grav-plugin-admin. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Getgrav Grav-plugin-admin runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html · Third Party Advisory
- packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html · Third Party Advisory
- github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj · Third Party Advisory
- pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-lead · Exploit
- nvd.nist.gov/vuln/detail/CVE-2021-21425
- cve.org/CVERecord?id=CVE-2021-21425
More vulnerabilities in Getgrav products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.