How Telegram’s Bot API Enables Real-Time 2FA Theft and Account
A Telegram bot tricks users into entering their Telegram two-factor authentication codes, which are then forwarded to the attacker in real time. The attacker can use the stolen code to log into the victim's account and take it over.
Published on medium.com
Telegram Bots Are Being Weaponized to Steal 2FA Codes — And Telegram Isn’t Stopping It
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 platform does not warn users or restrict bots from requesting and receiving authentication codes, so the chat interface gives malicious bots the same trust as system messages.
Impact
An attacker could take over a victim's Telegram account, reading messages and contacts, and the same trick could be used against codes from banks, Instagram, Google, or crypto wallets.
What the attacker needed
Victim uses Telegram; victim has 2FA enabled; victim is lured to a malicious bot; victim enters the code in the bot chat
The fix
Telegram should warn users when they type verification codes into bot chats, stop bots from requesting or logging such codes, and improve bot verification.
How it was found
- The attacker shares a bot that promises adult content.
- The bot asks the user to verify by entering their Telegram code.
- The user enters the code, which is forwarded to the attacker.
- The attacker uses the code to log into the victim's Telegram account and take full control.
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.
Two-factor authentication (2FA) is a second password, often a short code sent to your phone, that keeps your account safe even if someone knows your password. Here, a fake bot on Telegram asks you to type that code into the chat, and the person behind the bot reads it and uses it to log in as you. Telegram says this is just phishing and won't act, but the author argues the app should warn users or stop bots from asking for such codes.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.