Skip to main content
← All vulnerabilities
CVE-2021-21425

Unauthenticated Arbitrary YAML Write/Update leads to Code Execution

Published
Last modified
published
Not listed in CISA KEV
1 on Exploit-DB, 1 Metasploit module, 5 proofs of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Public exploit on Exploit-DB

    EDB-49788

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • getgrav grav-plugin-admin

    through 1.10.7

References 11

pentest.blog

GitHub · getgrav/grav-plugin-admin

packetstormsecurity.com

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · CsEnox/CVE-2021-21425

GitHub · afifudinmtop/CVE-2021-21425

GitHub · bluetoothStrawberry/cve-2021-21425

GitHub · grey-master-a/GravCMS_Nmap_Script

GitHub · s1lentf00thold/CVE-2021-21425-RCE