CVE-2018-14399

libs\classes\attachment.class.php in PHPCMS 9.6.0 allows remote attackers to upload and execute arbitrary PHP code via a .txt?.php#.jpg URI in the SRC…

published July 19, 2018

CVSS
—
EPSS
1%
Percentile
73.6
In the wild
Unconfirmed
What it is

⚡ A remote attacker just needs to send a cleverly crafted URI to upload and execute any PHP code! 🚨 Think of it like a sneaky food delivery that allows harmful ingredients in — an unsuspecting chef follows the recipe without checking the quality of the ingredients. Here, the system is accepting a seemingly innocent .txt file but running it like it's a full meal! This vulnerability can lead to an attacker executing arbitrary PHP code on the server, potentially allowing them to take control, access sensitive data, or wreak havoc on the entire system. It's like giving a stranger the keys to your kitchen and letting them cook whatever they want — the consequences could be disastrous!

Put simply

Think of it like a sneaky food delivery that allows harmful ingredients in — an unsuspecting chef follows the recipe without checking the quality of the ingredients. Here, the system is accepting a seemingly innocent .txt file but running it like it's a full meal! CVE-2018-14399 allows attackers to upload malicious PHP code through specially crafted image tag SRC attributes within JSON data. This occurs in PHPCMS 9.6.0 when the server fails to properly validate those inputs before execution.

What to do

This vulnerability can lead to an attacker executing arbitrary PHP code on the server, potentially allowing them to take control, access sensitive data, or wreak havoc on the entire system. It's like giving a stranger the keys to your kitchen and letting them cook whatever they want — the consequences could be disastrous! To protect yourself, ensure that you upgrade to a patched version of PHPCMS. Additionally, implement strict input validation and sanitize any user-uploaded content, especially when dealing with image uploads. Don't forget to properly configure your server to disallow unexpected file types! You've got this! With these steps, you'll lock down your system and keep it safe from sneaky attacks! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01472 · 73.6th percentile
Published
2018-07-19T05:00Z
EPSS history
Timeline
  • 19 JUL 05:00Z
    libs\classes\attachment.class.php in PHPCMS 9.6.0 allows remote attackers to upload and execute arbitrary PHP code via a .txt?.php#.jpg URI in the SRC…
    cvelistv5