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.
Originally disclosed on HackerOne
- 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.
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.