• smeg@infosec.pub
    link
    fedilink
    English
    arrow-up
    161
    ·
    edit-2
    3 months ago

    tl;dr A network operator can perform a MitM attack on the built-in updater’s call-out checking for updates by faking the Notepad++ update website, telling it a new version is available at <malware URL> and then downloading and running the malware

    It requires a malicious network operator, or preexisting malware on the host.

    • muusemuuse@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 months ago

      One of the few moments safari is the easier option…

      -tap hide distracting items -tap the bullshit banner -it blows away dramatically

      • 9bananas@feddit.org
        link
        fedilink
        English
        arrow-up
        7
        ·
        3 months ago

        ublock has the same function; it’s the thunderbolt icon, which let’s you just zap away whatever html element offends you!

        …no fancy animation tho…is there a plugin that animates the ublock zapper? that would be very fun!

  • rowdy@piefed.social
    link
    fedilink
    English
    arrow-up
    103
    ·
    3 months ago

    we share data with our 188 partners

    That’s a no from me dawg

    The updater integrated into Notepad++ has allowed itself to be infiltrated by malware, which has been installed on some PCs. The developer of the powerful open-source text editor is responding with an update to Notepad++ v8.8.9. Users currently have to perform the update manually.

    In a news post on the Notepad++ website, developer Don Ho explains that “some security experts have reported incidents where internet traffic affecting Notepad++ was intercepted.” According to the post, investigations have revealed that traffic from the Notepad++ updater WinGUp “was occasionally redirected to malicious servers, leading to the download of compromised executable files.” IT security researcher Kevin Beaumont reports that at least three organizations “with interests in South Asia” have been targeted in this way.

    As Beaumont explains, the updater uses a version check that queries the URL “https://notepad-plus-plus.org/update/getDownloadUrl.php” and evaluates an XML file delivered through it. The updater uses the download URL listed in the XML file, saves the file in the %TEMP% folder, and executes it. Anyone who can intercept and manipulate this traffic can therefore change the download URL. Until version 8.8.7 of Notepad++, the developer used a self-signed certificate, which is available in the Github source code. This made it possible to create manipulated updates and push them onto victims. Since v8.8.7, however, Notepad++ relies on a legitimate GlobalSign certificate, and installing its own Notepad++ root certificate is no longer necessary.

    Remedy through updates

    With Notepad++ v8.8.8, the WinGUp updater now forces github.com as the download source. Version 8.8.9, released overnight on Wednesday, further hardens Notepad++ and WinGUp so that they correctly check the signature and certificates of downloaded installers during the update process. If the check fails, the update process is aborted. Don Ho notes that investigations are ongoing to determine how the traffic hijacking occurred in the observed cases.

    Kevin Beaumont also lists some indicators of compromise (IOCs). For example, connections from “gup.exe” to URLs other than “notepad-plus-plus.org”, “github.com”, and “release-assets.githubusercontent.com” are suspicious. Likewise, attention should be paid if “gup.exe” starts unusual processes – only “explorer.exe” and “npp*” related Notepad++ installers should run under it, which since versions 8.8.8 are also signed with a GlobalSign certificate. After the observed attacks, files named “update.exe” or “AutoUpdater.exe” (Notepad++ itself does not use these names at all) were apparently also found in the user’s TEMP directory, from which “gup.exe” downloaded and executed the updaters.

    ![Notepad++ 8.8.8 does not find the update yet](<data:image/svg+xml,%3Csvg xmlns=‘http://www.w3.org/2000/svg’ width=‘696px’ height=‘391px’ viewBox=‘0 0 696 391’%3E%3Crect x=‘0’ y=‘0’ width=‘696’ height=‘391’ fill=‘%23f2f2f2’%3E%3C/rect%3E%3C/svg%3E>)

    Notepad++ v8.8.8 currently does not find the update.

    Beaumont recommends updating to at least Notepad++ v8.8.8. However, version 8.8.9 is even further hardened. The integrated updater from Notepad++ v8.8.8 does not yet find the update, and “winget” also does not currently find a newer software version. However, the latest version is available as a manual download on the Notepad++ website.

    Notepad++ is frequently targeted by malicious actors because the software is popular and widely used. Last year, for example, Don Ho asked for help to get rid of a “parasitic website” that was creeping into the original Notepad++ site in Google search results. It had unscrupulous intentions. In general, fake sites often appear in search results offering virus-infected files.

    ![Jetzt heise security PRO entdecken](<data:image/svg+xml,%3Csvg xmlns=‘http://www.w3.org/2000/svg’ width=‘696px’ height=‘391px’ viewBox=‘0 0 696 391’%3E%3Crect x=‘0’ y=‘0’ width=‘696’ height=‘391’ fill=‘%23f2f2f2’%3E%3C/rect%3E%3C/svg%3E>)

    (dmk)

    This article was originally published inGerman. It was translated with technical assistance and editorially reviewed before publication.

    • Cobrachicken@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      87
      ·
      3 months ago

      Don’t whine about data sharing, just open it in a non-javascript browser. Perfectly readable.

      • rowdy@piefed.social
        link
        fedilink
        English
        arrow-up
        18
        ·
        3 months ago

        Mate you’re the only one whining. I got around the cookie banner just fine, and reposted here for others.

  • floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    45
    arrow-down
    1
    ·
    3 months ago

    Until version 8.8.7 of Notepad++, the developer used a self-signed certificate, which is available in the Github source code.

    That doesn’t sound wise.

  • flamiera@kbin.melroy.org
    link
    fedilink
    arrow-up
    38
    arrow-down
    2
    ·
    3 months ago

    OP, if people have to do the work for you in posting sources, consider this a learning lesson as to what not to do.

  • theherk@lemmy.world
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    3
    ·
    3 months ago

    Not accessible without accepting advertising cookies, like Healthline.

    • floquant@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      12
      arrow-down
      1
      ·
      3 months ago

      Zap the overlay with uBlock

      But yeah fuck the author and everyone else using the “pay or be tracked” scheme. If you want to show ads to non subscribers, fine. But there’s no reason to require tracking users to do so - if non-tracked ads are less profitable, take it up with the ad networks.

  • ren@reddthat.com
    link
    fedilink
    English
    arrow-up
    16
    ·
    3 months ago

    Until version 8.8.7 of Notepad++, the developer used a self-signed certificate, which is available in the Github source code. This made it possible to create manipulated updates and push them onto victims, as binaries signed this way cause a warning „Unknown Publisher“. Since v8.8.7, however, Notepad++ relies on a legitimate GlobalSign certificate, and installing its own Notepad++ root certificate is no longer necessary – if such a warning pops up, users should be alarmed.

    I don’t understand how this is relevant. Unless the attacker has either

    (a) somehow acquired the private key of the cert

    (b) replaced the cert delivered through the installer

    A self signed cert isn’t any worse. Both of these attack vectors still work with a public root CA. Or maybe notepad++ just forgot to validate the self signed cert against the one they delivered through their sources, just accepting any non-expired cert? That’s just a bug.

  • Kazumara@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    3 months ago

    I don’t get how this was exploited in practise.

    Even if the signatures on the downloaded packages weren’t checked properly, how would you modify the content of the XML file returned from https://notepad-plus-plus.org/update/getDownloadUrl.php?version=8.8.0 ? For that you’d have to break or MITM the TLS too, no?

    The usual case for TLS MITM is when a company decides DPI is more important than E2E encryption and they terminate all TLS on the firewall, but if the firewall is compromised there would be much easier avenues of entry other than notepad++

  • JTskulk@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    12
    ·
    3 months ago

    The updater for the open-source editor Notepad++ has installed malware on WINDOWS PCs. The Linux ecosystem doesn’t allow for this kind of network attack because of signing.

      • Muehe@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 months ago

        There are quite a lot of packages running it through wine, on AUR, as snap/flatpak, and probably more I didn’t see in my cursory search. So the question is does this exploit work on wine I guess.

  • CerebralHawks@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    3
    ·
    3 months ago

    Huh. Notepad++ is only for Windows?

    I used to use EditPad when I used Windows. There was something that royally pissed me off about it, but I can’t recall now. I know there was kind of a shenanigans with the name. EditPad Lite was free and there was an EditPad Pro, but IIRC the free one was just fine for most people (and I do believe in paying for software you enjoy using). I dunno, it did something, but now, mostly I just remember it being very good.

    I have a Mac now and we have TextEdit. It’s never made me want more from a notepad app. Notepad used to suck in Windows. We have it at work and I quite like it. It has Markdown support, but you can disable that if you want. It also has Copilot AI in it, but that can also be disabled. It has Dark Mode which is pretty much all I wanted from my notepad app. I actually quite like my Windows 11 setup at work, but I like my Macs at home a bit better. I also know I don’t have much room to criticise Windows if I’m not running Linux, and there’s no point in bragging about Linux from a Mint or Ubuntu installation; these days you kinda have to use Arch (which you built from source) to really call yourself a Linux user. The rest of us are just plebeians.

    Of course if you’re using N++ as an IDE, that’s different. I don’t even want line numbers (visual distraction).