CVE-2020-35131

Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in…

published January 8, 2021

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 98.9th percentile for exploit probability.

CVSS
—
EPSS
50%
Percentile
98.9
In the wild
Unconfirmed
What it is

🚨 An attacker can slip in custom PHP code like a delivery driver following the wrong instructions! This means Remote Command Execution is on the table with Cockpit before version 0.6.1! 🔥 Think of it as a restaurant that accepts any order without checking the menu, leading to surprise dishes that could ruin the meal — that’s what happens when insecure input is allowed here! If exploited, an attacker could run arbitrary commands on your server, altering or stealing data, or even taking full control of the system. The risk is real — your server could become a playground for mischief!

Put simply

Think of it as a restaurant that accepts any order without checking the menu, leading to surprise dishes that could ruin the meal — that’s what happens when insecure input is allowed here! CVE-2020-35131 allows an attacker to inject custom PHP code through the registerCriteriaFunction method in lib/MongoLite/Database.php, specifically via JSON data sent to the /auth/check or /auth/requestreset URIs.

What to do

If exploited, an attacker could run arbitrary commands on your server, altering or stealing data, or even taking full control of the system. The risk is real — your server could become a playground for mischief! Upgrade Cockpit to version 0.6.1 or later to patch this vulnerability. Additionally, review your input validation processes to ensure that only safe data is accepted. Regularly audit your application for security holes! You totally got this! Just follow these steps and get back to maximum security! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.50258 · 98.9th percentile
Published
2021-01-08T16:09Z
EPSS history
Timeline
  • 08 JAN 16:09Z
    Cockpit before 0.6.1 allows an attacker to inject custom PHP code and achieve Remote Command Execution via registerCriteriaFunction in…
    cvelistv5