Skip to content
XSS Write-up Intermediate

Silverstripe

A reflected XSS vulnerability existed in the CreateQueuedJobTask endpoint of the symbiote/silverstripe-queuedjobs module, where the 'name' GET parameter was echoed without sanitisation. An attacker could craft a link that, when clicked by an administrator, executes JavaScript to create an arbitrary admin user, leading to site takeover.

Michael Tsai Follow

Published on zxsecurity.co.nz

Silverstripe is a popular open source CMS for managing web applications. During a recent client engagement, we have discovered a reflected XSS vulnerability in a popular Silverstripe optional module symbiote/silverstripe-queuedjobs.

Michael Tsai, on zxsecurity.co.nz

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The task echoed the user-supplied 'name' parameter directly into the HTML response without any sanitisation or encoding.

Impact

Successful exploitation could lead to complete site takeover, allowing access to sensitive user information, insertion of malicious content, or taking down the website; however, the attacker must convince an administrator to click a link, and in Live mode the admin must also confirm by clicking 'Run the action'.

What the attacker needed

Victim is a Silverstripe administrator; victim clicks a malicious link; Dev mode on for immediate execution, or Live mode with…

The fix

Silverstripe released a patch for all affected versions.

How it was found

  1. Craft a URL to the /dev/tasks/CreateQueuedJobTask endpoint with a malicious 'name' parameter containing JavaScript.
  2. Send the link to a Silverstripe administrator and convince them to click it.
  3. If Dev mode is on, the JavaScript executes immediately; if Live mode is on, the admin must click 'Run the action' on a confirmation form.
  4. The JavaScript retrieves the SecurityID (CSRF token) from /admin/pages and submits a POST request to create a new admin user.
  5. The attacker logs in with the created credentials to take over the site.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a cross-site scripting (XSS) bug, where a website takes input from a URL and puts it directly into the page without cleaning it. If an attacker tricks an admin into clicking a specially crafted link, the attacker's JavaScript runs in the admin's browser and can perform actions as the admin, like creating a new admin account.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Michael Tsai

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.