Skip to content
XSS Disclosed report Beginner

[buy.coinbase.com]Content Injection

The `code` parameter on a Coinbase widget page was vulnerable to content injection, allowing an attacker to insert arbitrary text into the page. This could let an attacker display misleading content to users.

0xspade Follow

Originally disclosed on HackerOne

  • Fixed in 21 days
  • Paid in 21 days
  • Disclosed after 51 days

Hello Coinbase

Details

I'm not sure if this issue will count, i just want to make sure that is why i submit it. The parameter code is Vulnerable in Content Injection allowing me to inject any Text.

Proof Of Concept

Here is my PoC:

Content_Spoofing.png
Content_Spoofing.png From the original on HackerOne

and this which the text overlaps on the modal.

Content_Injection_2.png
Content_Injection_2.png From the original on HackerOne

PoC Link

https://buy.coinbase.com/widget?code=<Content Injection here>&address=1234567890&crypto_currency=BTC

Best Regards, @phspade

The original report as published on HackerOne, by 0xspade. 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

Impact

An attacker could inject arbitrary text into the widget page, potentially misleading users, though the report does not show script execution or other serious consequences.

What the attacker needed

Victim visits a crafted link

How it was found

  1. Open the widget URL with a `code` value containing injected text.
  2. Observe the injected text appearing on the page and overlapping the modal.

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.

Content injection means a website puts user-supplied text into a page without properly checking it, so an attacker can make the page show their own words. Here, the `code` value in the web address was reflected into the widget, letting the reporter add text that appeared on 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.

More by 0xspade

View all

9 more disclosed reports, best first.

More from Coinbase

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.