Skip to content
UI spoofing Disclosed report Beginner

Clickjacking Vulnerability found on Yelp

Some Yelp pages lacked the X-Frame-Options SAMEORIGIN header, allowing them to be embedded in iframes on other sites. An attacker could trick a logged-in user into clicking hidden elements to perform actions such as bookmarking a business, adding an event, or changing a review rating.

hckyguy77 Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 26 days
  • Paid in 26 days
  • Disclosed after 56 days

As many companies do, Yelp set its X-Frame-Options to SAME ORIGIN in its HTTP headers; but unfortunately our exploitation proves that not all the pages are protected. With the use of iframes in the html document, I was able to discover a clickjacking vulnerabilities on Yelp.com, and this vulnerability could lead to a whole bunch of bad things happening to yelp and its users. Just like every other clickjacking issue, all of the issues I found rely on the ignorance of the user into visiting a link, while they are currently logged into yelp. Technically, an attacker can trick a yelp user to do anything or everything that they normally can do but wouldn't do, so this is like a CSRF attack, but it's worse than CSRF, as usually CSRF only causes one specific issue, but the clickjacking attack I have demonstrated here, can lead to many issues for Yelp users. Due to limited time and resource, I selected three issues to demonstrate and I recorded some videos to demonstrate them, but if needed, I can certainly demonstrate more issues due to this same vulnerability. Here are the introduction of the videos recorded in this report:

Tricking a user into unknowingly; No.1: bookmarking unwanted business' No.2: adding events to their profile they are interested in attending. No. 3: editing their star rating on reviews;

More detailed explanation to each video: No.1 trick_user_bookmark : This one is tricking the victim into bookmarking a page that they really may not want to have on their account. Since things like strip clubs are an option on yelps site, it can deface a person's account based on who is seeing the info. Which sharing with friends is very much apart of this site.

No.2 trick_user_into_add_event_to_profile = the victim thinks that they have won something cool and that they need to click on the link to secure the item. Doing so has added the event to their profile.

No.3 trick_user_to_edit_review = This one will rely on multiple clicks, but we can definitely assume that anyone clicking once, will probably keep clicking. Although the review will still sound positive, the rating of the company will not reflect on that.

No.4 trick_user_to_edit_review_withyelp_transparent = shows the vulnerability happening, while the user cannot see the yelp page. This one is pretty much the same as video No.3, but this time I made yelp.com transparent, so it is what would happen in real world attacks. When yelp.com is completely hidden, the user will have no idea.

I added video's to help give a visual representation of what is happening so that you may recreate this issue if you need to with ease.

Attachments

trick_user_to_add_event_to_profile.mp4 From the original on HackerOne
trick_user_bookmark.mp4
trick_user_to_edit_review.mp4

The original report as published on HackerOne, by hckyguy77. 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 trick a logged-in Yelp user into performing unintended actions such as bookmarking a business, adding an event, or changing a review rating, which could deface the user's account or manipulate content.

What the attacker needed

Victim is logged into Yelp; victim visits attacker-controlled page; victim clicks on decoy elements

How it was found

  1. The attacker creates a page that embeds a vulnerable Yelp page in an iframe.
  2. The attacker overlays the iframe with decoy content to trick the user into clicking specific elements.
  3. The victim visits the attacker's page while logged into Yelp.
  4. The victim's clicks are directed to the hidden Yelp page, performing actions such as bookmarking a business, adding an event, or editing a review rating.

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 site loads a real site in an invisible frame and places fake buttons on top. The victim thinks they are clicking something harmless, but the click actually goes to the real site and performs an action they did not intend. This works because the browser allows the site to be framed and the user is already logged in.

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 from Yelp

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.