Skip to content
XSS Disclosed report Intermediate

Application is vulnerable to stored XSS

The report claims that a Statuspage site allowed HTML embedding that included the JavaScript eval() function, enabling an attacker to run malicious scripts in a victim's browser. The attacker could then use a tool like BeEF to exploit visitors.

PuneetLucknowi Follow

Originally disclosed on Bugcrowd

Informational View original
  • Accepted in 9 days
  • Disclosed after 18 months

Summary by Statuspage

Stored XSS Vulnerability in Statuspage

Summary by PuneetLucknowi

Please share full details it would be helpful for development team to understand the issue.

Report details

  • Submitted

    23 Mar 2022 06:20:43 UTC

  • Target Location

    *.statuspage.io

  • Target category

    Web App

  • VRT

    Cross-Site Scripting (XSS) > Stored

  • Priority

    P5

  • Bug URL

    https://jokery.statuspage.io/incidents/r033ggcvdnvt?utm_source=manage

  • Description

    Title:

    Application is vulnerable to stored XSS .

    Vulnerability reproduction steps

    User can create web application & utilize HTML embedding to create site, however with html which is acceptable but eval() JavaScript dangerous functions also allowed as input.

    An attacker could create some site application with injected malicious eval() function & utilize beef exploitation kind of tool to run malicious JavaScript payload into victim's browser & can craft various exploitation.

    Creating a single page with JavaScript eval() function to include malicious JavaScript such as hook.js & advertise the page as this page reflects primary domain/FQDN as *.statuspage.io so victim easily trust this page & in that way on viewing the page in which JavaScript malicious reference included through JavaScript eval() could serve malicious payload to victim & successfully craft various XSS based attack through BEEF exploitation framework tool detailed example with Beef Framework exploitation referenced below :

    https://owasp.org/www-project-web-security-testing-guide/v41/4-Web_Application_Security_Testing/07-Input_Validation_Testing/02-Testing_for_Stored_Cross_Site_Scripting https://zsecurity.org/how-to-use-beef-framework-over-wan/ https://www.kali.org/tools/beef-xss/

    So advertising a single page could lead to exploitation of multiple users/victims.

    Remediation:

    Please refer below link for remediation:

    https://portswigger.net/web-security/cross-site-scripting/preventing

    Steps:

    1. Injected XSS script eval() function returned in response:

    2. xss payload executed & various data captured in xsshunter framework cookie, ip address of victim etc.

    Recommendation: It is recommended to block execuition of eval() dangerous functions also.

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

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 allowed users to embed HTML containing the JavaScript eval() function without sanitising or blocking it.

Impact

An attacker could run malicious JavaScript in a victim's browser and use a framework such as BeEF to carry out further attacks, though the report gives no working proof beyond the claim.

What the attacker needed

Ability to create a page with HTML embedding; victim views the crafted page

The fix

The application should block or sanitise dangerous JavaScript such as eval() in user-supplied HTML, following standard XSS prevention guidance.

How it was found

  1. Create a page with HTML embedding that includes an eval() call.
  2. Load the page and observe that the script runs in the 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.

Stored cross-site scripting (XSS) happens when a website saves user-supplied content and later shows it to other people without making it safe. If that content can include JavaScript, the script runs in the victim's browser as if the website itself had written it. Here the reporter says a page builder let people embed HTML that could call eval(), a JavaScript function that runs text as code.

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 PuneetLucknowi

View all

2 more disclosed reports, best first.

More from Statuspage

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.