Skip to content
XSS Disclosed report Beginner

Stored Cross Site Scripting at http://www.grouplogic.com/ADMIN/store/index.cfm?fa=disprocode

The store admin page was accessible without authentication and the promo code editing feature did not encode user input, allowing stored cross-site scripting. An attacker could inject a script that executes when the promo code page is viewed, potentially stealing cookies or performing other actions.

ub3rsick Follow

Originally disclosed on HackerOne

Medium 5.8 View original
  • Triaged in 2 hours
  • Fixed in 21 days
  • Disclosed after 14 months

Summary

The application exposes store ADMIN page at below URL and is accessible without authentication.

http://www.grouplogic.com/ADMIN/store/index.cfm

The ADMIN page provides several functionalities. Among them the below functionality is found to be vulnerable to stored XSS.

Steps To Reproduce

  1. Navigate to below URL to access the store admin page without authentication.
http://www.grouplogic.com/ADMIN/store/index.cfm
  1. Navigate to promo codes section. (http://www.grouplogic.com/ADMIN/store/index.cfm?fa=disprocode)
  2. Edit any promo code.
  3. Add any of below payload in the Promo Code field.
Payload 1:
----------
<h1 onmouseover=alert(document.domain)>XSS</h1>

Payload 2:
----------
<img src=x onerror=alert(1)>
  1. Click the Edit Promo Code Button to save modified the promo code.
  2. Navigating again to the promo code page, in case of payload 1, XSS string is rendered, hovering mouse over it triggers xss. In case of payload 2, as soon as the promo code page is opened, xss triggers.

Recommendations

It is highly recommended to implement output encoding.
Encode the following characters with HTML entity encoding to prevent switching into any execution context, such as script, style, or event handlers. Using hex entities is recommended in the spec. The 5 characters significant in XML (&, <, >, ", '):

 & --> &amp;
 < --> &lt;
 > --> &gt;
 " --> &quot;
 ' --> &#x27;

Reference: https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html

Impact

XSS can be used to :

  • Steal cookies, password
  • Website Defacement
  • Redirect Victim to Malicious site
  • Log keystrokes etc.

The original report as published on HackerOne, by ub3rsick. 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 failed to encode user-supplied input before rendering it in the promo code page, allowing script injection.

Impact

An attacker could execute arbitrary scripts in a victim's browser, potentially stealing cookies or passwords, defacing the site, redirecting to malicious sites, or logging keystrokes.

What the attacker needed

No authentication required; Victim visits the promo code page

How it was found

  1. Navigate to the store admin page without authentication.
  2. Go to the promo codes section.
  3. Edit any promo code.
  4. Enter a script payload in the Promo Code field.
  5. Click the Edit Promo Code button to save.
  6. Reopen the promo code page to trigger the script.

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.

The admin page for an online store could be opened by anyone without logging in. When editing a promo code, the text you typed was shown back on the page without being made safe, so a malicious script could be saved and would run in the browser of anyone who visited that page.

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 ub3rsick

View all

3 more disclosed reports, best first.

More from Acronis

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.