{"id":"MSF-linux--http--gravcms_exec","name":"GravCMS Remote Command Execution","description":"This 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 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.","cves":["CVE-2021-21425"],"author":"Mehmet Ince","published":"2021-03-29","platform":"PHP","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/linux/http/gravcms_exec.rb","path":"modules/exploits/linux/http/gravcms_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"gravcms_exec.rb","vulnerabilities":[{"id":"CVE-2021-21425","state":"PUBLISHED","title":"Unauthenticated Arbitrary YAML Write/Update leads to Code Execution","titleSource":"CVE Program","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.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-21425","cvss":{"version":"3.1","baseScore":9.3,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-21425"},"updatedAt":"2024-08-03T18:09:16.154Z","retrievedAt":"2026-11-26T01:25:58.284Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--gravcms_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--gravcms_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--gravcms_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--gravcms_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}