this post was submitted on 12 Apr 2025
47 points (98.0% liked)

Cybersecurity

6985 readers
99 users here now

c/cybersecurity is a community centered on the cybersecurity and information security profession. You can come here to discuss news, post something interesting, or just chat with others.

THE RULES

Instance Rules

Community Rules

If you ask someone to hack your "friends" socials you're just going to get banned so don't do that.

Learn about hacking

Hack the Box

Try Hack Me

Pico Capture the flag

Other security-related communities [email protected] [email protected] [email protected] [email protected] [email protected]

Notable mention to [email protected]

founded 2 years ago
MODERATORS
top 22 comments
sorted by: hot top controversial new old
[–] [email protected] 40 points 2 days ago (2 children)

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

[–] [email protected] 11 points 2 days ago* (last edited 2 days ago) (2 children)

Or worse, (tinfoil hat on), they are planning on installing and abusing iis on everyone's PC. Ad delivery?

I don't see how this can be a security risk, I really want more details.

Cve: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21204

[–] [email protected] 14 points 2 days ago (1 children)

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

[–] [email protected] 5 points 2 days ago

Thats not better :(

[–] [email protected] 5 points 2 days ago (1 children)

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.

[–] [email protected] 4 points 2 days ago* (last edited 2 days ago) (1 children)

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?

[–] [email protected] 3 points 1 day 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.

[–] [email protected] 3 points 2 days ago (2 children)

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.

[–] [email protected] 19 points 2 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

[–] [email protected] 4 points 2 days ago (1 children)

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

[–] [email protected] -1 points 2 days ago (1 children)

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.

[–] [email protected] 5 points 2 days ago (1 children)

I feel like this is parody and I'm not getting the joke.

[–] [email protected] 4 points 2 days ago (1 children)

?

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.

[–] [email protected] 1 points 1 day ago (1 children)

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.

[–] [email protected] 1 points 1 day ago (1 children)

“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.

[–] [email protected] 1 points 1 day ago (1 children)

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.

[–] [email protected] 2 points 1 day ago (1 children)

Because frankly you don’t know enough to know any better.

I had more typed, but what's the point. I feel like I've said everything I really wanted to say on it. Like I said, enjoy your point of view and I hope it goes well for you.

[–] [email protected] 1 points 1 day ago

Nothing else you said mattered. 🤷

[–] [email protected] 18 points 2 days ago

You’re telling me that enterprise CTOs trust this company to run their entire IT infrastructure?

[–] [email protected] 19 points 2 days ago (1 children)

Uh oh, someone hardcoded c:\inetpub in their code 12 years ago.

[–] [email protected] 9 points 2 days ago (1 children)

Please, this is Windows. That's been sitting in the source code since 1993, but nobody at Microsoft knows why or how to remove it, so they just tell you to not touch the folder.

[–] [email protected] 7 points 1 day ago* (last edited 1 day ago)

Yea, like they said. 12 years ago.