CVE-2018-18835

upload_template() in system/changeskin.php in DocCms 2016.5.12 allows remote attackers to execute arbitrary PHP code via a template file

published October 30, 2018

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

🚨 A crafty template upload can unleash arbitrary PHP code execution in DocCms 2016.5.12! 🤯 Just imagine the chaos unleashed by a sneaky package slipping through your defenses! Think of it like a restaurant that lets customers submit their own recipes for the menu — if they don’t check the ingredients, someone could sneak in something harmful. This vulnerability allows attackers to essentially write their own malicious code into the system through what should be a harmless template upload. This could lead to devastating consequences, like gaining full control over the server, accessing sensitive data, or even altering user accounts. An attacker could execute whatever PHP code they like, potentially wreaking havoc and compromising the entire application!

Put simply

Think of it like a restaurant that lets customers submit their own recipes for the menu — if they don’t check the ingredients, someone could sneak in something harmful. This vulnerability allows attackers to essentially write their own malicious code into the system through what should be a harmless template upload. The vulnerability in `upload_template()` within `system/changeskin.php` allows remote attackers to upload malicious template files, which the server would execute as PHP code, bypassing security checks. This creates an avenue for arbitrary code execution, putting the server at high risk.

What to do

This could lead to devastating consequences, like gaining full control over the server, accessing sensitive data, or even altering user accounts. An attacker could execute whatever PHP code they like, potentially wreaking havoc and compromising the entire application! Update DocCms to the latest version to patch this vulnerability. Ensure that proper validation and sanitization checks are in place for all uploaded files, especially templates. Also, consider implementing file type restrictions and scanning for any unexpected file contents. You've got this! By taking these steps, you're on your way to securing your application and keeping the internet a safer place! 🦸

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01577 · 75.3th percentile
Published
2018-10-30T06:00Z
EPSS history
Timeline
  • 30 OCT 06:00Z
    upload_template() in system/changeskin.php in DocCms 2016.5.12 allows remote attackers to execute arbitrary PHP code via a template file
    cvelistv5