Skip to content
XSS Disclosed report Beginner

Stored XSS on Admin Access Page - Email field

The Email field on the Admin Access page was not sanitised, allowing a stored cross-site scripting attack. An attacker with an admin account could inject a script that executes in another admin's browser when they view the page.

pavanw3b Follow

Originally disclosed on HackerOne

  • Triaged in 22 hours
  • Fixed in 4 months
  • Disclosed after 10 months

"Cricetinae" :)

###Short Description

The Email field is not sanitized on Inventory > Admin Access page resulting in to Stored Cross-Site Scripting vulnerability.

###Vulnerability Details

Cross-Site Scripting issue let's one to run a javascript of choice. It helps most of the client side risks including but not limited to phishing, temporary deface, browser key-logger and others. Exploitation frameworks like BeEF eases the offensive attack.

Stored XSS is more risky than the reflected ones because of the fact that the malicious script is persisted across. It can affect all the time and all the users who has the access to the page.

Attack Vector

As this is a stored XSS, the attack vector lies in one user phishing other users. If there are multiple administrators, one admin can get a javascript backdoor on another admin's browser.

Steps to Reproduce

To effectively illustrate one user affect another user, please create 2 admin accounts and follow the below instruction:

  • Login as admin1. Navigate to Preferences > Change E-mail
  • Enter the current password and [email protected]<script>alert('xss');</script> for Email address field. Save and logout
  • Login as admin2.
  • Navigate to Inventory > Admin Access and notice the alert box.

Attached screenshot for a reference.

Test Environment Details

Version: Latest as on Oct 2: revive-adserver-4.0.0 downloaded from the official source Setup type: local Browser: Firefox 47.0 OS: Mac OS X

Cheers, Pavan

Attachments

Screen_Shot_2016-10-02_at_4.47.08_PM.png
Screen_Shot_2016-10-02_at_4.47.08_PM.png From the original on HackerOne

The original report as published on HackerOne, by pavanw3b. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 application stored the email address without sanitising it and later rendered it on the Admin Access page without proper output encoding.

Impact

An attacker with an admin account could execute arbitrary JavaScript in another admin's browser, enabling phishing, temporary defacement, keylogging, or use of exploitation frameworks like BeEF.

What the attacker needed

Two admin accounts; attacker has admin access; victim admin views Admin Access page

How it was found

  1. Log in as admin1 and go to Preferences > Change E-mail.
  2. Enter the current password and an email address containing a script payload, then save and log out.
  3. Log in as admin2.
  4. Navigate to Inventory > Admin Access and observe the alert box.

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 saves user input without cleaning it, a malicious script can be stored and later run in someone else's browser. Here, an admin could put a script into their email address, and when another admin looked at the admin list, the script ran, with risks such as phishing or keylogging.

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 pavanw3b

View all

8 more disclosed reports, best first.

More from Revive Adserver

View all

The newest disclosed reports for this program.

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.