• besselj@lemmy.ca
    link
    fedilink
    English
    arrow-up
    41
    arrow-down
    1
    ·
    3 days ago

    Sounds like the OS is put together with duct tape if deleting an empty folder can break things so easily

      • besselj@lemmy.ca
        link
        fedilink
        English
        arrow-up
        14
        ·
        3 days ago

        Another possible explanation from Hanlon’s razor: MS is going all-in on vibe coding

      • adarza@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 days ago

        it’s nothing ‘new’. i have encountered empty inetpub folders frequently, on systems with no business having it in the first place… for years now.

        • CameronDev@programming.dev
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          3 days ago

          I wonder if they were infected with something that was exploiting that CVE?

          Edit: Here is another tinfoil theory: the windows security subsystems special cases inetpub to allow all executables. If the path doesn’t exist, attackers can drop binaries in there to bypass security/codesigning etc. By creating it as SYSTEM, MS is ensuring that it can’t be written to without SYSTEM privs?

          • sylver_dragon@lemmy.world
            link
            fedilink
            English
            arrow-up
            3
            ·
            3 days ago

            Edit: Here is another tinfoil theory: the windows security subsystems special cases inetpub to allow all executables. If the path doesn’t exist, attackers can drop binaries in there to bypass security/codesigning etc. By creating it as SYSTEM, MS is ensuring that it can’t be written to without SYSTEM privs?

            Ya, I’d bet on something similar. According to the CVE, the vulnerability is around “Improper link resolution before file access”. My bet is that there is something hardcoded somewhere which assumes the existence of this folder. If it doesn’t exist, this can let the attacker get something in place which then gets executed with SYSTEM permissions, leading to privilege escalation. Not the worst thing in the world, for most users. But, it would be a problem in an enterprise environment where part of the security model is users not having local admin.

    • PhilipTheBucket@ponder.cat
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      4
      ·
      3 days ago

      Deleting random stuff from your system that the OS put there, because “it’s empty so surely it is fine”, is generally not a recipe for success.

      • besselj@lemmy.ca
        link
        fedilink
        English
        arrow-up
        19
        ·
        3 days ago

        Neither is putting random system files/folders in the C: drive outside of where they need to be, like in the Windows folder

      • atzanteol@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        3 days ago

        Yeah… This reeks of stupidity, though. It’s a folder used by iis but you need it even if iis isn’t installed.

        • PhilipTheBucket@ponder.cat
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          3
          ·
          3 days ago

          Yeah. It’s not even a matter of “do you need it.” I don’t need both /var/tmp and /tmp. I only need one. But, if I respond to that by deciding to delete one or the other, some stuff will fuck up. That’s how computers work.

            • PhilipTheBucket@ponder.cat
              link
              fedilink
              English
              arrow-up
              5
              arrow-down
              1
              ·
              3 days ago

              ?

              I’m just being serious. If your software has some files and directories, and you start fucking with them, it might react badly. It doesn’t really matter if you feel like the existence or layout of them is unjustified in some way. Just let them be, or else switch to some other software, or else take responsibility for making sure stuff won’t break from you fucking with them. Those are the options. “Delete it on purpose and then whine about how it shouldn’t have been set up that way in the first place, if stuff breaks” isn’t one of the options.

              Also, it’s kind of a side note, but it’s also weird to me that this is the hill to die on that Windows is up to something. Yes. It’s been openly spying on you, degrading its own functionality for amusement, and hijacking your computer to do messed up stuff for a long time. Making an empty directory in the root of C: isn’t something you need to get any level of panicked about in addition. There’s other stuff you can worry about.

              • atzanteol@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                1
                ·
                3 days ago

                I’m just being serious. If your software has some files and directories, and you start fucking with them, it might react badly. It doesn’t really matter if you feel like the existence or layout of them is unjustified in some way. Just let them be, or else switch to some other software, or else take responsibility for making sure stuff won’t break from you fucking with them. Those are the options. “Delete it on purpose and then whine about how it shouldn’t have been set up that way in the first place, if stuff breaks” isn’t one of the options.

                “Never delete anything on your computer because it might be needed”?

                This isn’t “some random directory” as you’ve claimed before. It’s a specific directory used by IIS. It’s akin to /var/www for apache. If you uninstalled apache you would, and should, delete /var/www to cleanup afterwards.

                If you uninstall IIS you should be able to delete C:\inetpub to cleanup.

                That it causes a security problem you didn’t know about is not your fault. It’s Microsoft’s fault. That is a stupid bug to have and they need to fix it properly.

                • PhilipTheBucket@ponder.cat
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  3 days ago

                  “Never delete anything on your computer because it might be needed”?

                  No. That’s a whole new sentence.

                  I gave two other options, besides that one option.

                  Also, even within the one option, if at some point I upgraded my Linux system and I got an empty /var/www directory, it would never in a million years occur to me to say “Well that’s stupid I don’t want that directory” and remove it.

                  I might think it’s stupid that it’s there when I don’t have apache. But, deleting it because it’s stupid that it’s there… you know what? I feel like I already addressed this with the /tmp and /var/tmp example. I can feel that it’s stupid that there’s two of those instead of one. I might be right. You’re not wrong about it being silly that MS has done this. But reacting to that feeling by deleting things until my system matches how I think they should have set things up is a recipe for broken stuff.

                  I’ve reiterated this point three times now, which is enough. You seem committed to not absorbing it. Good luck with your computers in the future. I hope your system administration philosophy serves you well.

                  • atzanteol@sh.itjust.works
                    link
                    fedilink
                    English
                    arrow-up
                    1
                    ·
                    3 days ago

                    Also, even within the one option, if at some point I upgraded my Linux system and I got an empty /var/www directory, it would never in a million years occur to me to say “Well that’s stupid I don’t want that directory” and remove it.

                    Because frankly you don’t know enough to know any better. Sorry if that sounds condescending, but it’s the truth. You should be able to delete /var/www without it causing any security problems. That you don’t know that isn’t your fault, it’s experience.