Skip to content
UI spoofing Write-up Intermediate

Story of Clickjacking on Microsoft Leads To Privilege Escalation & Account Takeover Of Admin

Several Microsoft portals lacked clickjacking protection, allowing an attacker to frame them and trick a logged-in user into performing sensitive actions. This could let a normal user escalate to global admin or let an attacker add an email to an admin's alternate email and reset the password to take over the account.

Abdul Rehman Parkar Follow

Published on medium.com

{{media:0}}

Abdul Rehman Parkar, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Microsoft runs a large number of separate portals, and the researcher used the community-maintained index at https://msportals.io/ to enumerate them. The portals that mattered here were:

The first two are effectively the same portal under different names. They hold sensitive data and expose options for creating, deleting and managing user roles. The third is the account personal-information page.

The feature under attack is not a single endpoint but the absence of framing protection on pages that perform privileged state changes. If such a page can be loaded inside an attacker-controlled iframe, a logged-in administrator can be made to click controls they cannot see.

Setup

The researcher needed nothing beyond a browser and a logged-in Microsoft session. The precondition for every attack described is that the victim is authenticated to the target portal at the time of the visit, and that the portal page can be framed. No accounts, tools or versions are described beyond that.

Finding it

The researcher had previously found a high-severity clickjacking issue on Facebook/Instagram that was closed as a duplicate, and decided to look for the same class of bug on Microsoft. Working through the portals listed on msportals.io, several URLs turned out to be framable, but none of them offered anything worth exploiting: reporting them would likely have been treated as informative rather than critical.

The interesting find was the group of three portals above, because they store sensitive data and, in the case of the first two, expose role management. A framable page that lets an administrator create, delete or manage user roles is a very different proposition from a framable page that does nothing.

Exploitation

The researcher built two proofs of concept. The report does not include the payload markup itself, so the mechanics below are the ones the report describes in prose.

Step 1: Privilege escalation to global admin

The researcher created a payload showing how a normal user could use clickjacking to elevate their privileges to global admin. The clicks the user believes they are making elsewhere land on the portal's role-management controls. The result demonstrated in POC 1 is that a normal user elevates their own privileges to global admin, which gives access to all organisation portals.

Step 2: Account takeover of the admin

POC 2 targets the account page at portal.microsoftonline.com/account#personalinfo. The second POC showed how an attacker could add their email as the admin's alternate email and reset the password. With that address registered, the attacker triggers a password reset and takes over the admin account.

Step 3: Reporting and response

The privilege escalation issue in admin.microsoft.com and portal.office.com/adminportal (treated as one because they are the same portal) went into one report. The account takeover issue in portal.microsoftonline.com/account#personalinfo went into a second report.

The first report entered review within one day. Within another day, and without any status change on the report, the vulnerabilities in all three portals were fixed. The second report was still showing as "New" and had not been updated at the time of writing.

Microsoft then responded on the first report and marked it "Complete". The response received after the fix stated that the issue does not meet their bar for immediate servicing. No bounty was awarded.

Root cause

The researcher reported clickjacking on the portals; the report does not describe the underlying cause. The report does not describe which framing defence, if any, was missing on each portal; the fix was applied to all three within a day of the first report entering review.

Impact

Two distinct outcomes were demonstrated. A normal user could become global admin of their organisation, and an attacker could take over an administrator account by adding their own address as the alternate email and resetting the password. Both require the victim to be logged in and to be lured into interacting with an attacker-controlled page.

The researcher's argument for severity is that most users have no cybersecurity background and will click without thinking, particularly when a site offers rewards. Even if only 10 out of 100 organisations were affected and the attacker gained access to their portals, the result would be a complete compromise of their data. There is also a reputational angle: the breach could be blamed on the portal administrator rather than the attacker. Microsoft nonetheless treated the severity as moderate and did not pay a bounty.

Fix

Microsoft fixed the vulnerabilities in all three portals within a day of the first report entering review.

Variants to test

  1. Enumerate portals from an index such as msportals.io and check each authenticated page for framing. A positive result is a page that renders inside an iframe while you are logged in.
  2. Prioritise pages that change roles, permissions or recovery settings. A positive result is a framable page whose controls can be positioned under a decoy click target.
  3. Test the account personal-information page specifically for alternate email changes. A positive result is the ability to add an address through framed clicks alone.
  4. Check whether the same portal is reachable under multiple hostnames, as with admin.microsoft.com and portal.office.com/adminportal.
  5. Re-test after a fix is announced, on every hostname in the group, to confirm the protection was applied everywhere.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

