[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.
- 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


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