Skip to content
XSS Disclosed report Beginner

[github.algolia.com] XSS

The search input on github.algolia.com did not sanitise the query, so a crafted search term containing script or an SVG onload handler executed in the page. An attacker could run JavaScript in the context of that subdomain.

bogdantc Follow

Originally disclosed on HackerOne

  • Fixed in 22 hours
  • Disclosed after 32 days

Hello , i found a Cross-Site-Scripting in your github subdomain. All you have to do is to search in this input ( i attached input.PNG )

Search about ,,document domain'' Alert was executed , because you don't sanitize the query which comes from github

Search about ,,svg onload'' -> github.algolia.com

Thanks.

Attachments

input.PNG
input.PNG From the original on HackerOne
xss.PNG
xss.PNG

The original report as published on HackerOne, by bogdantc. 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 search query was inserted into the page without sanitisation or output encoding.

Impact

An attacker could execute JavaScript in the context of github.algolia.com, as shown by the alert.

What the attacker needed

Search using the crafted term in the input

How it was found

  1. Open the search input on github.algolia.com.
  2. Search for a term containing 'document domain'.
  3. Search for a term containing an SVG onload payload.
  4. Observe that an alert 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.

A website that puts whatever you type into a search box directly onto the page without cleaning it can be tricked into running code. Here, typing a special search term made the browser show an alert box, which proves code ran. That is called cross-site scripting, and it lets an attacker act as the site in a victim's browser.

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 bogdantc

View all

9 more disclosed reports, best first.

More from Algolia

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.