Skip to content
UI spoofing Write-up Beginner

Cookie Stealing via Clickjacking using Burp collaborator

The target's Apache Tomcat servlet example page displayed the current user's cookie and lacked an X-Frame-Options header, allowing the page to be framed. An attacker could use clickjacking to trick a victim into submitting their cookie to an attacker-controlled Burp Collaborator endpoint.

Anurag__Verma Follow

Published on medium.com

This blog is regardingcookie stealing via clickjacking usingburp collaborator on target using Apache Tomcat server.

Anurag__Verma, on medium.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

Root cause

Likely the application exposed a servlet that reflected the user's cookie in the page and did not send an X-Frame-Options header, so the page could be embedded in an attacker's iframe.

Impact

An attacker could steal a victim's cookie through clickjacking, but the exploit relies on the victim manually entering the cookie into a form.

What the attacker needed

Victim visits attacker page; victim enters cookie in form

How it was found

  1. Identify the target servlet path that displays the current user's cookie.
  2. Check that the X-Frame-Options header is missing.
  3. Build a clickjacking page with an iframe and a form whose action points to a Burp Collaborator URL.
  4. Send the page to a victim; when the victim enters their cookie, it is sent to the Collaborator server.

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 is when a malicious site loads a real site in an invisible frame and tricks you into clicking something you did not intend to click. Here, the real page showed your session cookie, and because the site did not stop other sites from framing it, an attacker could overlay it and capture that cookie. A cookie is a small piece of data your browser sends to a site to identify your logged-in session.

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 Anurag__Verma

View all

9 more disclosed reports, best first.

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.