Algolia · Report #156387
Stored XSS from Display Settings triggered on Save and viewing realtime search demo
Validstatus
4upvotes
7 Sept 2016disclosed
How it was found
Here are the steps to trigger the XSS:
-
Create a JSON record that will contain the following attribute: {"<img src=1 onerror=alert(document.domain)>": "XSS attribute"}
-
Go to Indices -> Display and select the attribute <img src=1 onerror=alert(document.domain)> under Attributes for Faceting and click save.
-
Note that XSS is triggered multiple times on that page.
-
XSS is now triggered on https://www.algolia.com/explorer#?index=index_name as it also shows the attribute.
-
Create a public UI Demo and to the public url, xss is triggered. I've created a demo url: https://www.algolia.com/realtime-search-demo/xsstest