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

(beaksec.github.io)

37 points | by g-b-r 2 hours ago

6 comments

  • Panzerschrek 17 minutes ago
    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).
    • g-b-r 7 minutes ago
      It is.

      Not all user processes upload those files somewhere surreptitiously.

      Of course operating systems should support that isolation (hopefully in some better way than the hell that smartphones are), but it's not like Telegram can blame the OS for this vulnerability.

  • opengrass 7 minutes ago
    doas jexec -U opengrass tellyjail env DISPLAY=:0 Telegram
  • erelong 49 minutes ago
    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-...

    • g-b-r 45 minutes ago
      Absolutely, but mostly for their protocols, statements, people and infrastructure.

      A file exfiltration vulnerability is still noteworthy.

  • KingOfCoders 30 minutes ago
    It's not a bug it's a feature.
  • g-b-r 2 hours ago
    This link has already been posted with https://news.ycombinator.com/item?id=50019667 , but that post's title ("Telegram Desktop: one-click account takeover") doesn't say that the vulnerability allowed also any user-accessible file on the disk to be stolen.

    This aspect is also not highlighted much in the article, which weirdly mostly focuses on the account takeover.

    To me it seems something remarkable enough to warrant reposting the link with a different title.

    Somewhat astonishingly, the core of the vulnerability comes from an internal url scheme added to Telegram to... help them publish their releases on their channel.

    The Telegram developers saw no better way to do that than adding an internal tool which uploads any file it's told to.

    Everyone else publishing their app on Telegram is able to do that with a script, but they had to do it that way.

    It's true that it was exploitable only in a somewhat convoluted way, but still, it's an obviously dangerous feature.

    Anyhow, yes, clicking on a link in Telegram Desktop was enough to have any user's file exfiltrated and to access or take over their account.