Telegram Remote Code Execution Zero-Day Vulnerability
A vulnerability in Telegram's Windows client allowed attackers to use a right-to-left override character to disguise malicious executable files as images. When a victim clicked and ran the file, attackers could install malware, including remote control tools and cryptocurrency miners.
securelist.com
Published on securelist.com
In October 2017, we learned of a vulnerability in Telegram Messenger’s Windows client that was being exploited in the wild. It involves the use of a classic right-to-left override attack when a user sends files over the messenger service.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Telegram Windows client did not properly handle the Unicode right-to-left override character when displaying filenames, allowing attackers to spoof file extensions.
Impact
Attackers could execute arbitrary code on the victim's system, leading to remote control, data theft, and cryptocurrency mining.
What the attacker needed
Victim uses Telegram Windows client; Victim clicks on the file; Victim clicks 'Run' on security warning
The fix
The vulnerability was fixed after Kaspersky informed Telegram developers.
How it was found
- The attacker renames a malicious executable file to include the RLO character so it appears as an image file.
- The attacker sends the file to the victim via Telegram.
- The victim sees what appears to be an image file and clicks on it.
- A Windows security warning is displayed (if not disabled).
- If the victim clicks 'Run', the malicious file executes.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes a trick where a special invisible character flips the order of letters in a filename. Attackers used it to make a harmful program look like a harmless picture file. When the victim opened it, their computer could be taken over or used to mine cryptocurrency.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.