[marketplace.informatica.com] Search XSS
The search query parameter was inserted into a JavaScript localStorage call without proper sanitisation. An attacker could inject a script via a POST request to execute arbitrary JavaScript in a victim's browser.
- Triaged in 6 days
- Fixed in 60 days
- Disclosed after 4 months
The search query parameter is put into Javascript to set the localStorage item:
https://marketplace.informatica.com/search-solr.jspa?q=%foo%
localStorage.setItem("searchTerm", "%foo%");
Attempts to inject XSS payloads are blocked by redirection that removes special chars from the URL:
GET /search-solr.jspa?q=aaa%22bbb%27ccc%3Cddd%3Eeee HTTP/1.1
Host: marketplace.informatica.com
HTTP/1.0 302 Found
Location: https://marketplace.informatica.com/search-solr.jspa?q=aaabbbcccdddeee
However it turns out the search param can be successfully submitted via POST — the following request popups an alert:
POST /search-solr.jspa HTTP/1.1
Host: marketplace.informatica.com
q=%22-alert%28document.domain%29-%22
PoC:
http://spqr.zz.mu/info_mp.php?key=066c1cac-b380-4455-9d36-4086dd999dd9
Tested with latest Firefox and Chrome.
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 application failed to sanitise or encode the search parameter before embedding it in a JavaScript context.
Impact
An attacker could execute JavaScript in a victim's browser, as demonstrated by an alert popup.
What the attacker needed
Victim visits a crafted link or page
How it was found
- Send a GET request with special characters in the search parameter.
- Observe that the server redirects and strips the special characters.
- Send a POST request with a crafted search parameter instead.
- Observe that an alert box pops up, confirming script execution.
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 took text from a search box and put it directly into a script on the page. Because it did not clean the text first, an attacker could send a special request that made the browser run their code. This is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.