Author Topic: HP laser printers: RCE via PostScript  (Read 369 times)

0 Members and 1 Guest are viewing this topic.

Offline madiresTopic starter

  • Super Contributor
  • ***
  • Posts: 8389
  • Country: de
  • A qualified hobbyist ;)
HP laser printers: RCE via PostScript
« on: February 17, 2025, 09:36:20 am »
Certain HP LaserJet Pro, HP LaserJet Enterprise, HP LaserJet Managed Printers – Potential Remote Code Execution and Potential Elevation of Privilege (https://support.hp.com/us-en/document/ish_11953771-11953793-16/hpsbpi04007)

'Certain' is an understatement for 100+ printer models. ;D
 

Offline 5U4GB

  • Frequent Contributor
  • **
  • Posts: 672
  • Country: au
Re: HP laser printers: RCE via PostScript
« Reply #1 on: February 17, 2025, 10:58:42 am »
You can do it with PCL as well.  30-odd years ago I used to modify the LCD displays on the work printers to say things like "Insert 20c" (from video games) or "Out of cheese".
 

Offline Halcyon

  • Global Moderator
  • *****
  • Posts: 6215
  • Country: au
Re: HP laser printers: RCE via PostScript
« Reply #2 on: February 17, 2025, 11:23:45 am »
You can do it with PCL as well.  30-odd years ago I used to modify the LCD displays on the work printers to say things like "Insert 20c" (from video games) or "Out of cheese".

"PC Load Letter" was a personal favourite... since we use A4, not letter.
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4501
  • Country: gb
  • Doing electronics since the 1960s...
Re: HP laser printers: RCE via PostScript
« Reply #3 on: February 17, 2025, 03:45:21 pm »
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: fi
    • My home page and email address
Re: HP laser printers: RCE via PostScript
« Reply #4 on: February 18, 2025, 02:36:06 am »
Typical print jobs on these printers are executed on these printers, and the results printed on paper; PostScript itself is actually a programming language.  The privilege escalation is valid issue, but remote code execution when that's their primary purpose? ::)
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 16095
  • Country: fr
Re: HP laser printers: RCE via PostScript
« Reply #5 on: February 18, 2025, 04:20:43 am »
A Postscript interpreter that would allow any kind of escalation is pretty bad IMHO, but if you implement this on a relatively general-purpose OS (which I guess is what printers have now) with no particular isolation, that's what you are bound to get. Maybe the solution is to avoid asking script kiddies to design printers. :-//
 

Offline peter-h

  • Super Contributor
  • ***
  • Posts: 4501
  • Country: gb
  • Doing electronics since the 1960s...
Re: HP laser printers: RCE via PostScript
« Reply #6 on: February 18, 2025, 09:40:03 am »
I would have expected the original Laserjet to have been written in assembler :)

What is the problem with a printer being hacked to run code of the attacker's choosing and use this to print something? I suppose you could do practical tricks like randomly changing currency symbols ;)

What would be a problem, and this is true for anything on a LAN, is using the device to attack other devices from the inside. For example set up a fake DNS server. That could be very useful.
Z80 Z180 Z280 Z8 S8 8031 8051 H8/300 H8/500 80x86 90S1200 32F417
 

Offline Nominal Animal

  • Super Contributor
  • ***
  • Posts: 7428
  • Country: fi
    • My home page and email address
Re: HP laser printers: RCE via PostScript
« Reply #7 on: February 18, 2025, 09:50:13 am »
Yeah, the actual issue is obviously that malformed inputs can cause the PostScript/PCL interpreter to goof up, and execute  some of the input as underlying machine code.  I was really poking fun at the reporting, as so few people even remember that PostScript is a language, not just an image format of some kind.  Would they report a similar bug in the Python interpreter as RCE?
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf