When a Routine Pentest Becomes a CVE: XSS to Admin in Rock RMS
A stored cross-site scripting (XSS) vulnerability existed in the Social Media Links field of Rock RMS user profiles. When an administrator viewed a malicious profile, the injected script executed in the admin's browser and used the Rock RMS API to add the attacker's account to the administration security group, granting full admin access.
medium.com
Published on medium.com
One of the things I love most about the business of penetration testing is that the job never gets boring. Every engagement is a puzzle.
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 Social Media Links field did not sanitise user-supplied input before storing and rendering it, allowing script injection.
Impact
A low-privilege user could escalate to full administrative access over the entire Rock RMS platform, though the attack requires an administrator to view the malicious profile.
What the attacker needed
A standard user account; victim (admin) views attacker's profile
The fix
The text does not state that a patch was available; it recommends disabling Social Media Links in user profiles by setting each social media type to inactive under Admin > Settings > General > Person Attributes.
How it was found
- Log in as a standard user and go to the My Account profile page.
- Enter a crafted payload into the Social Media Links field.
- Wait for an administrator to view the attacker's profile page, or socially engineer an admin to do so.
- The payload executes in the admin's browser and calls the Rock RMS API to retrieve the attacker's person GUID.
- The payload then sends a POST request to add the attacker's user to the RSR Rock Administration security group.
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 stored cross-site scripting (XSS) bug: a user can save malicious code in their profile, and it runs when someone else views that profile. Because the code runs in the administrator's browser, it can perform actions as the admin, such as adding the attacker to an admin group. The attacker only needs a normal account and must trick an admin into viewing their profile.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.