Story Details

  • How to gain code execution on hundreds of millions of people and popular apps

    Posted: 2025-02-28 21:05:35

    The blog post details a vulnerability in the "todesktop" protocol handler, used by numerous applications and websites to open links directly in desktop applications. By crafting malicious links using this protocol, an attacker can execute arbitrary commands on a victim's machine simply by getting them to click the link. This affects any application that registers a custom todesktop handler without properly sanitizing user-supplied input, including popular chat platforms, email clients, and web browsers. This vulnerability exposes hundreds of millions of users to potential remote code execution attacks. The author demonstrates practical exploits against several popular applications, emphasizing the severity and widespread nature of this issue. They urge developers to immediately review and secure their implementations of the todesktop protocol handler.

    Summary of Comments ( 20 )
    https://news.ycombinator.com/item?id=43210858

    Hacker News users discussed the practicality and ethics of the "todesktop" protocol, which allows websites to launch desktop apps. Several commenters pointed out existing similar functionalities like URL schemes and Progressive Web Apps (PWAs), questioning the novelty and necessity of todesktop. Concerns were raised about security implications, particularly the potential for malicious websites to exploit the protocol for unauthorized app launches. Some suggested that proper sandboxing and user confirmation could mitigate these risks, while others remained skeptical about the overall benefit outweighing the security concerns. The discussion also touched upon the potential for abuse by advertisers and the lack of clear benefits compared to existing solutions. A few commenters expressed interest in legitimate use cases, like streamlining workflows, but overall the sentiment leaned towards caution and skepticism due to the potential for malicious exploitation.