We could have pwned Microsoft Teams with a GIF, claims Israeli infosec outfit
- Reference: 1587975606
- News link: https://www.theregister.co.uk/2020/04/27/microsoft_teams_gif_pwn_patch/
- Source link:
The pwn-with-GIF vuln was possible, [1]said Cyberark , thanks to two compromisable Microsoft subdomains along with a carefully crafted animated image file.
Although it was a responsibly disclosed theoretical vuln, and was not abused in the wild as far as is known, it illustrates that not all online collaboration platforms are as secure as one might hope.
"Even if an attacker doesn't gather much information from a Teams' account, they could use the account to traverse throughout an organization (just like a worm)," mused Cyberark researcher Omer Tsarfati.
The Israeli infosec outfit said it had alerted Redmond to the two subdomains, resulting in their DNS entries being tweaked. The rest of the Teams vuln was patched last Monday, 20 April.
Cyberark said that Teams fetches image content in messages in different ways. One of those, it said, involves using the device browser's resource loading, which it described as setting "an 'src' attribute of a URI to an HTML IMG tag" along with setting cookies.
After examining Teams' network traffic, Cyberark said its researchers discovered that one of those cookies contained a unique key needed to create an authentication token, which then allowed its crew access to "valuable" information, including the content of messages.
"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 [a named token used to authenticate the user to Teams for loading images] . After doing all of this, the attacker can steal the victim's Teams account data," said the research outfit.
From here it was straightforward to create a malicious GIF file that could be sent in a Teams message. By "sending an image to our victim with an 'src' attribute set to the compromised sub-domain via Teams chat," said Cyberark, "the victim's browser will try to load the image and will send the authtoken cookie to the compromised sub-domain."
With a copy of the cookie, the attacker can then extract images, files and so on from the targeted Team user's account.
Microsoft has been asked for comment.
El Reg analysed Teams in detail earlier this month from a [2]business usability perspective after new features were added. ®
Sponsored: [3]Forrester Build a Digital Experience Portfolio
[1] https://www.cyberark.com/threat-research-blog/beware-of-the-gif-account-takeover-vulnerability-in-microsoft-teams/
[2] https://www.theregister.co.uk/2020/04/08/microsoft_teams_improvements/
[3] https://go.theregister.co.uk/tl/1936/-8554/forrester-build-a-digital-experience-portfolio?td=wptl1936
Re: Seems like a lot of hoops
If you copy and paste an image yes it opens a preview in the chat window.
Other than that the typical Teams chat is spammed Gifs of Scooby Doo and Garfield memes.
Re: Seems like a lot of hoops
@Captain Scarlet : "Scooby Doo and Garfield"
When I used to use an instant messenger service to communicate with a colleague, our two favourite animated .gifs were tumbleweed and a bunny banging it's head against a wall. I don't think I need to explain either : -)
Re: Seems like a lot of hoops
"After doing all of this, the attacker can steal the victim's Teams account data"
Quite often that is their AD user account and password thanks to the convenient hookup between AD and Azure. There are rather a lot of hastily cobbled together remote desktops and so on around the world right now.
Seems like a lot of hoops
The whole process sounds rather simple to set up, but it's not exactly simple to execute - unless Teams automatically loads an image when sent a link.
Given that this is Microsoft we're talking about, that seems more than likely. Still, you have to be able to send the person a link. That means that you have to have the Teams user name or something like that. How easy is that to get if you're not in the company Teams list ?
Full disclosure : I don't use Teams, as you might have guessed.