Skip to content
UI spoofing Write-up Beginner

Execution of a clickjacking attack on Gemini (Google’s AI-powered assistant) - which I recently reported to Google.

The affected Gemini URL did not send X-Frame-Options or a Content-Security-Policy frame-ancestors directive, so the page could be embedded in an attacker's iframe. The author wrote a script that successfully framed the page, enabling clickjacking.

Nikhil Kumar Gandla Follow

Published on systemweakness.com

Henece notes that the URL does not implement the X-Frame-Options header or the Content Security Policy (CSP) header (Frame-Ancestors).

Nikhil Kumar Gandla, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could frame the affected Gemini page and use it for clickjacking, though the report does not show a concrete action a victim would be tricked into.

What the attacker needed

Victim visits attacker page; victim interacts with framed content

How it was found

  1. Open the target URL in a web browser.
  2. Capture the request in the browser and review the response.
  3. Identify a suspicious URL in the HTML and send a GET request to it.
  4. Check the response in the browser.
  5. Write a script that frames the page, save it as an HTML file and open it in a browser.

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 write-up has not been written yet. The Original tab links to the source.

Clickjacking tricks a user into clicking something they cannot see, because a hidden page is placed over a visible one. This report says a Gemini page could be loaded inside another site's frame, which is the first requirement for that trick. The author then made a simple page that framed it to show the problem.

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.

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.