Skip to content
UI spoofing Disclosed report Beginner

ClickJacking on IMPORTANT Functions of Yelp

Several Yelp endpoints that perform actions such as reporting a profile, following a user, or sending a compliment lacked frame-busting protections, so an attacker could embed them in a hidden iframe and trick a logged-in victim into clicking. This could cause the victim to perform those actions unintentionally.

hk755a Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 2.1 years
  • Paid in 50 days
  • Disclosed after 2.6 years

Summary by the program

@hk755a reported several endpoints that were vulnerable to clickjacking. Since then, Yelp has deployed a site-wide CSP policy to prevent such clickjacking attacks from occurring.

The report

##SUMMARY: Few Important function of yelp.com are vulnerable to ClickJacking Attack.

##DESCRIPTION: Please have an Introduction about the vulnerability Type: https://en.wikipedia.org/wiki/Clickjacking ClikcJacking is similar to CSRF with just an extra involvement of the victim to click somewhere on the ClickJacked page (which is usually done very easily). It bypasses CSRF token protection & Its impact could be critical depending on the component/function it can affect. At yelp.com I have found the following functions to be vulnerable:

##1.) Report A profile (With custom Message in it) Using URL: https://www.yelp.com/flag_content?message=This%20person%20is%20abusive&flag_id=aV0sVlYtxt7_2SJ7X_b-3A&flag_type=user_profile&previous_url=%2Fuser_details%3Fuserid%3DaV0sVlYtxt7_2SJ7X_b-3A

##2.) Follow a user Using URL: https://www.yelp.com/following_user/add?dst_user_id=aV0sVlYtxt7_2SJ7X_b-3A&previous_url=/user_details?userid=aV0sVlYtxt7_2SJ7X_b-3A

##3.) Send A Compliment (With Custom message in it)** Using URL: https://www.yelp.com/thanx?message=go%20to%20hell&previous_url=/user_details?userid=aV0sVlYtxt7_2SJ7X_b-3A&user_id=aV0sVlYtxt7_2SJ7X_b-3A

##POC: PLEASE WATCH THE 1 minute POC VIDEO TO SEE HOW THESE URL ARE EMBEDDED INTO HIDDEN IFRAMES AND HOW THE VICTIM IS EXPLOITED. THE HTML FILES USED IN THE VIDEO ARE ATTACHED IN THIS REPORT THE POC ALSO SHOWS THE IMPACT OF THE VULNERABILITY

##MITIGATION These attacks could be circumvented by using "X-Frame-Options" Header.

Impact

Such vulnerability when exploited in the wild by the attackers would : 1.) Affect the users interaction on your platform. Such unintended behavior is definitely not wanted by any user. 2.) Such effect upon your users could significantly harm your overall reputation and customer loss.

Attachments

The original report as published on HackerOne, by hk755a. 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 affected endpoints did not send an X-Frame-Options header or equivalent frame-ancestors policy, allowing them to be embedded in third-party pages.

Impact

An attacker could make a logged-in victim perform actions such as reporting a profile, following a user, or sending a compliment without their knowledge, which could affect user interaction and harm Yelp's reputation.

What the attacker needed

Victim is logged in to Yelp; victim visits attacker-controlled page; victim clicks on the page

The fix

Yelp deployed a site-wide Content Security Policy to prevent clickjacking; the report also suggested using the X-Frame-Options header.

How it was found

  1. Identify Yelp endpoints that perform actions such as reporting a profile, following a user, or sending a compliment.
  2. Embed those endpoints in hidden iframes on an attacker-controlled page.
  3. Trick a logged-in victim into clicking on the page, causing the hidden action to be performed.

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 page from another site in an invisible frame on top of a fake button. When you click what looks like a harmless button, you are actually clicking the hidden page's button, so you perform an action you did not intend. Here, actions like following a user or sending a compliment could be triggered without the victim realising.

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 hk755a

View all

11 more disclosed reports, best first.

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.