124 points · by danso · 5y ago · 66 comments
- Microsoft released June 8 update claiming to fix a printer security bug - A security researcher believes that was their previously reported printer bug, releases a write up and PoC. - Between June 9 and June 21, PrintNightmare was a known issue with no fix. - An unsupported ACL mitigation started doing the rounds on social media. People quickly found out it broke a lot of stuff, and there have been plenty of reddit posts about random things not working. I had to revert this mitigation just to get last week's Exchange update to aply - A June 21 out of band update came out claiming to fix the issue, but the situation was complicated enough that people started building flow charts trying to decide what is/isn't vulnerable[0] - Microsoft ships a July 13 update wherein this is finally properly patched, provided some registry keys are left at default - The documentation originally published incorrect registry keys, causing confusion about whether people were vulnerable - It's identified several printer vendors, and even the Samba team, have recommended the "bad" options that make this update not work - A new print spooler privesc comes out yesterday
It's been an incredible mess for an organisation to stay on top of and now I've got vulnerability assessments telling me I should be disabling print spoolers when every user ever expects to be able to print.
[0] https://twitter.com/StanHacked/status/1410922404252168196
I bet with windows update being habitually turned off to prevent forced reboots, it will be a wave of exploiting when full details of the fix will be analysed.
It's likely there are more Windows machines now which have autoupdate disabled because of forced reboots than the amount of machines with default settings.
The decision to add forced reboot was one in line of many "shooting yourself in the foot" acts Microsoft did when it comes to software security.
There's a lot to discuss about those specific issues, but at the very core of it is: why is the printer spooler running as SYSTEM and why hasn't it been fixed a decade ago?
https://docs.microsoft.com/en-us/windows-server/security/win...
Print Spooler: OK to disable if not a print server or a DC
Not defending anything just hoping to provide useful insights.
Should we do a modern rewrite of the print spooler, maybe cut it up into different chunks following modern practices and use the less risky codepaths invented since it was built? No, printing is no longer critical path for many customers, so minimal budget for this software.
Should there be a separate fancy print spooler for the people who might actually want unprivileged print requests to result in magically installing privileged device drivers? Alas this would take a rewrite, which we can't do, see above.
Should the print spooler have SYSTEM? Alas the single print spooler we ended up with because of the above decision needs SYSTEM or it will not function as intended.
Should machines with no business printing anything need Print Spoolers (which get SYSTEM)? Alas the single print spooler we ended up with also performs necessary central clean-up that must take place on systems with no print spool.
Only when you zoom out and see the result is it obvious, we should spend some of our security budget getting rid of this arrangement, it's clearly a problem waiting to happen.
That was the PrintNightmare exploit. There don't seem to be any details on this one yet.
https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=windows+spo...
I don't know if there's anything different enough this time to cause them to go that direction.
I don't envy the poor buggers tasked with that. The printing subsystem has been accumulating cruft for decades.
Bold of you to assume they care.
Still a vulnerability but not comparable to the remote code one that was patched.
Social media people telling everyone to disable the printer spooler should just stop. Its not recommended nor needed for private user.
An attacker must have the ability to execute code on a victim system to exploit this vulnerability.
The workaround for this vulnerability is stopping and disabling the Print Spooler service
So you might not need to print on your DC, but your DC needs the spooler so that you can keep your printing system, healthy everywhere else... it's pretty much an indirect requirement.
> An attacker must have the ability to execute code on a victim system to exploit this vulnerability.
This is tough as print is a dumpster fire in general, and who knows what’s lurking.
In general, not much is wormable across the internet anymore due to most devices being behind NAT. Within many companies, there are very few firewalls, so with a wormable exploit any attacker who is running malware on one computer would be able to infect most/all other computers.
I wonder will if there will ever be a moment, a moment, where IT Admins revolt and tell the heads of corporate to rewrite their LOB applications as web apps and then deploy Chromebooks or Macs as clients because they can't stand nannying Windows anymore.