A security researcher found a way to trick a logged-in Microsoft administrator into clicking things they could not see. By doing that, an ordinary user could make themselves a global administrator of their organisation, and an attacker could take over an administrator's account entirely. Microsoft fixed the problem in all three affected portals within a day of the first report entering review, and paid no bounty.

The trick used is called clickjacking. To understand it, imagine someone places a transparent sheet of glass over a cash machine keypad, with a fake keypad printed on the glass. You think you are typing your PIN into the machine, but your fingers are actually pressing the real buttons underneath, guided by the fake labels. In a browser, the "sheet of glass" is a web page the attacker controls, and the "real buttons" are the buttons of a Microsoft portal loaded invisibly underneath it.

Abdul Rehman Parkar
Abdul Rehman Parkar From the original on medium.com

The researcher is Abdul Rehman Parkar, who works at IZYITS. He had previously found a similar clickjacking issue on Facebook/Instagram, but it was closed as a duplicate, meaning someone else had already reported it. He decided to take a two-day break and then try the same idea against Microsoft.

The ideas you need before the story makes sense

A few everyday concepts come up repeatedly, so here they are from scratch.

  • A portal is simply a website that gives you access to a service after you log in. Your online banking site is a portal. Microsoft runs many of them: one for email, one for billing, one for managing users, and so on.
  • Logging in works by the server giving your browser a small piece of data to hold on to, often called a session cookie or just a session. Think of it as a wristband a venue gives you at the door: you show it at every counter and nobody asks for your ID again. As long as your browser holds that wristband, the server treats every request from your browser as coming from you.
  • An iframe is a way to put one web page inside another, like a small television screen embedded in a larger wall. Websites use it legitimately all the time, for example to show a video or a map. The danger is that the embedded page can be made invisible, or made to look like something else.
  • Clickjacking is the attack that abuses iframes. The attacker builds a page that loads a real, sensitive page inside an invisible iframe, then places their own fake buttons on top. When you click what looks like a harmless button, the click actually lands on the hidden real page underneath. Because your browser still holds the session wristband, the hidden page accepts the click as a genuine action by you.
  • Privilege escalation means gaining more power than you were given. In an office, it is like a normal employee finding a way to sign off their own promotion to director. In a Microsoft organisation, it means a normal user account becoming a global admin, an account that can control everything in the organisation.
  • Account takeover means getting into someone else's account, usually by resetting their password. The attacker does not need to know the current password if they can convince the system that a recovery address belongs to them.
  • An alternate email address is a backup address attached to an account. If you forget your password, the service sends a reset link there. Whoever controls that address can reset the password, which is why it is such a sensitive setting.
  • A proof of concept (POC) is a small demonstration that shows an attack really works, rather than just describing it in theory. It is the difference between saying "this door looks flimsy" and actually opening it.

How he found the portals to test

Microsoft has a very large number of separate portals, and nobody can remember them all. The researcher used a community-maintained index of them at https://msportals.io/, which lists links to Microsoft portals in one place. He found it by searching Google for "Microsoft portals".

His plan was simple: visit each portal in the list and check whether it could be loaded inside an iframe while he was logged in. If a page loads inside an attacker's iframe, that page is a candidate for clickjacking.

Several URLs turned out to be loadable in a frame, but they did nothing interesting. Reporting those would probably have been treated as informative, a report that is acknowledged but not considered a real security problem, rather than critical. He kept looking for something that actually mattered.

The three portals that mattered

He eventually found three portals, two of which are the same portal under different names:

These were interesting for two reasons. First, they store sensitive data. Second, the first two, which are effectively one portal, offer options for creating, deleting and managing user roles. A role is a bundle of permissions: what a user is allowed to do. Managing roles is exactly the kind of power an attacker would love to borrow from an administrator.

The third portal is the account personal-information page. That is the setting that makes password resets possible.

Why the bug exists at all

The researcher reported clickjacking on these portals; the report does not describe the underlying cause. If a page that performs powerful actions can be loaded inside an attacker's iframe, then a logged-in administrator can be made to click controls they cannot see.

Both arrive at the server as ordinary, authenticated requests, carrying the session wristband. The server sees a legitimate administrator doing legitimate things.

What the researcher needed to run the attack

Very little: a browser and a logged-in Microsoft session. That is the whole setup. The only precondition for every attack in this story is that the victim is signed in to the target portal at the moment they visit the attacker's page, and that the portal page can be framed. No special tools, accounts or software versions are involved.

