Hacking

Hacking Microsoft Teams accounts with a GIF image

Experts discovered how to take over Microsoft Teams accounts by just sending recipients a regular GIF, it works for both desktop and web Teams versions.

Microsoft has addressed a vulnerability in Teams workplace video chat and collaboration platform that could have allowed attackers to take Team accounts by sending participants a malicious link to an apparently innocent GIF image.

The vulnerability was discovered by researchers from CyberArk, it affects both desktop and web versions of the software. The researchers reported the issue to Microsoft on March 23 and the IT giant addressed it in an update released on April 20.

“We found that by leveraging a subdomain takeover vulnerability in Microsoft Teams, attackers could have used a malicious GIF to scrape user’s data and ultimately take over an organization’s entire roster of Teams accounts.” reads the analysis published by CyberArk.

“Since users wouldn’t have to share the GIF – just see it – to be impacted, vulnerabilities like this have the ability to spread automatically.”

The issue is critical because the video conferencing solutions such as Zoom and Microsoft Teams are the privileged communication channels chosen by businesses, students, and even government organizations during COVID-19 pandemic.

The flaw ties the way Microsoft Teams handles authentication to image resources. Upon opening the app, it creates an access token, a JSON Web Token (JWT), that allows a user to view images shared by the individual or others in a conversation.

To allow recipients to get the image intended for them, the app uses two authentication tokens: “authtoken” and “skypetoken.”

The ‘authtoken’ token is used authenticates users to load images in domains across Teams and Skype, it also generates the ‘skypetoken’ token, which is used to authenticate to a server that handles client’s action, such as reading messages.

An attacker who is in possession of both tokens could make calls through the Teams API‌s and could take over an account. It could read/send messages, add or remove users, change permissions, and create groups,

Experts pointed out that the “authtoken” can be used only with a subdomain under “teams.microsoft.com,” but the researchers discovered two subdomains (aadsync-test.teams.microsoft.com and data-dev.teams.microsoft.com) that were vulnerable to subdomain takeover.

“If an attacker can somehow force a user to visit the sub-domains that have been taken over, the victim’s browser will send this cookie to the attacker’s server and the attacker (after receiving the authtoken) can create a skype token. After doing all of this, the attacker can steal the victim’s Teams account data.” continues the post.

An attacker could exploit the flaw by just sending a malicious link (i.e. a GIF image) to the victim, or to all members of a group chat. Then when the recipients open the message, the browser sends the authtoken cookies to the compromised sub-domain in the attempts to load the resource (i.e. the GIF image).

Once obtained the authtoken token, the attacker can create a skype token and therefore take over the victim’s account. The attack could be launched by attackers outside the target organization, for example by sending an invitation to a conference call and tricking the victims into opening the message.

“The victim will never know that they’ve been attacked, making the exploitation of this vulnerability stealthy and dangerous,” continues the analysis. “While limiting your organization to internal communication will reduce your exposure, we found that it is still possible to communicate with an outsider and any interaction that includes a chat interface with an outsider is enough to be affected by this vulnerability. A good example of this would be an invitation to a conference call with an outsider for a job interview.”

CyberArk researchers explained that the attack could spread automatically in a worm-like fashion compromising all the accounts in the target organization.

Experts also published a video POC exploit of this vulnerability.

Beware of the GIF: Account Takeover Vulnerability in Microsoft Teams | CyberArk

“Even if an attacker doesn’t gather much information from a Teams’ account, they could still use the account to traverse throughout an organization (just like a worm),” CyberArk concludes.

“Eventually, the attacker could access all the data from your organization’s Teams accounts — gathering confidential information, meetings and calendar information, competitive data, secrets, passwords, private information, business plans, etc.”

Please give me your vote for European Cybersecurity Blogger Awards – VOTE FOR YOUR WINNERS
https://docs.google.com/forms/d/e/1FAIpQLSe8AkYMfAAwJ4JZzYRm8GfsJCDON8q83C9_wu5u10sNAt_CcA/viewform

[adrotate banner=”9″][adrotate banner=”12″]

Pierluigi Paganini

(SecurityAffairs – Micorsoft Teams, hacking)

[adrotate banner=”5″]

[adrotate banner=”13″]

Pierluigi Paganini

Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer. Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US. Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines. Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.

Recent Posts

U.S. Gov imposed Visa restrictions on 13 individuals linked to commercial spyware activity

The U.S. Department of State imposed visa restrictions on 13 individuals allegedly linked to the…

6 hours ago

A cyber attack paralyzed operations at Synlab Italia

A cyber attack has been disrupting operations at Synlab Italia, a leading provider of medical…

7 hours ago

Russia-linked APT28 used post-compromise tool GooseEgg to exploit CVE-2022-38028 Windows flaw

Russia-linked APT28 group used a previously unknown tool, dubbed GooseEgg, to exploit Windows Print Spooler…

16 hours ago

Hackers threaten to leak a copy of the World-Check database used to assess potential risks associated with entities

A financially motivated group named GhostR claims the theft of a sensitive database from World-Check…

1 day ago

Windows DOS-to-NT flaws exploited to achieve unprivileged rootkit-like capabilities

Researcher demonstrated how to exploit vulnerabilities in the Windows DOS-to-NT path conversion process to achieve…

1 day ago

A flaw in the Forminator plugin impacts hundreds of thousands of WordPress sites

Japan's CERT warns of a vulnerability in the Forminator WordPress plugin that allows unrestricted file uploads…

1 day ago

This website uses cookies.