Skip to content
Account takeover Write-up Intermediate

Telegram Session Hijacking And How Mfa Can Help You

A malicious link led to a page with injected code that stole a Telegram session token, allowing an attacker to access the account without credentials or two-step verification. The attacker used a bot to repeatedly connect and kick other sessions, but the victim could regain control by quickly configuring MFA and then resetting it to close all sessions.

CyberPumpkin Follow

Published on systemweakness.com

I don't think many people will support her, but if you help, it will make her insanely happy

CyberPumpkin, on systemweakness.com

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

Impact

The attacker could access the victim's Telegram account without credentials or MFA and kick all other sessions, but the victim could regain control by quickly configuring and resetting MFA.

What the attacker needed

Victim clicks a malicious link; MFA not configured on the account

The fix

Users should configure MFA in advance; if a session is stolen, quickly set up MFA and then reset it to close all active sessions.

How it was found

  1. The victim receives a message with a link about a school vote.
  2. Clicking the link redirects to a page with injected code.
  3. The injected code sends a request to Telegram servers and obtains the session token.
  4. The attacker uses the stolen token to access the account without credentials or MFA.
  5. A bot connects every ~20 seconds and kicks all other sessions.
  6. The victim quickly configures MFA, then uses 'forgot password' to reset it, closing all active sessions including the attacker's.

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.

A session token is like a temporary key that keeps you logged in, so if someone steals it they can act as you without needing your password. Here, a link tricked the victim into visiting a page that grabbed this key, letting the attacker take over the Telegram account. The victim fought back by quickly setting up extra security (MFA) and then resetting it, which logged out all sessions including the attacker's.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.