apps.owncloud.com: Multiple reflected XSS by insecure URL generation (IE only)
The ownCloud appstore generated URLs without encoding GET parameters, so a crafted search URL containing script markup was reflected unescaped into the page. An attacker could run script in a victim's browser, but the text says this was only exploitable in Internet Explorer because other browsers encode the parameters.
Originally disclosed on HackerOne
- Triaged in 3 hours
- Fixed in 6 months
- Disclosed after 7 months
Summary by the program
Due to a bug in the URL generation component mainly used by forms on the ownCloud appstore available at apps.owncloud.com is vulnerable to multiple reflected XSS. This problem seems only to be exploitable in Internet Explorer since other browsers are URL encoding GET parameters.
This was reproducible using something like:
curl "https://apps.owncloud.com/content/search.php?PHPSESSID=\">XSSHERE<script>alert(1)</script>"|grep XSS
The output was then containing the unescaped malicious Javascript.
While the issue appears overall over the platform we have merged issues related to the same root cause into this one but would like to thank all reporters reporting this vulnerability. On request of some commenters this issue is only disclosed limitedly.
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 URL generation component inserted GET parameters into the page without HTML-encoding them.
Impact
Script could run in a victim's browser, but the text states this was only exploitable in Internet Explorer since other browsers URL-encode GET parameters.
What the attacker needed
Victim uses Internet Explorer; victim opens a crafted link
How it was found
- Send a request to the appstore search page with a crafted session parameter containing script markup.
- Check the returned page for the unescaped script.
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 reflected cross-site scripting (XSS) bug means a value you put in a link is echoed back into the page as live code instead of harmless text. Here the site built links from the search parameters without escaping them, so a link could carry a small script that runs in the visitor's browser. The report says only Internet Explorer was affected, because other browsers encode the characters first.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.