CVE-2020-35131
agentejo cockpit Improper Control of Generation of Code ('Code Injection')
Record summary
CVE-2020-35131 has a selected CVSS score of 9.8 (critical); EIP currently links 1 catalogued exploit and 1 Nuclei template.
Description
Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.
Exploitation context
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
cockpitBrowse agentejo / cockpit | VulnCheck | Version data not supplied | |
Proofs of concept
1Catalogued exploits
ExploitDBCockpit CMS 0.6.1 - Remote Code ExecutionExploitDB exploitby Rafael ResendeNot analyzed1 file
Nuclei templates
1ProjectDiscoveryCRITICALCockpit CMS 0.6.1 - Remote Code ExecutionCVSS 9.8
Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in lib/MongoLite/Database.php, as demonstrated by values in JSON data to the /auth/check or /auth/requestreset URI.
Impact
Unauthenticated attackers can inject custom PHP code to achieve remote command execution, leading to complete Cockpit CMS compromise.
Remediation
Upgrade to Cockpit CMS version 0.6.1 or later.
Source: ProjectDiscovery