CVE-2021-40889

CMSUno version 1.7.2 is affected by a PHP code execution vulnerability

published October 11, 2021

CVSS
—
EPSS
2%
Percentile
78.9
In the wild
Unconfirmed
What it is

⚠️ A sneaky PHP code execution vulnerability lives in CMSUno 1.7.2! When users change their passwords, they inadvertently open a door for attackers to inject their own code. 🔥 Think of it like a restaurant where customers can write their own orders directly to the kitchen — if an attacker sneaks in a malicious ingredient, they could end up changing the entire dish! An attacker could inject malicious PHP code into the 'password.php' file, allowing them to execute arbitrary code on the server. This could lead to unauthorized access, data breaches, or even a complete takeover of the system—definitely a recipe for disaster!

Put simply

Think of it like a restaurant where customers can write their own orders directly to the kitchen — if an attacker sneaks in a malicious ingredient, they could end up changing the entire dish! The vulnerability arises when the `sauvePass` action in `{webroot}/uno/central.php` calls `file_put_contents()` without proper validation. This allows the attacker to modify the contents of 'password.php' through crafted input, executing whatever code they insert.

What to do

An attacker could inject malicious PHP code into the 'password.php' file, allowing them to execute arbitrary code on the server. This could lead to unauthorized access, data breaches, or even a complete takeover of the system—definitely a recipe for disaster! To secure your system, immediately update CMSUno to the latest version where this vulnerability is resolved. Additionally, validate and sanitize all user inputs and restrict file write permissions to essential files only. You've got this! Implement these changes, and you’ll be on your way to becoming a security superhero in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01847 · 78.9th percentile
Published
2021-10-11T09:56Z
EPSS history
Timeline
  • 11 OCT 09:56Z
    CMSUno version 1.7.2 is affected by a PHP code execution vulnerability
    cvelistv5