Vulnerability Details : CVE-2021-21425
Public exploit exists!
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.
Vulnerability category: BypassGain privilege
Exploit prediction scoring system (EPSS) score for CVE-2021-21425
84.95%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 99 %
Percentile, the proportion of vulnerabilities that are scored at or less
Metasploit modules for CVE-2021-21425
-
GravCMS Remote Command Execution
Disclosure Date: 2021-03-29First seen: 2021-05-04exploit/linux/http/gravcms_execThis module exploits arbitrary config write/update vulnerability to achieve remote code execution. Unauthenticated users can execute a terminal command under the context of the web server user. Grav Admin Plugin is an HTML user interface that provides a way to configu
CVSS scores for CVE-2021-21425
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST | |
9.3
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N |
3.9
|
4.7
|
GitHub, Inc. |
CWE ids for CVE-2021-21425
-
The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2021-21425
-
https://pentest.blog/unexpected-journey-7-gravcms-unauthenticated-arbitrary-yaml-write-update-leads-to-code-execution/
Unexpected Journey #7 – GravCMS Unauthenticated Arbitrary YAML Write/Update leads to Code Execution – Pentest BlogExploit;Third Party Advisory
-
https://github.com/getgrav/grav-plugin-admin/security/advisories/GHSA-6f53-6qgv-39pj
Unauthenticated Arbitrary YAML Write/Update leads to Code Execution · Advisory · getgrav/grav-plugin-admin · GitHubThird Party Advisory
-
http://packetstormsecurity.com/files/162457/GravCMS-1.10.7-Remote-Command-Execution.html
GravCMS 1.10.7 Remote Command Execution ≈ Packet StormThird Party Advisory;VDB Entry
-
http://packetstormsecurity.com/files/162283/GravCMS-1.10.7-Remote-Command-Execution.html
GravCMS 1.10.7 Remote Command Execution ≈ Packet StormThird Party Advisory;VDB Entry
Products affected by CVE-2021-21425
- cpe:2.3:a:getgrav:grav-plugin-admin:*:*:*:*:*:*:*:*