SCO OpenServer 5.0.6 (and possibly earlier versions) ships with several suid bin executables used in printer administration and related tasks.
This includes lpforms, a component used to manage and configure print destinations, devices and printer interface programs.
'lpforms' contains a locally exploitable buffer overflow vulnerability. If a command line parameter argument is of excessive length, a stack overflow condition will occur.
An attacker may exploit this vulnerability execute arbitrary code with effective user 'bin' privileges.
/opt/K/SCO/Unix/5.0.6Ga/usr/lib/lpforms `perl -e 'print "A" x 7000'`
Memory fault - core dumped
SCO OpenServer lpforms First Argument Local Overflow
Local Access Required
Loss of Integrity
A local overflow exists in OpenServer. The lpforms command fails to validate user-supplied arguments resulting in a buffer overflow. With a specially crafted request consisting of more than 6240 characters, an attacker can cause arbitrary code execution resulting in a loss of integrity.
Currently, there are no known workarounds or upgrades to correct this issue. However, SCO has released a patch to address this vulnerability.