Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


12:25 PM
Connect Directly

Microsoft Teams Vulnerable to Patch Workaround, Researchers Report

Attackers could work around an earlier patch and use Microsoft Teams Updater to download binaries and payloads.

Security researchers have discovered a way to use the Microsoft Teams Updater to download malware, bypassing a patch released earlier this year and flying under security teams' radar.

This method would let an attacker use Microsoft Teams Update[.]exe as a living-off-the-land binary (LOLbin). Living off the land is an especially dangerous technique as it uses known, common tools to download and execute malware from a location of the attackers' choosing.

"You can use that binary to download any arbitrary binary that you want," says Karl Sigler, senior security research manager at Trustwave SpiderLabs. Teams is appealing software for living-off-the-land attacks because it's likely already installed on potential victims' systems. Furthermore, Teams traffic is usually so noisy that it's easy for malicious traffic to evade detection.

SpiderLabs' Reegun Jayapaul discovered a vulnerability enabling this attack vector last year. He found Teams could download via HTTP or HTTPS, meaning attackers could point to the web server where their payload was hosted and download directly from there. Microsoft issued a fix to prevent HTTP functionality so Teams could only download updates via local shares provided by the administrative team.

The problem, he recently found, was Microsoft's patch was not complete. Even though HTTP and HTTPS were eliminated as download options, an attacker could work around the fix by pointing to a remote Server Message Block (SMB) share. The attacker could set up a Samba server, which could be available via SMB, and point to the UNC share to download any arbitrary binary they want.

"It's a vulnerability in how Teams downloads updates that would allow an attacker to potentially download their own payload instead of a legitimate update from Teams," Sigler says. To exploit it, an attacker would first need to get the malicious file inside the network in an open shared folder, then access the payload from that share to the victim machine.

The first step in Jayapaul's research process was setting up a remote Samba server for remote, public access. Samba is open source software typically installed on a Linux system, Sigler notes, and it allows the system to provide a share to a Windows network. Attackers would need to post their payload to the Samba server.

"The payload needs to be constructed like a Windows Update, so the attacker would have to do a little bit of prep ahead of time in order to create the package properly, so it looks like an update for Teams," Sigler explains. If someone had access to a Teams package from Microsoft's website, they could open it up, remove the updater, add the payload, and recompress it.

With the Samba server set up and the package created, it's just a matter of finding a foothold, he continues. Intruders may get in via phishing attack, user interaction, or another exploit. From there, they would use Teams as a downloader to bring in the payload and expand their access. 

"We have a legitimate binary on the system — Microsoft Teams — that we can use as that component," Sigler says. "It won't be flagged by any administrator because it's legitimate software for the network. … [You] don't need any sort of privilege escalation, don't need anything but access to that victim's account on the target system to download it."

Trustwave reached out to Microsoft as part of its responsible disclosure process. Microsoft said that this is a design issue and it does not plan to issue a patch because many of its customers distribute updates via UNC share. 

The company does recommend other workarounds, says Sigler. Businesses can lock down their registry so attackers can't add the SMB server as an authenticated server to download updates from, which would be one of the steps an attacker would have to complete in order to successfully pull off this attack. There are also standard best practices, Sigler adds. These include limiting SMB in and out of your perimeter network. If your firewall is blocking SMB out of your network, then an attacker can't point to a remote share to download malware.

Sigler also advises monitoring networks for Teams update activity, which can flag if this sort of attack is occurring on the network.

Related Content:



Register now for this year's fully virtual Black Hat USA, scheduled to take place August 1–6, and get more information about the event on the Black Hat website. Click for details on conference information and to register.

Kelly Sheridan is the Staff Editor at Dark Reading, where she focuses on cybersecurity news and analysis. She is a business technology journalist who previously reported for InformationWeek, where she covered Microsoft, and Insurance & Technology, where she covered financial ... View Full Bio

Recommended Reading:

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
7 Old IT Things Every New InfoSec Pro Should Know
Joan Goodchild, Staff Editor,  4/20/2021
Cloud-Native Businesses Struggle With Security
Robert Lemos, Contributing Writer,  5/6/2021
Defending Against Web Scraping Attacks
Rob Simon, Principal Security Consultant at TrustedSec,  5/7/2021
Register for Dark Reading Newsletters
White Papers
Current Issue
2021 Top Enterprise IT Trends
We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
Flash Poll
How Enterprises are Developing Secure Applications
How Enterprises are Developing Secure Applications
Recent breaches of third-party apps are driving many organizations to think harder about the security of their off-the-shelf software as they continue to move left in secure software development practices.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
PUBLISHED: 2021-05-17
The Portal Store module in Liferay Portal 7.0.0 through 7.3.5, and Liferay DXP 7.0 before fix pack 97, 7.1 before fix pack 21, 7.2 before fix pack 10 and 7.3 before fix pack 1 does not obfuscate the S3 store's proxy password, which allows attackers to steal the proxy password via man-in-the-middle a...
PUBLISHED: 2021-05-17
Cross-site scripting (XSS) vulnerability in the Site module's membership request administration pages in Liferay Portal 7.0.0 through 7.3.5, and Liferay DXP 7.0 before fix pack 97, 7.1 before fix pack 21, 7.2 before fix pack 10 and 7.3 before fix pack 1 allows remote attackers to inject arbitrary we...
PUBLISHED: 2021-05-17
Cross-site scripting (XSS) vulnerability in the Redirect module's redirection administration page in Liferay Portal 7.3.2 through 7.3.5, and Liferay DXP 7.3 before fix pack 1 allows remote attackers to inject arbitrary web script or HTML via the _com_liferay_redirect_web_internal_portlet_RedirectPor...
PUBLISHED: 2021-05-17
Cross-site scripting (XSS) vulnerability in the Asset module's category selector input field in Liferay Portal 7.3.5 and Liferay DXP 7.3 before fix pack 1, allows remote attackers to inject arbitrary web script or HTML via the _com_liferay_asset_categories_admin_web_portlet_AssetCategoriesAdminPortl...
PUBLISHED: 2021-05-17
Multiple SQL injection vulnerabilities in Liferay Portal 7.3.5 and Liferay DXP 7.3 before fix pack 1 allow remote authenticated users to execute arbitrary SQL commands via the classPKField parameter to (1) CommerceChannelRelFinder.countByC_C, or (2) CommerceChannelRelFinder.findByC_C.