Skip to content
UI spoofing Disclosed report Beginner

Possible clickjacking at shop.khanacademy.org

The shop subdomain's HTTP responses lacked a header that stops other sites from embedding the page in a frame. An attacker could therefore overlay the shop page inside a malicious site and trick a visitor into clicking controls they did not intend to click.

internetwache Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Hello there,

the website at shop.khanacademy.org isn't protected against clickjacking properly.

###PoC

curl -L -I http://shop.khanacademy.org/ 
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 08 Apr 2014 00:33:39 GMT
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Status: 200 OK
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: chrome=1
X-ShopId: 1494466
X-ShardId: 0
X-Stats-Unique-Token: 2dd016682529fa6dc0ac02f03b41cb145bdeb1906793867d2f763e05dad4a464
X-Stats-Visit-Token: d52a2198c1a197fb3535f0ea5db92ee9381f41ad8a910d9997859a4a7d21a6bb
ETag: cacheable:8709c7da7c24e09f7f45bab2c9d17d6a
X-Alternate-Cache-Key: cacheable:214f21e7ce7fcc794113ab6ec2eac291
X-Cache: miss
Set-Cookie: _shopify_y=2dd016682529fa6dc0ac02f03b41cb145bdeb1906793867d2f763e05dad4a464; path=/; expires=Sat, 08 Apr 2034 00:33:39 -0000
Set-Cookie: _shopify_s=d52a2198c1a197fb3535f0ea5db92ee9381f41ad8a910d9997859a4a7d21a6bb; path=/; expires=Tue, 08 Apr 2014 01:03:39 -0000
Set-Cookie: request_method=HEAD; path=/
Set-Cookie: _session_id=289a218d076bea034b85e5e807e00aa9; path=/; HttpOnly
X-Request-Id: 6a3f8d62-4d9d-4303-af04-12e201856770
P3P: CP="NOI DSP COR NID ADMa OPTa OUR NOR"

You should add the X-Frame-Origin: sameorigin header to the server http responses. Otherwise you're vulnerable to clickjacking attacks.

Best regards, Sebastian

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

Likely the server did not send an anti-framing response header (such as X-Frame-Options) on the shop pages.

Impact

Because the page could be framed, a victim could be tricked into clicking shop controls through an overlaid page; the report does not demonstrate an actual exploit.

What the attacker needed

Victim visits an attacker-controlled page

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.

Clickjacking is when a malicious page loads a real site invisibly on top of its own content, so your clicks land on the real site's buttons without you realising. The usual defence is a response header that tells the browser not to allow the page to be framed by other sites. Here the researcher checked the response headers and found no such protection.

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 internetwache

View all

10 more disclosed reports, best first.

More from Khan Academy

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.