CVE-2023-6027: PHPMemcachedAdmin - Stored XSS Vulnerability
Summary
CVE-2023-6027: PHPMemcachedAdmin vulnerable to cross-site scripting (XSS) via improper encoding. Affects elijaa/phpmemcacheadmin versions < 1.3.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
PHPMemcachedAdmin is a package available on Packagist that provides a web-based interface for managing and monitoring Memcached servers. It allows users to view statistics, perform operations, and configure settings for Memcached. The package is widely used in PHP applications that utilize Memcached for caching data. However, version 1.3.0 of PHPMemcachedAdmin is vulnerable to a stored cross-site scripting (XSS) attack.
Vulnerability Detail
The vulnerability in PHPMemcachedAdmin version 1.3.0 is a stored XSS vulnerability. This means that an attacker can inject malicious JavaScript code into the application, which will be stored and executed when accessed by other users. The issue arises from improper encoding of user-controlled entries in the "/pmcadmin/configure.php" parameter. An attacker can craft a carefully constructed payload that, when executed, can lead to various consequences such as session hijacking, defacement of the website, or stealing sensitive user information.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can disable access to the vulnerable "/pmcadmin/configure.php" endpoint. This can be achieved by modifying the web server configuration or using access control rules to block requests to this specific URL. By preventing access to the vulnerable endpoint, the risk of exploitation can be mitigated until a proper fix is applied.
Conclusion
In conclusion, PHPMemcachedAdmin version 1.3.0 is vulnerable to a stored XSS attack. This can allow an attacker to execute malicious JavaScript code in the context of other users accessing the affected application. To mitigate this risk, it is recommended to update PHPMemcachedAdmin to a patched version beyond 1.3.0. For further assistance or support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for elijaa/phpmemcacheadmin →
FAQ
The vulnerability allows an attacker to execute arbitrary JavaScript code in the context of other users accessing the affected PHPMemcachedAdmin instance. This can lead to various consequences such as session hijacking, defacement of the website, or stealing sensitive user information.
At the time of this advisory, there is no known public exploit available for this vulnerability. However, given the nature of the vulnerability and its potential impact, it is advisable to apply the recommended fix as soon as possible.
No, only version 1.3.0 of PHPMemcachedAdmin is affected by this vulnerability. Users of other versions are not impacted and do not need to take any action.
Yes, this vulnerability can be exploited remotely. An attacker can send a specially crafted request to the vulnerable endpoint and execute arbitrary JavaScript code in the context of other users accessing the affected PHPMemcachedAdmin instance.
Yes, the maintainers of PHPMemcachedAdmin have released a fix for this vulnerability in a subsequent version. Users are advised to update their installation to a version beyond 1.3.0 to mitigate the risk of exploitation.
Related vulnerabilities
Recent vulnerabilities recorded for elijaa/phpmemcacheadmin.