Skip to content
XSS Disclosed report Beginner

[kb.informatica.com] Stored XSS

A search page stored user-supplied input in the visitor's session and later reflected it unescaped inside a JavaScript block on another page. An attacker could craft a link that, when visited, stores a script payload and then runs it in the victim's browser on a second page.

James Kettle Follow

Originally disclosed on HackerOne

  • Triaged in 9 hours
  • Fixed in 3 months
  • Disclosed after 7 months

kb.informatica.org is vulnerable to stored XSS as it stores user input in users' sessions, then reflects this input back inside a JavaScript block without adequate escaping.

To replicate this issue, first store the payload in your session by visiting: https://kb.informatica.com/kbexternal/Pages/KBSearchResults.aspx?k=Support%20Console&fromsource=11171"%3balert(1)%2f%2f535

Then visit https://kb.informatica.com/faq/1/Pages/17033.aspx?docid=17033&type=external&isSearch=external

This should trigger an alert, due to the following HTML in the second response:

<script type="text/javascript"> //<![CDATA[ var isExternal = true; var varSearchResultURL = "http://kb.informatica.com:7001/kbexternal/Pages/KBSearchResults.aspx?k=Support Console&fromsource=11171";alert(1)//535"; Replicating this may take a few attempts - it's a bit flaky. I used Firefox but it ought to work in any browser. Let me know if you have trouble.

The original report as published on HackerOne, by albinowax. 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 search parameter was saved into the session and then written into a JavaScript string without escaping, so a quote could break out of the string and inject code.

Impact

An attacker could run script in a victim's browser after the victim opens a crafted link, though the reporter notes the trigger is flaky and may need several attempts.

What the attacker needed

Victim opens a crafted link; session stores the search value

How it was found

  1. Visit the search results page with a crafted search term so the payload is stored in the session.
  2. Then visit the FAQ page that reads the stored search value.
  3. The stored value is placed inside a script block and the injected code runs, showing an alert.

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.

Some websites remember what you typed (for example a search term) and show it again on later pages. Here the site put that remembered text straight into a script on the page without cleaning it, so text that looks like code gets run by the browser. That lets an attacker run their own code in a victim's browser after the victim opens a prepared link.

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 James Kettle

View all

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