Skip to content
UI spoofing Disclosed report Beginner

clickjacking at brew.sh

The site did not send an X-Frame-Options header, so its pages could be loaded inside a frame on another site. An attacker could use this to trick a visitor into clicking or typing into the framed page while believing they were interacting with something else.

sai545 Follow

Originally disclosed on HackerOne

  • Disclosed after 6 hours

hello , While performing security testing of your website i have found the vulnerability called Clickjacking. URL is in scope and vulnerable to Clickjacking. What is Clickjacking ? 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. vulnerable url: https://brew.sh/ no x-frames in the above website For POC we can use either the html script or burpsuite script:

<html lang="en-US"> <head> <meta charset="UTF-8"> <title>I Frame</title> </head> <body> <h3>clickjacking vulnerability</h3> <iframe src="https://brew.sh" width="700px"></iframe> </body> </html>

Impact

Using a similar technique, keystrokes can also be hijacked. With a carefully crafted combination of stylesheets, iframes, and text boxes, a user can be led to believe they are typing in the password to their email or bank account, but are instead typing into an invisible frame controlled by the attacker.

Attachments

recording-1624850827832.webm From the original on HackerOne
Screenshot_(684).png
Screenshot_(684).png
Screenshot_(683).png
Screenshot_(683).png

The original report as published on HackerOne, by sai545. 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 application did not send an X-Frame-Options response header (or an equivalent frame-ancestors policy) to stop its pages being embedded in other sites.

Impact

Because the page can be framed, an attacker could overlay it with their own content so that a victim's clicks or keystrokes are captured, though the report only describes this as a possibility.

What the attacker needed

Victim visits an attacker-controlled page

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.

Websites can be told to refuse being shown inside another site's frame (a small window that loads one page within another). This site did not send that instruction, so another site could frame it and place invisible buttons over it. A visitor might then click something they did not mean to click.

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 Homebrew

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.