CVE-2023-49006: Phpsysinfo Cross Site Request Forgery (CSRF) vulnerability
Summary
CVE-2023-49006: Phpsysinfo Cross Site Request Forgery (CSRF) vulnerability. Affects phpsysinfo/phpsysinfo versions < 3.4.3. Fixed in 3.4.3. How to fix ↓
Also tracked for
- phpsysinfo · Debian:11
The same CVE-2023-49006 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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
Phpsysinfo is a package available on Packagist that provides system information for PHP. It allows users to monitor various aspects of their system, such as CPU usage, memory usage, and network statistics. However, version 3.4.3 of Phpsysinfo is vulnerable to a Cross Site Request Forgery (CSRF) attack. This vulnerability can be exploited by a remote attacker to obtain sensitive information by tricking a user into visiting a specially crafted page in the XML.php file. It is important to note that Phpsysinfo 3.4.3 disables the vulnerable functionality by default, but users may enable it, making their systems susceptible to this vulnerability.
Vulnerability Detail
The Cross Site Request Forgery (CSRF) vulnerability in Phpsysinfo version 3.4.3 allows a remote attacker to obtain sensitive information via a crafted page in the XML.php file. This vulnerability arises due to insufficient validation of user requests, allowing an attacker to trick a user into unknowingly performing actions on the Phpsysinfo application. By exploiting this vulnerability, an attacker can potentially access sensitive information, compromise user accounts, or perform unauthorized actions on the affected system. The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.5.
How To Fix
Minimum fixed version
3.4.3
This is the first release that contains the fix.
composer require phpsysinfo/phpsysinfo:3.4.3
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If upgrading to the fixed version is not immediately possible, users can mitigate the risk by disabling the vulnerable functionality manually. This can be done by modifying the configuration settings of Phpsysinfo to disable the XML.php file or any related functionality that may be vulnerable to CSRF attacks. However, it is strongly recommended to update to the latest version as soon as possible to ensure comprehensive protection against this vulnerability.
Conclusion
In conclusion, Phpsysinfo version 3.4.3 is vulnerable to a Cross Site Request Forgery (CSRF) attack. This vulnerability can be mitigated by upgrading to version 3.4.3 or later, which disables the vulnerable functionality by default. Users can also manually disable the vulnerable functionality as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for phpsysinfo/phpsysinfo →
FAQ
Phpsysinfo is a package available on Packagist that provides system information for PHP. It allows users to monitor various aspects of their system, such as CPU usage, memory usage, and network statistics.
A Cross Site Request Forgery (CSRF) vulnerability occurs when an attacker tricks a user into unknowingly performing actions on a web application. In the case of Phpsysinfo, this vulnerability allows an attacker to obtain sensitive information by tricking a user into visiting a specially crafted page.
By exploiting this vulnerability, an attacker can potentially access sensitive information, compromise user accounts, or perform unauthorized actions on the affected system.
To fix this vulnerability, it is recommended to upgrade to version 3.4.3 or later of Phpsysinfo. This version disables the vulnerable functionality by default, providing protection against CSRF attacks.
If upgrading to the fixed version is not immediately possible, users can mitigate the risk by manually disabling the vulnerable functionality in the Phpsysinfo configuration settings. However, it is strongly recommended to update to the latest version as soon as possible.
References
Related vulnerabilities
Recent vulnerabilities recorded for phpsysinfo/phpsysinfo.