CVE-2023-29489
cPanel vulnerability analysis and mitigation

Overview

A reflected cross-site scripting (XSS) vulnerability was discovered in cPanel (CVE-2023-29489) affecting versions before 11.109.9999.116. The vulnerability, also known as SEC-669, allows XSS to occur on the cpsrvd error page via an invalid webcall ID. With approximately 1.4 million cPanel installations exposed on the internet, this vulnerability affects a significant number of websites. The issue was discovered in January 2023 and was fixed by March 2023 (Assetnote Blog, NVD).

Technical details

The vulnerability exists in the handling of webcall IDs through the /cpanelwebcall/ directory. When an invalid webcall ID is provided, the error message is not properly sanitized before being displayed on the cpsrvd error page. The vulnerability received a CVSS v3.1 base score of 6.1 (Medium) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue was resolved by adding HTML encoding through the Cpanel::Encoder::Tiny::safehtmlencode_str function (Assetnote Blog, NVD).

Impact

The vulnerability allows attackers to execute arbitrary JavaScript pre-authentication on almost every port of a webserver using cPanel in its default setup. Due to Apache's proxy rules, the vulnerability is exploitable even on ports 80 and 443, affecting not only cPanel management ports but also applications running on these ports. An attacker could potentially hijack legitimate users' cPanel sessions and, if successful, upload web shells to gain command execution (Assetnote Blog).

Mitigation and workarounds

The vulnerability has been patched in the following cPanel versions: 11.109.9999.116, 11.108.0.13, 11.106.0.18, and 11.102.0.31. Users are advised to upgrade to these versions or newer. Many cPanel installations have auto-update functionality enabled, which provides automatic protection. However, installations without auto-update enabled remain vulnerable and require manual updating (Assetnote Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management