Blind Cross-Site Scripting (XSS) via Organization City Input on Account Creation
A stored cross-site scripting flaw existed in the organization city field entered during account creation. An attacker could have the script run in an administrator's browser when they linked an organization to an article, allowing actions with the admin's permissions.
- Accepted in 37 days
- Fixed in 38 days
- Disclosed after 4 months
Summary by Polyxena
A significant Stored Cross-Site Scripting (XSS) vulnerability was identified on the platform, specifically within the organization city input field during the account creation process. This type of attack involves the injection of malicious JavaScript into the platform, which then executes within the browser of any user visiting the affected web page. The attack enables escalation from no privileges to any user level, including administrative access.
The vulnerability allows attackers to perform actions as the victim, including accessing and modifying sensitive information within their permissions. This could lead to the alteration, deletion, or theft of data, including the hijacking of user sessions through stolen session cookies.
The XSS flaw was pinpointed in the process of associating organizations to news or event articles via the admin interface at specific URLs. The malicious script triggers when an admin attempts to link an organization to these articles, exploiting the ASCII sorting order of the organization table to ensure the malicious entry appears at the top and catches the admin's attention.
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 organisation city value was stored and later rendered in the admin interface without proper output encoding or sanitisation.
Impact
An attacker could perform actions as the victim, including accessing and modifying sensitive information, and could hijack sessions through stolen cookies.
What the attacker needed
Ability to create an account; admin views the organisation linking page
How it was found
- Create an account and enter a script in the organisation city field.
- The malicious organisation entry is stored and sorted to the top of the organisation table.
- An administrator opens the admin interface to link an organisation to a news or event article.
- The script runs in the administrator'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.
Cross-site scripting, or XSS, is when a website saves or shows text from one user without cleaning it, so another user's browser runs it as code. Here the saved text was a script placed in an organisation's city field. When an administrator later opened a page that listed organisations, their browser ran the script and the attacker could act as that administrator.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.