Telegram Desktop Flaw Lets a Single Click Hijack Your Account

Telegram Desktop vulnerability allowed any user's file to be stolen

Telegram Desktop Flaw Lets a Single Click Hijack Your Account

A two-part vulnerability in Telegram Desktop through 7.2.8 turns a clicked link into arbitrary file read. The first flaw is command injection in the local socket protocol: a semicolon inside a URL splits into extra commands. The second is the internal interpret: scheme, which reads any file and sends it to a chat without authorization. Together they exfiltrate the tdata encryption keys, enabling full account takeover. Fixed in 7.2.9.

So a crafted link does not arrive as one instruction: it arrives as several.
  1. farhanhubble

    I once read The Bugs We Have to Kill: https://www.usenix.org/publications/login/aug15/bratus and one particular thing that has stuck with me forever:

    “Any sufficiently complex input format is indistinguishable from

    bytecode; the code receiving it is indistinguishable from a vir-

    tual machine.”

  2. bita_nidir

    Related: could we please stop, by default, allowing software to:

    a) access all your files, and

    b) roam the internet at will.

    That was somewhat OK in the 80s, but it hasn't been since.

  3. crossroadsguy

    One of the challenges with Telegram is - they regularly re-enable settings inside the app/account that you had specifically disabled. So at any point you don't know what is happening and what is not. Meaning, even if you didn't see a thing, a malicious file might be sitting all warm and fuzzy on your computer - among possible other things. I used to like the snappiness of this app (and it is still snappier than almost all other IM apps combined, by a margin), but after a while I realised it was a ticking time-bomb (to keep it installed on the desktop) and possibly a scammer safe haven, nothing else.

  4. SpacePortKnight

    I think it is one of the reasons why I am always hesitant to install any software on my windows pc. Web versions are often more than good enough.

  5. usr1106

    I don't use Telegram Desktop or Windows. But that's exactly the reason why I run Firefox in a firejail sandbox on Linux. The browser has only access to my Downloads folder. I know that it's considered untrusted and don't keep any files there for a long time.

  6. Panzerschrek

    It's not strictly-speaking a Telegram-specific vulnerability. It's a vulnerability of all modern desktop operating systems allowing any user process to read/write any user file. Ideally all programs should be isolated from the underlying filesystem and be able to read only their own files and files from per-program data directory (like downloads for a browser or Telegram-client).

  7. Narushia

    It's great that this writeup was published, but unfortunately the text is full of claudisms and made me close the tab pretty quickly.

  8. tptacek

    I don't like Telegram and don't think it should be considered a "secure messenger" in the sense end-to-end encrypted messengers are, but I don't think there's all that much to learn from basic clientside coding failures like this. All applications have these kinds of bugs.

  9. RachelF

    It looks very bad that Telegram took almost 3 months to fix this vulnerability.

    Reported 25 June

    Fixed 16 September

    I wonder why it took them so long?

  10. erelong

    I thought telegram was flagged as insecure like a decade ago, it's never really been "very secure"

    Like any number of articles like this: https://hackernoon.com/7-reason-why-telegram-is-insecure-by-...

More from this day

2026-10-10