The two proofs of concept

He built two demonstrations. The report describes them in prose rather than showing the page markup, so what follows is what the report says each one achieved.

POC 1: a normal user becomes global admin

A normal user, already logged in, visits a page controlled by the attacker. The researcher created a payload showing how a normal user could use clickjacking to elevate their privileges to global admin. The user thinks they are clicking something on the attacker's page, but the clicks land on the portal's role-management controls.

The result: the normal user elevates their own privileges to global admin. A global admin can reach all of the organisation's portals, so this is not a small step up; it is the top of the ladder.

POC 2: the administrator's account is taken over

This one targets the account page at portal.microsoftonline.com/account#personalinfo. The second POC showed how an attacker could add their email as the admin's alternate email and reset the password. Once that address is registered, the attacker triggers a password reset. The attacker resets the password and takes over the admin account.

Notice the shape of both attacks: the victim does something ordinary, like clicking a button on a page they were sent to, and the hidden portal does the rest. The victim never sees the portal, and the attacker never needs a password.

Reporting it to Microsoft

The privilege escalation issue in admin.microsoft.com and portal.office.com/adminportal went into one report, because those two are the same portal. The account takeover issue in portal.microsoftonline.com/account#personalinfo went into a second report.

The first report entered review within one day. Within another day, and without any status change appearing on the report, the vulnerabilities in all three portals were fixed. The second report was still showing as "New" and had not been updated at the time of writing.

Microsoft then responded on the first report and marked it "Complete". The response received after the fix said the issue does not meet their bar for immediate servicing. No bounty was awarded.

Why he thought it deserved more

The researcher's argument for severity is about people, not technology. Most users have no cybersecurity background and will click without thinking, especially when a site offers rewards. Even if only 10 out of 100 organisations were affected, and the attacker gained access to their portals, the result would be a complete compromise of their data.

There is also a reputational angle. When an account is broken into this way, people may assume the portal administrator was careless, when in fact the administrator was tricked by a page they could not see through. Microsoft nonetheless treated the severity as moderate and paid no bounty.

What the fix was

Microsoft fixed the vulnerabilities in all three portals within a day of the first report entering review. The report does not say what the fix was, so whether it was an X-Frame-Options header, a frame-ancestors CSP directive or a JavaScript frame-busting check cannot be said from the text.

Things worth testing if you want to try this yourself

  1. Collect portals from an index such as msportals.io and check each logged-in page for framing. A positive result is a page that renders inside an iframe while you are logged in.
  2. Prioritise pages that change roles, permissions or recovery settings. A positive result is a framable page whose controls can be positioned under a decoy click target.
  3. Test the account personal-information page specifically for alternate email changes. A positive result is being able to add an address through framed clicks alone.
  4. Check whether the same portal is reachable under multiple hostnames, as with admin.microsoft.com and portal.office.com/adminportal.
  5. Re-test after a fix is announced, on every hostname in the group, to confirm the protection was applied everywhere.

Glossary

  • Account takeover: gaining control of someone else's account, usually by resetting their password.
  • Alternate email address: a backup address on an account, used to receive password reset links.
  • Clickjacking: tricking a logged-in user into clicking hidden controls on a real site by covering it with an attacker's page.
  • Cookie / session: a small piece of data your browser holds after logging in, which the server uses to recognise you on later requests.
  • Critical / informative: report severity labels; critical means a serious exploitable problem, informative means acknowledged but not considered a real security issue.
  • CSP frame-ancestors: a browser instruction that tells a page which other sites are allowed to embed it in a frame.
  • Duplicate: a report for a bug that has already been reported by someone else.
  • Frame-busting: a JavaScript technique that makes a page break out of an iframe it was not meant to be in.
  • Global admin: the highest-level administrator account in a Microsoft organisation, able to control all its portals and users.
  • Hostname: the name part of a web address, such as admin.microsoft.com.
  • Iframe: a way to embed one web page inside another.
  • Informative: see critical / informative.
  • Portal: a website that gives access to a service after logging in.
  • Privilege escalation: gaining more permissions than you were granted.
  • Proof of concept (POC): a working demonstration that an attack is possible.
  • Role: a bundle of permissions that defines what a user is allowed to do.
  • Session: see cookie / session.
  • X-Frame-Options: an HTTP response header that tells the browser whether a page may be displayed in a frame.

More by Abdul Rehman Parkar

View all

7 more disclosed reports, best first.

More from Microsoft

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.