Cythera Cyber Security

Silverstripe – Cross Site Scripting (XSS) vulnerability

During a recent engagement, Cythera identified a stored Cross-Site Scripting (XSS) issue within the Silverstripe CMS. The vulnerability was acknowledged by Silverstripe and rated as medium severity (CVE-2024-32981).
Talk to an expert

Introduction

During a recent engagement, Cythera identified a stored Cross-Site Scripting (XSS) issue within the Silverstripe CMS. The vulnerability was acknowledged by Silverstripe and rated as medium severity (CVE-2024-32981). This disclosure explains how the flaw operates and its potential consequences for site users and administrators. Silverstripe responded promptly and issued a fix after confirming the cause.

The Vulnerability

The Silverstripe administration panel enforces permissions through roles like publisher or administrator. While publishers can create and edit content, they should not have access to manage users or system settings. However, Cythera discovered that a user with publisher rights could inject a base64-encoded JavaScript payload into a content block. When an administrator later visited the page, the script would execute in their browser context, effectively enabling privilege escalation or unauthorised actions.

Vulnerability Discovery

This vulnerability stemmed from weak server-side validation and over-reliance on client-side checks, which could be bypassed. When content was published through a browser, HTML entities were encoded correctly to prevent execution. However, if the same request was made directly—using tools like Burp Suite or Curl—it could skip client-side validation and execute malicious code.

An attacker could submit a specially crafted payload in the Content parameter of a POST request to insert malicious code into a content block. The payload used an <object> tag with base64-encoded HTML content. When the browser loaded the page, it decoded and executed the embedded script, triggering an alert box with the message XSS, demonstrating successful code execution.

Potential Impact

This stored XSS vulnerability would execute when someone viewed the affected page on the public-facing website. Because the Silverstripe admin panel also renders previews, the payload would run there too.

If an attacker gained access to a low-privileged CMS account, they could potentially use this vulnerability to escalate privileges. For example, the payload could be used to create a new administrator account or redirect an admin to a phishing page. However, stealing session tokens was not possible due to the use of the HttpOnly flag.

How to Fix It

Silverstripe has released patches for all affected versions. More details are available on their security advisory page.

Vulnerability Disclosure Timeline

  • 10 January 2024 – Issue reported to Silverstripe
  • 7 May 2024 – Bug report acknowledged
  • 8 July 2024 – Issue validated
  • 18 July 2024 – Patch released and CVE assigned


CIO
Government Agency
Cythera operates as an extension of our team. When we call there is an immediate response and the person that answers our call is the person that resolves our issue. Cythera understands our network, and more importantly, has taken the time to understand our business. We find it easy to work with Cythera. They are approachable, flexible and have taken the time to build deep relationships with our team. It is a partnership and friendship. Cythera’s personalised, highly specialised services makes all the difference. We would recommend Cythera to anyone in the industry looking for a managed services partner.
Expert methods

We have the tools to pinpoint risks

Whether it’s hidden vulnerabilities or patterns you might miss, we help you stay one step ahead and make confident, informed decisions. Understand how our services can help your business uncover critical risks

Talk to an expert
Employee Cyber Training & Awareness
Your people are your first line of defence. Our cyber training builds awareness sharpens instincts and turns everyday staff into assets.
Advisory
When clarity is critical and stakes are high, our advisory services deliver strategic, executive-level security expertise that empowers decision-making and resilient operations.