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.
- 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
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
- Identify Yelp endpoints that perform actions such as reporting a profile, following a user, or sending a compliment.
- Embed those endpoints in hidden iframes on an attacker-controlled page.
- 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.