Skip to content
UI spoofing Disclosed report Beginner

Clickjacking in the admin page

The admin users page did not send an X-Frame-Options header, so it could be embedded in a frame on another site. An attacker could overlay it to trick a logged-in admin into clicking admin actions, potentially leading to account takeover or user manipulation.

ant_pyne Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 43 days
  • Disclosed after 2 months

Summary:

Hello Rocket.Chat,

There is a clickjacking vulnerability in a very critical page which is the admin info page. For my installation, the URL https://penetrationtester.rocket.chat/admin/users was used for creating the PoC.

Description:

Clickjacking (User Interface redress attack, UI redress attack, UI redressing) is a malicious technique of tricking a Web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages.

The server didn't return an X-Frame-Options header which means that this website could be at risk of a clickjacking attack. The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a <frame> or <iframe>. Sites can use this to avoid clickjacking attacks, by ensuring that their content is not embedded into other sites.

The admin info page of all rocket.chat installations would be vulnerable.

Steps To Reproduce (from initial installation to vulnerability):

  1. Open the attached Clickjacking.html on a browser and if you are logged in from an admin account, you will see that the page is loaded.

Requirement for attack - Knowledge of the admin email and rocket.chat installation link.

Reason for marking this as medium - Even though Clickjacking is always considered a low hanging fruit, the impact this can have is humongous.

Recommendation - X-Frame options header.

Impact

If the UI overlay can be performed correctly by the attacker, this can lead to account takeover, manipulation of admin account, making any user admin or deleting and/or adding any user.

Attachments

admin_clickjacking.png
admin_clickjacking.png From the original on HackerOne

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

The application did not send the X-Frame-Options response header on the admin users page, allowing it to be framed by other sites.

Impact

If the UI overlay is performed correctly, an attacker could achieve account takeover, manipulate the admin account, make any user admin, or delete and add users.

What the attacker needed

Victim is logged in as admin; attacker knows admin email and installation link; victim visits attacker's page

The fix

The admin page should send an X-Frame-Options header to prevent framing.

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 invisibly on top of a fake one, so your clicks land on the real page's buttons without you knowing. Here, the admin page could be loaded inside another site because it lacked a header that tells browsers not to allow that. If an admin visited the attacker's page while logged in, their clicks could perform admin actions.

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 ant_pyne

View all

4 more disclosed reports, best first.

More from Rocket.Chat

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.