Hacking Microsoft Teams: Detailed guide

We live in an age where technology is part of our lives and a primary valuable resource for personal and professional work. The use of online video conferencing platforms such as Zoom and Microsoft Teams has become necessary in recent months due to the COVID-19 pandemic.

This article provides a detailed step-by-step guide on how to hack Microsoft Teams with a simple Gif.

The vulnerability posted in April to mid-2020 could be exploited by a remote user, and Microsoft immediately fixed the bug a few days after the revelation. However, this scenario should be understood as a real threat facing not only Microsoft Teams but also all applications that maintain the same mode of operation.

Even if one If a user does not have sensitive information from a group's account, the flaw can be used to execute a to the organization's accounts, like a worm, to get the account badges and then access all the target user chat sessions.

Figure 1 below shows how this attack can be performed on a large company.

Figure 1: Microsoft Teams Attack Workflow

In detail, the attack can be exploited by following these steps:

  1. A malicious GIF image is prepared and created by and is sent to a first victim during a chat conference call.
  2. The victim opens and sees the message with the GIF image embedded. At this point, the hacker impersonates the victim and spreads the GIF image with the payload to the accounts of the organization's teams like a worm, infecting a large group of employees.
  3. The message spreads and other victims are affected.
  4. The victim group vouchers are sent to the hacker.
  5. Hackers can use the data to access information, contacts, messages of the victim and so on.

As described above, the vulnerability is based on a simple GIF image and how groups handle authentication on image resources. Below, the initial payload is presented.

 

 

Figure 2: H GIF image sent to the first victim.

In detail, when opening the application (both mobile and desktop), a JSON Web Token (JWT), the access token, is generated during this s. This token allows the user to view images shared by the person or others in a chat / meeting / video conference.

Because of this, a cookie called "authtoken" that provides access to a resource server "api.spaces.skype.com" can act as an abuse to create the "Skype token", giving access to send messages, create groups, add new users or remove users from groups, change permissions to groups through the Teams API and so on.

 

 

Figure 3: The distinctive JWT was filtered using this vulnerability.

Next step: takeover attack

Upon receipt of this privileged badge, it may be misused to interact with other internal systems in the Microsoft ecosystem. In order to execute a successful attack, two subdomains were identified as vulnerable to takeover attacks:

  • aadsync-test.teams.microsoft.com
  • data-dev.teams.microsoft.com

By receiving this information, a hacker can force a user to access the downloaded domains. After that, the victim browser will automatically send the cookie to the rogue's remote server. You can now create the Skype badge and access all the account data of the victim group.

Details including confidential information, appointments and calendar information, competing data, secrets, passwords, private information, business strategy, plans and procedures can now be used to execute other types of attackers.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.086 registrants.

Written by Anastasis Vasileiadis

Translations are like women. When they are beautiful they are not faithful and when they are faithful they are not beautiful.

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).