Skip to content
XSS Write-up Intermediate

SSO Gadgets II: Unauthenticated Client-Side Template Injection to Account Takeover using SSO Gadget Chain

A client-side template injection on an error page led to XSS; chained with an SSO gadget, an attacker could gain access to the user's account.

Lauritz Holtmann Follow

Published on security.lauritz-holtmann.de

The following unauthenticated Client-Side Template Injection (CSTI) resulting in a Cross-Site Scripting (XSS) vulnerability was discovered in a private bug bounty program. While the vulnerability could only be exploited in case a user had no active session at the application, chained with an SSO gadget, a malicious…

Lauritz Holtmann (@_lauritz_), on security.lauritz-holtmann.de

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

What the attacker needed

Victim has no active session at the application

How it was found

  1. Craft a URL containing a client-side template injection payload.
  2. Victim visits the URL, causing JavaScript execution in the application context.

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 write-up has not been written yet. The Original tab links to the source.

The error page evaluated user input as a template, so an attacker could run code in the victim's browser and, chained with an SSO gadget, gain access to the account.

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 Lauritz Holtmann

View all

7 more disclosed reports, best first.

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.