Skip to content
XSS Disclosed report Beginner

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

s_p_q_r Follow

Originally disclosed on HackerOne

  • 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%

JavaScript
localStorage.setItem("searchTerm", "%foo%");

Attempts to inject XSS payloads are blocked by redirection that removes special chars from the URL:

HTTP
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:

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

The original report as published on HackerOne, by s_p_q_r. 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 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

  1. Send a GET request with special characters in the search parameter.
  2. Observe that the server redirects and strips the special characters.
  3. Send a POST request with a crafted search parameter instead.
  4. 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.

More by s_p_q_r

View all

14 more disclosed reports, best first.

More from Informatica

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.