J-Security Center

Title: Solaris whodo Buffer Overflow Vulnerability

Severity: HIGH

Description:

The 'whodo' utility shipped with Sun Microsystems' Solaris provides a listing of users online and their activities. It is installed setuid root because it reads from the 'utmp' log as well as from the process table.

'whodo' contains a buffer overflow which can be exploited to gain root privileges. The overflow condition occurs on the stack when the value of the 'CFTIME' environment variable is excessive in length. This is likely due to an unbounded string copy.

A local user can execute 'whodo' with a 'CFTIME' environment variable that will cause a function return address to be overwritten with a pointer to supplied shellcode. This shellcode, which will be executed when the affected function returns, can provide the attacker with the enhanced privileges of the process (root).

Any attacker to successfully exploit this vulnerability will gain root privileges and have complete control over the host.

Affected Products:

  • Sun Solaris 2.5
  • Sun Solaris 2.5.1
  • Sun Solaris 2.5.1_x86
  • Sun Solaris 2.5_x86
  • Sun Solaris 2.6
  • Sun Solaris 2.6_x86
  • Sun Solaris 7.0
  • Sun Solaris 7.0_x86
  • Sun Solaris 8
  • Sun Solaris 8_x86

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.