Sandboxed iframes don't show confirmation screen
A payment gateway's checkout page could be embedded in a sandboxed iframe that disabled JavaScript but allowed forms, so the confirmation screen was skipped and a click on a transparent iframe made a payment. An attacker could use this to steal small amounts of cryptocurrency from visitors.
Originally disclosed on HackerOne
- Fixed in 1 hour
- Paid in 1 hour
- Disclosed after 21 hours
Just like I anticipated in 2013 http://homakov.blogspot.com/2013/04/html5-sandbox-bad-idea.html sandbox was a bad idea.
As a payment gateway you do your best to seamlessly integrate with your customers and allow showing checkout in iframes. To prevent basic clickjacking you have data-confirm attribute on Pay button.
However with HTML5 sandbox we can completely switch off Javascript in that iframe, but forms will keep working:
data:text/html,<iframe sandbox="allow-forms" src="https://www.coinbase.com/checkouts/6d670dea8505cc8805ae2c00294599b2?c=fiZ9HYh4OROMcVtKRtEK" style="opacity:0.1"></iframe>
After a click in the transparent iframe the payment is made. Risk: This could be used to quickly steal a couple of bitcoins from random visitors and withdrawing them automatically to external address.
Attachments


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 confirmation step depended on JavaScript, which the sandbox attribute can disable while still allowing form submission.
Impact
This could be used to quickly steal a couple of bitcoins from random visitors and withdraw them automatically to an external address.
What the attacker needed
Victim visits attacker page; victim clicks in transparent iframe; attacker has a Coinbase checkout link
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 payment page normally shows a confirmation step before taking money. Here, the page could be placed inside a special frame that turns off JavaScript, which the confirmation step relied on, but still lets forms submit. So a hidden, see-through frame could make a visitor pay without seeing the confirmation.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.