By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
TrendSnapNewsTrendSnapNews
  • Home
Reading: Telegram fixes Windows app zero-day used to launch Python scripts
Share
Notification Show More
TrendSnapNewsTrendSnapNews
  • Home
Follow US
© 2024 All Rights Reserved |Powered By TrendSnapNews
TrendSnapNews > Uncategorized > Telegram fixes Windows app zero-day used to launch Python scripts
Uncategorized

Telegram fixes Windows app zero-day used to launch Python scripts

May 29, 2024 7 Min Read
Share
Telegram fixes Windows app zero-day used to launch Python scripts
SHARE

 

Telegram fixed a zero-day vulnerability in its Windows desktop application that could be used to bypass security warnings and automatically launch Python scripts.

Over the past few days, rumors have been circulating on X and hacking forums about an alleged remote code execution vulnerability in Telegram for Windows.

While some of these posts claimed it was a zero-click flaw, the videos demonstrating the alleged security warning bypass and RCE vulnerability clearly show someone clicking on shared media to launch the Windows calculator.

Telegram quickly disputed these claims, stating that they “can’t confirm that such a vulnerability exists” and that the video is likely a hoax.

Tweet from Telegram

However, the next day, a proof of concept exploit was shared on the XSS hacking forum explaining that a typo in the source code for Telegram for Windows could be exploited to send Python .pyzw files that bypass security warnings when clicked.

This caused the file to automatically be executed by Python without a warning from Telegram like it does for other executables, and was supposed to do for this file if it wasn’t for a typo.

To make matters worse, the proof of concept exploit disguised the Python file as a shared video, along with a thumbnail, that could be used to trick users into clicking on the fake video to watch it.

In a statement to BleepingComputer, Telegram rightfully disputes that the bug was a zero-click flaw but confirmed they fixed the “issue” in Telegram for Windows to prevent Python scripts from automatically launching when clicked. This was a server-side fix, which we explain in the next section

See also  Texas House Speaker Dade Phelan Narrowly Wins Republican Runoff

“Rumors about the existence of zero-click vulnerabilities in Telegram Desktop are inaccurate. Some “experts” recommended to “disable automatic downloads” on Telegram — there were no issues which could have been triggered by automatic downloads.

However, on Telegram Desktop, there was an issue that required the user to CLICK on a malicious file while having the Python interpreter installed on their computer. Contrary to earlier reports, this was not a zero-click vulnerability and it could affect only a tiny fraction of our user base: less than 0.01% of our users have Python installed and use the relevant version of Telegram for Desktop. 

A server-side fix has been applied to ensure that even this issue no longer reproduces, so all versions of Telegram Desktop (including all older ones) no longer have this issue.”

❖ Telegram

BleepingComputer asked Telegram how they know what software is installed on user’s Windows devices, as this type of data is not mentioned in their Privacy Policy.

The Telegram vulnerability

The Telegram Desktop client keeps track of a list of file extensions associated with risky files, such as executable files. 

When someone sends one of these file types in Telegram, and a user clicks on the file, instead of automatically launching in the associated program in Windows, Telegram first displays the following security warning.

“This file has the extension .exe. It may harm your computer. Are you sure you want to run it?,” reads the Telegram warning.

Security warning when opening risk executables
Security warning when opening risk executables
Source: BleepingComputer

However, unknown file types shared in Telegram will automatically be launched in Windows, letting the operating system decide what program to use.

See also  The best accessories for your Steam Deck OLED and LCD

When Python for Windows is installed, it will associate the .pyzw file extension with the Python executable, causing Python to execute the scripts automatically when the file is double-clicked.

The .pyzw extension is for Python zipapps, which are self-contained Python programs contained within ZIP archives.

The Telegram developers were aware that these types of executables should be considered risky and added it to the list of executable file extensions.

Unfortunately, when they added the extension, they made a typo, entering the extension as ‘pywz‘ rather than the correct spelling of ‘pyzw‘.

Fixing the spelling for the .pyzw Python extension
Fixing the spelling for the .pyzw Python extension
Source: BleepingComputer.com

Therefore, when those files were sent over Telegram and clicked on, they were automatically launched by Python if it was installed in Windows.

This effectively allows attackers to bypass security warnings and remotely execute code on a target’s Windows device if they can trick them into opening the file.

To masquerade the file, researchers devised using a Telegram bot to send the file with a mime type of ‘video/mp4,’ causing Telegram to display the file as a shared video.

If a user clicks on the video to watch it, the script will automatically be launched through Python for Windows.

BleepingComputer tested this exploit with cybersecurity researcher AabyssZG, who also shared demonstrations on X.

Using an older version of Telegram, BleepingComputer received ‘video.pywz’ file from the researcher disguised as a mp4 video. This file simply contains Python code to open a command prompt, as shown below.

video.pyzw proof-of-concept exploit
video.pyzw proof-of-concept exploit
Source: BleepingComputer

However, as you can see below, when you click on the video to watch it, Python automatically executes the script, which opens the command prompt. Note that we redacted the video thumbnail as it’s slightly NSFW.

Demonstration of Telegram bug to open a command prompt
Demonstration of Telegram bug to open a command prompt
Source: BleepingComputer

