Skip to content
UI spoofing Disclosed report Beginner

Clickjacking mercantile.wordpress.org

Several pages on the mercantile.wordpress.org site did not send an X-Frame-Options header, so they could be loaded inside a frame on another site. An attacker could overlay the framed page with their own content to trick a visitor into clicking buttons or links on the WordPress store without realising it.

villagelad Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 11 days
  • Disclosed after 11 days

A Clickjaking Issue had been previously reported by "giantfire" on Aug 9th (19 days ago) and the issue was fixed by "iandunn" on Aug 25th (3 days ago) and the same disclosed on Aug 28th. Here the affected URL is- https://mercantile.wordpress.org/

"iandunn closed the report and changed the status to Resolved. Aug 25th (3 days ago)

The site is sending X-Frame-Options: SAMEORIGIN for front end requests now. Thanks for the report. I'll request disclosure and chat with the team to see if this qualifies for a bounty."

But the issue is still live. So here's my report. I found some others endpoints as well which can be Clickjacked easily.

Hello Team, I am Mohammed Israil,17 found some security issue which are not very critical but can affect the system/service in future. So without delaying. I am reporting this issue hope you'll understand and implement some fix as soon as possible.

Vulnerability Type: Clickjacking (user-interface or UI redressing and IFRAME overlay)

Affected URLs: https://mercantile.wordpress.org/ https://mercantile.wordpress.org/# https://mercantile.wordpress.org/product-category/accessories/ https://mercantile.wordpress.org/faq/ https://mercantile.wordpress.org/product-category/apparel/?subcat=women https://mercantile.wordpress.org/product-category/apparel/?subcat=youth https://mercantile.wordpress.org/product-category/apparel/?subcat=unisex

Description: Clickjacking, also known as a "UI redress attack", is when an attacker uses multiple transparent or opaque layers to trick a user into clicking on a button or link on another page when they were intending to click on the the top level page. Thus, the attacker is "hijacking" clicks meant for their page and routing them to another page, most likely owned by another application, domain, or both.

Reason: X-Frame-Options header is not included in the HTTP response to protect against 'ClickJacking' attacks.

Evidence: I attached a screenshot as well, Please check that.

Solution: There are two main ways to prevent clickjacking:

Sending the proper X-Frame-Options HTTP response headers that instruct the browser to not allow framing from other domains
Employing defensive code in the UI to ensure that the current frame is the most top level window

Most modern Web browsers support the X-Frame-Options HTTP header. Ensure it's set on all web pages returned by your site (if you expect the page to be framed only by pages on your server (e.g. it's part of a FRAMESET) then you'll want to use SAMEORIGIN, otherwise if you never expect the page to be framed, you should use DENY. ALLOW-FROM allows specific websites to frame the web page in supported web browsers).

Reference: http://blogs.msdn.com/b/ieinternals/archive/2010/03/30/combating-clickjacking-with-x-frame-options.aspx

Thank You

The original report as published on HackerOne, by villagelad. 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 pages were served without an X-Frame-Options response header, so browsers allowed them to be framed by other origins.

Impact

A visitor could be tricked into clicking links or buttons on the store while believing they were interacting with the attacker's page; the report does not show a concrete harmful action being performed.

What the attacker needed

Victim visits an attacker-controlled page

The fix

The site should send an X-Frame-Options header (SAMEORIGIN or DENY) on all pages, or use frame-busting code; the text notes an earlier fix was applied to front-end requests but says the issue was still live on the listed endpoints.

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 inside a frame and puts fake buttons on top, so your clicks land on the real site instead of where you think. Sites defend against this by telling the browser, through a response header, that their pages must not be framed by other domains. Here the reporter says some pages were missing that header, so they could still 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 from WordPress

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.