CVE-2018-19692

An issue was discovered in tp5cms through 2017-05-25

published November 29, 2018

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

⚡ A sneaky upload vulnerability in tp5cms could let attackers slip malicious PHP scripts right under your nose! 🔥 Think of it like a restaurant that allows you to leave a box labeled 'dessert' at the front door, but inside, it's just a box of onions instead. If the staff doesn't check your package, they might just end up serving a side of chaos! An attacker could upload a .php file disguised as an image, allowing them to execute arbitrary PHP code on the server. This could lead to full control over the web application, potentially compromising sensitive data and wreaking havoc on your system.

Put simply

Think of it like a restaurant that allows you to leave a box labeled 'dessert' at the front door, but inside, it's just a box of onions instead. If the staff doesn't check your package, they might just end up serving a side of chaos! This vulnerability arises from the failure to properly validate file uploads in admin.php/upload/picture.html, allowing a remote attacker to upload a .php file with an image/jpeg content type, which is then executed on the server.

What to do

An attacker could upload a .php file disguised as an image, allowing them to execute arbitrary PHP code on the server. This could lead to full control over the web application, potentially compromising sensitive data and wreaking havoc on your system. To remediate this, implement strict file validation checks to ensure only legitimate image formats are uploaded. Additionally, consider disabling PHP execution in the upload directory or using a more secure method for handling file uploads. Regularly audit your file upload processes to maintain security. You've got this! With a few adjustments, you can keep your server safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01521 · 74.3th percentile
Published
2018-11-29T18:00Z
EPSS history
Timeline
  • 29 NOV 18:00Z
    An issue was discovered in tp5cms through 2017-05-25
    cvelistv5