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.
- 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.
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
- Upload a video whose title contains an XSS payload.
- Search the gallery for that video.
- Observe the payload executing in the dropdown listing.
- 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.