Skip to content
XSS Disclosed report Beginner

[network.informatica.com] The login form XSS via the referer value

The referer parameter on the login page was inserted into JavaScript without validation and later used for redirection, allowing an attacker to supply a javascript: URL that executes script in the victim's browser.

s_p_q_r Follow

Originally disclosed on HackerOne

  • Triaged in 13 days
  • Fixed in 3 months
  • Disclosed after 5 months

The referer parameter value https://network.informatica.com/login!input.jspa?referer=%ref% is inserted into the Javascript code

JavaScript
if (pageURL.indexOf("login!input.jspa?referer=") > -1 || pageURL.indexOf("login.jspa?referer=") > -1) {
	finalPageURL='%ref%';
}

and used in further redirection without validation:

JavaScript
InfaAutoLogin.authenticateUser(response.id, finalPageURL, {
	callback:function(responseMap) {
		if(responseMap['status'] === 'success') {
			document.location = responseMap['location'];
		}
		else {
			sessionStorage.setItem('autoLoginType', responseMap['statusMsg']);
		}
	}
});

This means an attacker can put JS links there, which will cause script execution in the victim's browser:

  1. Log into your Informatica Network account
  2. Go to https://network.informatica.com/login!input.jspa?referer=javascript:alert(document.domain)
inf_nw_xss.png
inf_nw_xss.png From the original on HackerOne

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 referer parameter was inserted into JavaScript and used for redirection without validating that it was a safe URL.

Impact

An attacker could execute arbitrary script in the victim's browser via a crafted link.

What the attacker needed

A free account; victim clicks a crafted link

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 login page took a value from the web address (the referer parameter) and put it directly into JavaScript code. Because it was not checked, someone could craft a link that makes the browser run their own script when the page loads, which 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.