News for hackers. Stuff that matters.
Re:Microsoft Issues Emergency Patch for Windows Flaw by Someone1234 on Wednesday July 07, 2021 @10:57AM (#27761864)
I hope this issue is the motivator Microsoft needs to finally do something about their awful printing stack. Aside from taking it out of SYSTEM scope(!), the whole thing needs and has needed substantial modernization for a long time now (and hiding parts of it using the new Settings app is a very weak abstraction).

Microsoft like a lot of big techs needs to start rewarding people for maintaining/updating legacy stuff, rather than promoting/rewarding people for new shinies while the technical debt grows out of control. The printer stack which has barely received an update since Windows XP is a perfect example.

Re:Microsoft Issues Emergency Patch for Windows Flaw by zinekeller on Wednesday July 07, 2021 @11:05AM (#27761954)
I mean, they seriously done many things in Windows 10 (and analogous servers) to improve security without too much breakage, like moving font processing from kernel-level to user-level (n.b. in the process, they have thrown Adobe code). Print spooler is tricky though: even if the official design of the API theoretically allows it to run user-level, ask users of HP products (including business ones) how many times their computer crash due to weirdness in HP drivers. (Why does the HP printing drivers run in kernel-level mode? I don't know!) I'm pretty sure that nothing will happen when the spooler is moved to user-side processing, right? (In all seriousness, the drivers will break and probably crash the system. These products are officially out-of-support, so short of Microsoft paying HP to revamp the drivers nothing will happen.)

In all probability, probably even Microsoft is contemplating such move but breaking a lot of stuff is reputationally damaging to them, even if it's not really their fault in this case. Removing SafeROM is easier because it's just grumbling gamers who can probably patch up Windows 7, but imagine the support calls when the print spooler, a critical component, is moved. Even when a rational mind would put the blame on HP (et al., it's not just HP designing "weird" drivers), the problem will appear due to a Microsoft change and therefore Microsoft gets the blame.

Re:Microsoft Issues Emergency Patch for Windows Flaw by freeone3000 on Wednesday July 07, 2021 @11:20AM (#27762111)
It's getting to the point where a sane mitigation would be to spin up a Windows 10 instance in Hyper-V, running the print spooler and driver in that, and using USB/ethernet passthrough!
Re:Microsoft Issues Emergency Patch for Windows Flaw by zinekeller on Wednesday July 07, 2021 @11:23AM (#27762153)
Some might react and say "just move to Linux (even only the servers!)" and while I'll say NeXT/Apple's design of CUPS is great, it's harder to get a good Linux printer driver that's designed for business use (HPLIP is... painful, and I'm pretty sure that's out of most support contracts).
Re:Microsoft Issues Emergency Patch for Windows Flaw by gerdesj on Wednesday July 07, 2021 @12:58PM (#27763284)
De-install HPLIP and use "IPP Everywhere" if you can. Since I've done that I've had reliable printing that doesn't break on package updates. Given that I use Arch, that was an occasional surprise finale to an update session. It usually started with my SO having an urgent print job to do.

Also, put your preferred paper size in /etc/papersize if you are not letter size inclined.

Re:Microsoft Issues Emergency Patch for Windows Flaw by merb on Wednesday July 07, 2021 @01:22PM (#27763553)
xerox color machines with fiery controllers aren't that well working with ipp, the last time I worked with them (3 years ago) it crashed pretty often, which meant a full reboot was needed which takes like 5+ minutes on these which was not possible. lpd is still super simple and works super well on these machines, even when using non standard ports
Re:Microsoft Issues Emergency Patch for Windows Flaw by gerdesj on Wednesday July 07, 2021 @07:30PM (#27766951)
We all have anecdotes with regards printers 8) I think that nmap still refuses to pound away at the JetDirect port ...

... OK I've just tested that against my home HP MFP and 9100/tcp shows in the results.

If lpd does it for you on Xerox printers, then fine: use that. I was discussing HPLIP ie getting rid of a Hewlett Packard thing!

Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Wednesday July 07, 2021 @01:51PM (#27763884)
The trouble with LPD is there is no support for authentication, authorisation or encryption.
Re:Microsoft Issues Emergency Patch for Windows Flaw by temac on Wednesday July 07, 2021 @11:25AM (#27762168)
Why even running a Windows 10 instance in that case? Esp. if it's for backward compat with old crap; run a Win 2k, it will be lighter. And only marginally less maintained, which does not even matter if you isolate like that anyway.
Re:Microsoft Issues Emergency Patch for Windows Flaw by whereistimbo on Wednesday July 07, 2021 @01:25PM (#27763591)
You could request Windows 2000 if you are: Volume License consumer (through downgrade) or Visual Studio subscriber (not for commercial use)
Re:Microsoft Issues Emergency Patch for Windows Flaw by whereistimbo on Wednesday July 07, 2021 @11:40AM (#27762329)
But could you obtain it legally though?
Re:Microsoft Issues Emergency Patch for Windows Flaw by gambiting on Wednesday July 07, 2021 @12:37PM (#27763032)
It wasn't hugely advertised, but Win 7 had something called "XP Mode" where it would literally start windows XP in a VM completely in the background, and any program you wanted to start would actually run inside that VM, with windows drawing the application window like a native Win 7 app. It was magical in how well that worked. And yeah, MS just provided a special XP image for this, you didn't need a separate licence for it.
Re:Microsoft Issues Emergency Patch for Windows Flaw by tinus_hn on Wednesday July 07, 2021 @02:08PM (#27764073)
Interesting how crashes caused by printer drivers in the kernel are an argument against moving them to user space where they can’t cause crashes
Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Wednesday July 07, 2021 @12:12PM (#27762744)
>Why does the HP printing drivers run in kernel-mode? I don't know!

Printer drivers haven't run in the kernel since NT 4.0.

Re:Microsoft Issues Emergency Patch for Windows Flaw by zinekeller on Wednesday July 07, 2021 @12:26PM (#27762896)
> Printer drivers haven't run in the kernel since NT 4.0.

I wish that's true, and the APIs are there (and should be used!), but except for incompetence I don't know how some drivers still have that kernel-side code (unless DRM? And if it is, why?)

I even thought that the 64-bit and Vista driver reset have banished kernel-level drivers, but in the past 6 months I still see printer drivers with kernel-level components. I just scratch my head why?

(Some of them are for PCI (yes, not a typo) connector, which is reasonable but weird for a printer. Others are running to printer port and USB but the kernel-level components are still there, active according to Device Manager).

Re:Microsoft Issues Emergency Patch for Windows Flaw by cogman10 on Wednesday July 07, 2021 @01:31PM (#27763669)
Oh I can tell you exactly why, particularly because I've worked with a bunch of ex HP printer devs.

"Hey we should upgrade to the latest standards!"

"Why?"

"Because they are safer!"

"Yeah, but it might break things"

"But it's safer!"

"Yeah, but the current shit is working. Don't mess with a working thing".

It's practically a religion there. I interned there years ago, it was a momentous task getting internal people to move from IE 7 to firefox, chrome, or IE8. What I'd done was improve one of their internal tools with an updated javascript library. However, it ran like ass on IE 7 and perfectly fine on pretty much everything else.

Re:Microsoft Issues Emergency Patch for Windows Flaw by temac on Wednesday July 07, 2021 @11:15AM (#27762054)
> Aside from taking it out of SYSTEM scope(!)

Windows does all kind of random things at SYSTEM scope and maybe for most of it, it is a terrible idea; yet they think that somehow VBS will save the world, and do not give a shit about the obvious existing shortcomings of their stack... At one point a virus could exploit a bug in the MS Defender AV engine and ironically execute under SYSTEM by just being scanned (!!) and they reacted by introducing MP_FORCE_USE_SANDBOX, however it seems that instead of quickly extending the usage of that sandbox to every user they... now just spawn the worker process (if the env var is there) but it does not do anything anymore :/

I get that engineers are attracted to working on new shinny things, but at one point not maintaining the old stuff (or even just properly removing!) under the excuse that the new unfinished one is more important is just lack of vaguely competent project management, and overall lack of professionalism. Even maybe of individual contributors: if you do not push strongly to get the shit cleaned-up in priority, you are as guilty as the people directing you to work on other (likely soon to be deprecated and unmaintained too) things.

Re:Microsoft Issues Emergency Patch for Windows Flaw by hulitu on Wednesday July 07, 2021 @11:56AM (#27762546)
Not wanting to defend MS employees here, but maybe they are paid based on the new shiny things they produce, not based on fixing old stuff. KPI forever
Re:Microsoft Issues Emergency Patch for Windows Flaw by jcpham2 on Wednesday July 07, 2021 @12:16PM (#27762788)
I found this funny because a large portion of my job has morphed into designing reports for different departments to measure performance. It boils down to a lot of binary yes/no formulas in excel and measuring those yes/no as a performance indicator.

KPI forever indeed. I never expected as a sysadmin I’d be creating excel reports to measure the performance of others.

Re:Microsoft Issues Emergency Patch for Windows Flaw by jeffbee on Wednesday July 07, 2021 @03:40PM (#27764987)
And when you say "at one point" you mean as recently as today.

https://twitter.com/taviso/status/1412809764363411457

Re:Microsoft Issues Emergency Patch for Windows Flaw by temac on Wednesday July 07, 2021 @05:41PM (#27766045)
Lol this is getting ridiculous. I don't know why they stopped working on their Defender architecture, the sandbox seemed a good idea. Maybe they have been told to work on Win11 VBS processor requirement wankery instead, leaving that class of problems unfixed for years.
Re:Microsoft Issues Emergency Patch for Windows Flaw by londons_explore on Wednesday July 07, 2021 @11:28AM (#27762205)
I think they might be hoping that printing, and print spooling, might be going away.

In the future, applications might be able to communicate directly with a network printer via TCP/HTTP. The printer itself does spooling, queueing, management, etc. The OS doesn't need to be involved at all. "Legacy Printer" support can be disabled by default.

If you need to change ink cartridges you either do it on the screen of the printer, or install the manufacturers tool which also just communicates over TCP/HTTP and doesn't use any special interfaces.

Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Wednesday July 07, 2021 @01:53PM (#27763914)
More likely they will try and find a way to insert Azure into the process, like this:

https://www.microsoft.com/en-ww/microsoft-365/windows/univer...

Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Wednesday July 07, 2021 @12:14PM (#27762774)
>The printer stack which has barely received an update since Windows XP is a perfect example.

The big change was the shift to XPS based drivers in Vista (which was back ported to XP). The trouble is the printer manufacturers have largely ignored this and continued to produce GDI based drivers. I sometimes wonder if Windows has too much backwards compatibility.

Re:Microsoft Issues Emergency Patch for Windows Flaw by WorldMaker on Wednesday July 07, 2021 @01:12PM (#27763437)
Allegedly Vista was going to 100% force XPS drivers, but because they dropped backward compatibility in the network and sound stacks they got a lot of push back that they were crossing too many backwards compatible lines and the printer companies were the ones with the most skin in the game (and cash warchests from ink cartridge sales; and yet the least incentives to update old drivers with better software) so they backed off.

Appearances are they tried to break printer driver compatibility again in Windows 8 (which had some smart ideas on how to modernize the print stack but never got off the ground with them because no drivers adapted to the new stack; and then Windows 10 dropped most of what made the new stack special including not just moving everything into user space but moving everything into app sandboxes; no more annoying printer "background app" notifications and ads would have been amazing) and got worse pushback from the entrenched interests.

Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Wednesday July 07, 2021 @01:48PM (#27763856)
You would think Microsoft would have enough might to push back on that. Which printer manufacturer is going to sell a printer without drivers for the dominant operating system.
Re:Microsoft Issues Emergency Patch for Windows Flaw by WorldMaker on Wednesday July 07, 2021 @05:19PM (#27765840)
Unfortunately, it would be the consumers that suffer if Microsoft did push back. Since somewhere in the 90s consumer printer drivers have been as much about DRM for ink cartridges as anything else. Microsoft isn't allowed the keys to the DRM so they can't make generic drivers for old hardware. The printer companies would love an excuse to force everyone off old hardware to new hardware with fancier DRM.

Also, in terms of naming and shaming specific manufacturers, HP/HPE alone has already been known to hold entire industries hostage to old (unsupported) versions of Windows or the various whims of their AIX/HP-UX Unix-based OS efforts rather than support up-to-date drivers on Windows for printers and plotters (and medical equipment and other electronics). It really is easy to imagine them telling the same bad infosec advice to consumers if Microsoft were to break compatibility in their printer drivers. No one wants the chaos of supporting their family members trying to stick on an ancient unsupported Windows XP version simply because their reliable old inkjet printer told them to. Sure everyone thinks they want the Year of Linux on the Desktop, but no one actually wants to help a friend dual boot into HP-UX, and debug cups dump output for them, just to print something twice a year.

Re:Microsoft Issues Emergency Patch for Windows Flaw by tonyedgecombe on Thursday July 08, 2021 @07:48AM (#27770727)
Have any printers had the DRM in the driver rather than the printer firmware?

My experience working with printer manufacturers is most of them would love to not have the responsibility of writing printer drivers. If they could offload the work to MS they would be over the moon.

Re:Microsoft Issues Emergency Patch for Windows Flaw by WorldMaker on Thursday July 08, 2021 @01:56PM (#27775597)
I think we'd all benefit if Microsoft had more direct control over legacy print drivers. Printer manufacturers seem some of the worst offenders in bad driver software in general.

I also assume that if Microsoft had the ability to create more generic printer drivers they would. Given the huge amount of older legacy hardware that falls under any of the other Generic Class Drivers it kind of sticks out as a sore thumb how few printers have generic drivers. (IIRC, there's a Generic PostScript driver that works with early [Apple led era] laser printers back when PostScript was new and considered sufficient as the only language between the computer and the printer, and nothing recent.)

My understanding is that most inkjet printers especially speak OEM proprietary languages that's not just PostScript or PDF (or Microsoft's mostly failed dream of an open XML format with fewer patent hangups than PS/PDF they tried in XPS). You would assume some of those proprietary languages include commands at least ancillary to the cartridge DRM (initiating checks, validating DRM status codes and checksums, things like that) if not directly involved. DRM is the main reason to blame these proprietary languages for remaining proprietary and not well standardized across/between manufacturers (and thus don't leave us with enough generic OS printer drivers today), though it's probably not the sole reason for the proprietary languages. I'm sure the manufacturers also have other reasons for keeping their printers using proprietary languages such as not wanting to license PS/PDF or leak too many low level details of their hardware designs (beyond just possibly leaking DRM information) or patented "secret sauce" of their own languages they believe to be a competitive asset.

Microsoft's XPS push was one attempt to get them off proprietary languages and allow them to offload far more driver work to Windows directly. Seems a shame none of the printer manufacturers seemed to take them up on that.

Re:Microsoft Issues Emergency Patch for Windows Flaw by PhantomGremlin on Wednesday July 07, 2021 @07:28PM (#27766938)
I hope this issue is the motivator Microsoft needs to finally do something

Yes, finally, this will be the defining event that finally gets Microsoft to give a flying fuck about security or about code quality. /s

Anyone remember this stuff circa January 2002?

Gates Finally Discovers Security https://www.wired.com/2002/01/gates-finally-discovers-securi...

To quote from that: Bill Gates' directive that Microsoft emphasize security features in its product is a major strategy shift, but some experts wonder if there's anything behind the words.

Now, 19 1/2 years later, Bill's directive will finally be taken seriously? Maybe once we hit 1,000,000 "critical" security flaws in Microsoft products? How many more before we hit that number? Does anyone even bother to count?

Re:Microsoft Issues Emergency Patch for Windows Flaw by swiley on Wednesday July 07, 2021 @11:32AM (#27762260)
On other OSes the people maintaining/updating legacy stuff are paid consultants. On Windows only Microsoft is allowed to do this so it isn't done.