Skip to content
XSS Disclosed report Beginner

XSS - Gallery Search Listing

A video title containing an XSS payload was reflected unescaped in the gallery search results, suggestion dropdown and recent tours list. An attacker could store a malicious title so that the script runs for anyone who searches or types in the search box.

bugs3ra Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 28 hours
  • Paid in 28 hours
  • Disclosed after 24 days

Summary by the researcher

{URGENT} Global Stored XSS in GALLERY Search result and suggestion drop down and Recent Tours

The report

HI. If you upload video having title with XSS payload. and search for the video, the dropdown listing will execute the payload.

https://www.zaption.com/gallery/search?q=%3E%3Cimg

I need not to upload the payload, I utilized already uploaded videos.

You can also execute the payload by just start typing into the search box with "><img

That's it, XSS will be executed.

The original report as published on HackerOne, by bugs3ra. 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 video title was inserted into the search results, suggestion dropdown and recent tours list without output encoding, so HTML in the title was rendered as markup.

Impact

Script runs in the browser of anyone who searches the gallery or types in the search box.

What the attacker needed

Ability to upload a video with a crafted title; victim searches or types in the search box

How it was found

  1. Upload a video whose title contains an XSS payload.
  2. Search the gallery for that video.
  3. Observe the payload executing in the dropdown listing.
  4. Alternatively, start typing the payload into the search box and see it execute.

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.

A website should treat anything a user types or uploads as text, not as code. Here the site put a video title straight into the page without cleaning it, so a title that looks like HTML gets run as a script by the browser. That lets someone run their own code in other visitors' browsers.

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 bugs3ra

View all

15 more disclosed reports, best first.

More from Zaption

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.