Skip to content
XSS Disclosed report Beginner

Multiple Stored XSS

Input fields in the Edit Group Details form accepted malicious JavaScript and stored it without sanitisation, then reflected it on the View Rule Book page. An attacker could inject script that executes in the browser of anyone viewing the rule book, potentially stealing cookies or performing actions as the victim.

itly Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 14 days
  • Disclosed after 3 months

Hello Team,

I have found multiple vulnerable fields which accepts malicious javascript inputs and reflects on another form which fails to sanitize the malicious javascript input.

Vulnerable Input Form: Edit Group Details

Reflects where: View Rule Book

Payload used: 1) <img src=x onerror=alert(document.domain)>

                     2) <img src=x onerror=alert(document.cookie)>

Browsers used: Mozilla Firefox and Google Chrome (Latest Version)

Steps to Reproduce:

  1. Go to Edit Group Details Form.
  2. Inject the above mentioned payload in both the input fields as shown in screenshot.
  3. Submit and Save it.
  4. Go to Rulebook and View it.
  5. Tadaa! XSS Triggers.

Proof of Concept: Please find the attached screenshots.

Do evaluate it and inform me accordingly.

Best Regards,

Hely H. Shah

Attachments

Stored_XSS_-_Input_Fields.JPG
Stored_XSS_-_Input_Fields.JPG From the original on HackerOne
Stored_XSS_-_Reflects_Here.JPG
Stored_XSS_-_Reflects_Here.JPG
Stored_XSS_exposes_Cookies.JPG
Stored_XSS_exposes_Cookies.JPG
Stored_XSS_exposes_Domain_Name.JPG
Stored_XSS_exposes_Domain_Name.JPG

The original report as published on HackerOne, by itly. 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 user-supplied input from the Edit Group Details form and rendered it on the View Rule Book page without output encoding or sanitisation.

Impact

An attacker could execute JavaScript in the browser of a user who views the rule book, which may allow cookie theft or actions as the victim.

What the attacker needed

Ability to edit group details; victim views the rule book

The fix

The application should encode or sanitise user input on output so that stored text is displayed as text and never executed as script.

How it was found

  1. Open the Edit Group Details form.
  2. Enter the malicious script in the input fields.
  3. Submit and save the form.
  4. Open the Rule Book page and view it.
  5. The script executes.

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.

Some web pages take what you type and show it to other people later. If the site does not clean that text, someone can type code instead of normal text, and the site will run that code in other people's browsers. This is called stored cross-site scripting, and it can let an attacker read cookies or act as the victim.

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 itly

View all

16 more disclosed reports, best first.

More from Veris

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.