The bug was reported to Telegram on April 10th, and they fixed it by correcting the extension spelling in the ‘data_document_resolver.cpp’ source code file.

See also  Kacey Musgrave’s Makes Surprise Appearance at Zach Bryan Show: Watch

However, this fix does not appear to be live as of yet, as the warnings do not appear when you click on the file to launch it.

Instead, Telegram utilized a server-side fix that appends the .untrusted extension to pyzw files, which, when clicked, will cause Windows to ask what program you wish to use to open them rather than automatically launching in Python.

Telegram's server-side fix
Telegram’s server-side fix
Source: BleepingComputer

Future versions of the Telegram Desktop app should include the security warning message rather than appending the “.untrusted” extension, adding a bit more security to the process.

You Might Also Like

The King of Fighters 15 – Vice and Mature Announced for December 2024

Lego Hill Climb Adventures is a charming, simplified Trials

France National Assembly’s reelected speaker Braun-Pivet to cohabit with New Popular Front

DeFi Protocol Rho Markets Suffers $7.6 Million Loss Scare With Gray Hat Hackers

US Calls on Chinese Regime to End Its 25-Year Persecution of Falun Gong

Share This Article
Facebook Twitter Copy Link
Previous Article Alexander Volkanovski vs Ilia Topuria Prize Money: How Much Money Will The UFC 298 Main Event Winner Make? Alexander Volkanovski vs Ilia Topuria Prize Money: How Much Money Will The UFC 298 Main Event Winner Make?
Next Article Undetectable AI Plagiarism Checker Tool Review: Is It Accurate Undetectable AI Plagiarism Checker Tool Review: Is It Accurate
Leave a comment Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

The King of Fighters 15 – Vice and Mature Announced for December 2024
The King of Fighters 15 – Vice and Mature Announced for December 2024
Uncategorized
Lego Hill Climb Adventures is a charming, simplified Trials
Lego Hill Climb Adventures is a charming, simplified Trials
Uncategorized
France National Assembly’s reelected speaker Braun-Pivet to cohabit with New Popular Front
France National Assembly’s reelected speaker Braun-Pivet to cohabit with New Popular Front
Uncategorized
DeFi Protocol Rho Markets Suffers .6 Million Loss Scare With Gray Hat Hackers
DeFi Protocol Rho Markets Suffers $7.6 Million Loss Scare With Gray Hat Hackers
Uncategorized
US Calls on Chinese Regime to End Its 25-Year Persecution of Falun Gong
US Calls on Chinese Regime to End Its 25-Year Persecution of Falun Gong
Uncategorized
The AI boom has an unlikely early winner: Wonky consultants
The AI boom has an unlikely early winner: Wonky consultants
Uncategorized

You Might Also Like

The King of Fighters 15 – Vice and Mature Announced for December 2024
Uncategorized

The King of Fighters 15 – Vice and Mature Announced for December 2024

July 20, 2024
Lego Hill Climb Adventures is a charming, simplified Trials
Uncategorized

Lego Hill Climb Adventures is a charming, simplified Trials

July 20, 2024
France National Assembly’s reelected speaker Braun-Pivet to cohabit with New Popular Front
Uncategorized

France National Assembly’s reelected speaker Braun-Pivet to cohabit with New Popular Front

July 20, 2024
DeFi Protocol Rho Markets Suffers .6 Million Loss Scare With Gray Hat Hackers
Uncategorized

DeFi Protocol Rho Markets Suffers $7.6 Million Loss Scare With Gray Hat Hackers

July 20, 2024

About Us

Welcome to TrendSnapNews, your go-to destination for the latest updates and insightful analysis on the world’s most pressing topics. At TrendSnapNews, we are committed to delivering accurate, timely, and engaging news that keeps you informed and empowered in an ever-changing world.

Legal Pages

  • About Us
  • Contact US
  • Disclaimer
  • Privacy Policy
  • Terms of Service
  • About Us
  • Contact US
  • Disclaimer
  • Privacy Policy
  • Terms of Service

Trending News

Helicopter carrying Iran's president apparently crashes in mountainous region

Helicopter carrying Iran's president apparently crashes in mountainous region

Para rowing – Paralympic power

Para rowing – Paralympic power

‘Portal’ installations in NYC, Dublin temporarily closed due to 'inappropriate behavior'

‘Portal’ installations in NYC, Dublin temporarily closed due to 'inappropriate behavior'

Helicopter carrying Iran's president apparently crashes in mountainous region
Helicopter carrying Iran's president apparently crashes in mountainous region
May 26, 2024
Para rowing – Paralympic power
Para rowing – Paralympic power
May 26, 2024
‘Portal’ installations in NYC, Dublin temporarily closed due to 'inappropriate behavior'
‘Portal’ installations in NYC, Dublin temporarily closed due to 'inappropriate behavior'
May 26, 2024
Stunning meteor lights up the sky over Europe
Stunning meteor lights up the sky over Europe
May 26, 2024
© 2024 All Rights Reserved |Powered By TrendSnapNews
trendsnapnews
Welcome Back!

Sign in to your account

Lost your password?