Reflected XSS Vulnerability in Silverstripe Framework - Error Message Exposure
Summary
GHSA-mqf3-qpc3-g26q: Silverstripe Framework has a Reflected Cross Site Scripting (XSS) in error message. Affects silverstripe/framework versions < 5.3.8. Fixed in 5.3.8. 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
Silverstripe Framework is an open-source content management system (CMS) and framework for building web applications in PHP. It is known for its flexibility, user-friendly interface, and robust features that allow developers to create dynamic websites. However, when configured in 'dev' mode, it becomes susceptible to security vulnerabilities, including reflected cross-site scripting (XSS) attacks, which can compromise the integrity of the application and the safety of its users.
Vulnerability Detail
The vulnerability arises when a website using Silverstripe Framework is set to 'dev' environment mode, which is intended for development and debugging purposes. In this mode, error messages can be manipulated by injecting an XSS payload into the URL. When the error message is displayed, the payload is executed in the user's browser, potentially leading to session hijacking, data theft, or other malicious actions. This vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')).
How To Fix
Minimum fixed version
5.3.8
This is the first release that contains the fix.
composer require silverstripe/framework:5.3.8
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate updating is not possible, a temporary workaround is to restrict access to the 'dev' mode by implementing IP whitelisting or using authentication mechanisms to prevent unauthorized access.
Conclusion
In summary, the reflected XSS vulnerability in the Silverstripe Framework poses a risk when the application is running in 'dev' mode. It is essential to switch to 'live' mode and update to the latest patched version to mitigate this risk. Additionally, using tools like Vulert can help monitor and alert for open-source vulnerabilities in your software.
See every vulnerability recorded for silverstripe/framework →
FAQ
The impact includes potential execution of malicious scripts in the user's browser, leading to data theft or session hijacking.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Yes, the vulnerability is fixed in version 5.3.8 of the Silverstripe Framework. Updating to this version will resolve the issue.
If you cannot update immediately, ensure that your application is not accessible in 'dev' mode to the public and consider implementing access controls.
The CVSS score for this vulnerability is 0.0, indicating a low severity level.
References
Related vulnerabilities
Recent vulnerabilities recorded for silverstripe/framework.