Stored XSS via Full Name field in userlog email entries
A low-privileged user could set their Full Name to contain malicious JavaScript, which was stored in system-generated email content and later displayed without sanitisation to an admin viewing userlog details. This allowed stored cross-site scripting, executing script in the admin's browser.
- Disclosed after 51 days
Summary by the program
HackerOne community member barcrange (3l4) has reported that low‑privileged users could use their Full Name as a vector for a stored XSS attack. The name is included in system‑generated emails, whose content is stored in the details field of the userlog table. An admin user viewing the email content through userlog-details.php would have any malicious JavaScript payload executed due to missing output sanitisation.
Proper escaping has been added to the userlog details output.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the userlog details page output the stored email content without escaping or sanitising it, so any HTML or JavaScript in the Full Name was rendered as code.
Impact
An attacker with a low-privileged account could execute arbitrary JavaScript in an admin's browser when the admin viewed the userlog details, potentially leading to actions with the admin's privileges.
What the attacker needed
A low-privileged user account; admin views userlog details
The fix
Proper escaping was added to the userlog details output, which was fixed.
How it was found
- A low-privileged user sets their Full Name to contain a malicious JavaScript payload.
- The Full Name is included in system-generated emails, and the email content is stored in the details field of the userlog table.
- An admin user views the email content through userlog-details.php.
- The malicious JavaScript payload executes in the admin's browser.
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 report has not been written yet. The Original tab links to the source.
When a website shows information that a user typed in without cleaning it first, an attacker can put code (JavaScript) in that information. If an admin later views that information, the code runs in the admin's browser, which is called stored cross-site scripting (XSS). Here, the Full Name field was saved into email content and shown to admins without being made safe.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.