MirBSD Korn Shell TTY privilege escalation

mirbsd-tty-privilege-escalation (41794) The risk level is classified as HighHigh Risk

Description:

MirBSD Korn Shell could allow a local attacker to gain elevated privileges on the system, caused by an error during a TTY attachment. By using characters previously assigned to the attached virtual console to attach to a TTY, a local attacker could exploit this vulnerability to execute arbitrary commands on the system with the privileges of the victim running mksh.

Platforms Affected:

  • MirOS, MirBSD Korn Shell prior to R33d

Remedy:

Upgrade to the latest version of MirBSD Korn Shell (R33d or later), available from the MirBSD Web site. See References.

Consequences:

Gain Privileges

References:

  • MirBSD Web site, Recent Changes, mksh R33d at http://www.mirbsd.org/mksh.htm#clog.
  • BID-28768: MirBSD Korn Shell Local Privilege Escalation Vulnerability
  • CVE-2008-1845: The Korn shell (aka mksh) before R33d on MirOS (aka MirBSD) does not flush the tty's I/O when invoking mksh in a new terminal, which allows local users to gain privileges by opening a virtual terminal and entering command sequences, which might later be executed in opportunistic circumstances by a different user who launches mksh and specifies that terminal with the -T option.
  • SA29803: MirBSD Korn Shell TTY Attachment Privilege Escalation

Reported:

Apr 14, 2008

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page