GHSL-2021-1042: XSS in Baremetrics - CVE-2021-32859
The Baremetrics Date Range Picker inserts the placeholder value into HTML without escaping, so an attacker who can control the placeholder can inject script that runs in a user's browser. This leads to cross-site scripting.
Originally disclosed on GitHub Security Lab
Baremetrics Date Range Picker is prone to Cross-site scripting (XSS) when handling untrusted placeholder entries.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The placeholder value is concatenated directly into an HTML string without encoding or sanitisation.
Impact
This issue may lead to XSS.
What the attacker needed
Attacker can influence the placeholder option
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.
This is a cross-site scripting (XSS) bug. The date picker builds part of its HTML by pasting in a placeholder text without cleaning it first. If an attacker can set that placeholder, they can include code that runs when someone views 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.