Skip to content
XSS Disclosed report Intermediate

Client Side Template Injection to Stored XSS in Image Collection

The report describes a client-side template injection flaw where an attacker supplies a template expression, leading to cross-site scripting, potentially stealing session cookies and taking over an account.

themarkib0x0 Follow

Originally disclosed on HackerOne

High 7.3 View original
  • Triaged in 21 hours
  • Fixed in 2 months
  • Disclosed after 3 months

Summary by the program

Client-side template injection vulnerabilities arise when applications using a client-side template framework dynamically embed user input in web pages. When rendering a page, the framework scans it for template expressions and executes any that it encounters. An attacker can exploit this by supplying a malicious template expression that launches a cross-site scripting (XSS) attack. Attacker can steal victim session cookies and takeover their account.

The original report as published on HackerOne, by themarkib0x0. 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 dynamically embeds user-supplied input into a client-side template without sanitising it, so the framework evaluates the input as a template expression.

Impact

An attacker could steal a victim's session cookies and take over their account.

What the attacker needed

Ability to supply input that the application embeds in a…

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 use a template system in the browser to fill in parts of a page. If the site puts user input into that template without cleaning it, an attacker can insert a special expression that runs their own code in the victim's browser. That code can then read the victim's login cookie and let the attacker act as the victim.

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 themarkib0x0

View all

3 more disclosed reports, best first.

More from Mars

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.