Skip to content
UI spoofing Disclosed report Beginner

Stealing User emails by clickjacking cards.twitter.com/xxx/xxx

A Twitter card page that sends the visitor's email and username to an external domain lacked frame protection, so an attacker could embed it in an iframe and trick a victim into clicking the button to leak their email. The report demonstrates this with a simple iframe proof of concept.

akhil-reni Follow

Originally disclosed on HackerOne

  • Triaged in 5 hours
  • Fixed in 5 months
  • Paid in 7 days
  • Disclosed after 6 months

Hello

In twitter you can create cards to generate leads. For example: https://twitter.com/i/cards/tfw/v1/759046372544741376?cardname=promotion&autoplay_disabled=true&earned=true&lang=en&card_height=357

If you visit the above URL and click the button your email and username is sent to my domain.

Since this page is missing X-FRAME-HEADERS, a user could simply iframe the URL and could steal victim's emails.

Proof of concept code

<html>
<iframe src=https://twitter.com/i/cards/tfw/v1/759046372544741376?cardname=promotion&autoplay_disabled=true&earned=true&lang=en&card_height=357>
</html>

Regards, Akhil

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

The card page did not send X-Frame-Options (or equivalent frame-ancestors) headers, allowing it to be embedded in an iframe.

Impact

An attacker could steal a victim's email address and username by tricking them into clicking a framed button.

What the attacker needed

Victim visits attacker page; victim clicks the framed button

How it was found

  1. Visit the card URL that sends the visitor's email and username to an external domain when the button is clicked.
  2. Embed that URL in an iframe on an attacker-controlled page.
  3. Trick a victim into clicking the button inside the iframe, leaking their email and username.

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 web pages can be embedded inside another site using a frame. If a page that performs a sensitive action (like sending your email to someone) can be framed, an attacker can hide it on their own site and trick you into clicking. This is called clickjacking. The fix is to tell browsers not to allow the page to be framed.

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.

More by akhil-reni

View all

13 more disclosed reports, best first.

More from X / xAI

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

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.