CVE-2022-40797

Roxy Fileman 1.4.6 allows Remote Code Execution via a .phar upload, because the default FORBIDDEN_UPLOADS value in conf.json only blocks .php, .php4, and .php5…

Critical · published November 9, 2022

CVSS v3.1
9.8
EPSS
3%
Percentile
87.4
In the wild
Unconfirmed
What it is

🚨 Roxy Fileman 1.4.6 has a gaping hole that allows remote code execution just by uploading a .phar file — and it’s all because the config only blocks a few PHP extensions! 🔥 Think of it like a restaurant that only checks for certain food allergens when preparing an order, completely ignoring another ingredient that could cause a severe reaction. In this scenario, the poorly configured upload settings are like the chef not reading the entire order, allowing potentially hazardous items to slip through. An attacker can exploit this vulnerability to execute arbitrary code on the server, opening the floodgates for unauthorized access, data theft, or even complete server takeover. This could lead to devastating consequences for both the system and its users as sensitive information is compromised and the integrity of the site is obliterated.

Put simply

Think of it like a restaurant that only checks for certain food allergens when preparing an order, completely ignoring another ingredient that could cause a severe reaction. In this scenario, the poorly configured upload settings are like the chef not reading the entire order, allowing potentially hazardous items to slip through. This vulnerability arises due to the default FORBIDDEN_UPLOADS value in Roxy Fileman's conf.json, which only blocks specific PHP file types. As a result, if an attacker uploads a .phar file, the PHP interpreter may be invoked, leading to remote code execution.

What to do

An attacker can exploit this vulnerability to execute arbitrary code on the server, opening the floodgates for unauthorized access, data theft, or even complete server takeover. This could lead to devastating consequences for both the system and its users as sensitive information is compromised and the integrity of the site is obliterated. To safeguard your systems, immediately update Roxy Fileman to the latest version that addresses this flaw. Additionally, enhance your security by implementing stricter file validation and upload restrictions for all file types. Regularly audit your configuration settings to ensure future uploads are correctly managed. You've got this! Take these steps, and you'll fortify your defenses in no time. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03041 · 87.4th percentile
Published
2022-11-09T00:00Z
EPSS history
Timeline
  • 09 NOV 00:00Z
    Roxy Fileman 1.4.6 allows Remote Code Execution via a .phar upload, because the default FORBIDDEN_UPLOADS value in conf.json only blocks .php, .php4, and .php5…
    cvelistv5