Skip to content
XSS Disclosed report Intermediate

[alpha.informatica.com] Expensive DOMXSS

A page built a base tag from the browser's pathname without sanitising it, so a URL with a double slash made the browser resolve relative script paths against an attacker-controlled host. An attacker who controlled that host could serve malicious JavaScript and achieve reflected cross-site scripting.

James Kettle Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 6 months
  • Disclosed after 11 months

Hi again,

The page at https://alpha.informatica.com/assessmentBase/assessment.html contains the following JavaScript:

<script> var baseHeaderElement = '<base href="'+ window.location.pathname + '" />'; $('head').append(baseHeaderElement); </script>

An attacker can exploit this using a protocol-relative URL. In Chrome, open the following URL and either proxy though Burp or look at the network tab in the dev console: https://alpha.informatica.com//assessmentBase/assessment.html

You will see a failed GET request to https://assessmentbase/etc/designs/informatica-com/assessmentform/js/angular.min.js

A sufficiently rich attacker can register assessementbase, and make it serve malicious JavaScript, turning this into a reflected XSS vulnerability.

This issue was passively identified by burp suite's code analysis engine.

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 page concatenated the untrusted pathname into a base href without validation, letting a protocol-relative path change the origin used for relative resource loads.

Impact

An attacker who could register the derived hostname could serve malicious JavaScript and turn this into reflected XSS; the report notes this requires a sufficiently rich attacker.

What the attacker needed

Attacker can register the derived hostname; victim opens a crafted link

How it was found

  1. Open the crafted URL with a double slash in the path in Chrome.
  2. Observe the network requests, for example via a proxy or the developer console.
  3. Note that a script request goes to a different host derived from the path.

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 web page can tell the browser where to load its other files from, using a tag called base. This page built that address from whatever was in the URL, so a crafted link with an extra slash pointed the browser at a different website. If the attacker owned that website, they could load their own code into the page.

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.