[UNIX] Sun Solaris admintool -d and PRODVERS Buffer Overflow Vulnerabilities

From: support@securiteam.com
Date: 04/30/02


From: support@securiteam.com
To: list@securiteam.com
Date: Tue, 30 Apr 2002 22:47:05 +0200 (CEST)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  Sun Solaris admintool -d and PRODVERS Buffer Overflow Vulnerabilities
------------------------------------------------------------------------

SUMMARY

The Sun Solaris admintool utility is vulnerable to multiple buffer
overflow conditions that allow a local attacker to gain root access. The
problems are due to insufficient bounds checking on command line options
and on a configuration file variable. An attacker can use a carefully
constructed string with the -d command line option or with the PRODVERS
cdtoc file variable to gain root privileges.

DETAILS

Vulnerable systems:
 * Solaris 2.5, 2.5.1, 2.6, 7, 8 SPARC and x86

The first buffer overflow is related to command line execution of
admintool with the -d switch, when a long string is used with "/Solaris"
present.

The second buffer overflow occurs due to a lack of bounds checking for the
PRODVERS argument in the .cdtoc file. The .cdtoc file is used to specify
variables for installation media. Through the software/edit/add feature, a
local directory can be specified that contains a .cdtoc file. The file can
contain a string of data for the PRODVERS variable that will cause the
program to crash or execute code when processed.

Technical Recommendation:
Apply the following patches.

Sun:
Solaris 2.5: 103247-16
Solaris 2.5_x86: 103245-16
Solaris 2.5.1: 103558-16
Solaris 2.5.1_x86: 103559-16
Solaris 2.6: 105800-07
Solaris 2.6_x86: 105801-07
Solaris 7: 108721-02
Solaris 7_x86: 108722-02
Solaris 8: 10453-01
Solaris 8_x86: 110454-01

Workaround:
As a workaround solution, remove the setuid permissions with the
following:
# chmod -s /usr/bin/admintool

ADDITIONAL INFORMATION

The information has been provided by
<mailto:researchteam5@esecurityonline.com> researchteam5.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • Re: solaris 9 install: no tape drives?
    ... add the string and then reboot. ... /kernel/drv/st.conf on Solaris 8 are now gone, ... to see what drives *are* supported. ... (And, you may need manuals for the drives, to set up the proper command ...
    (comp.sys.sun.hardware)
  • Re: long type in solaris
    ... I need to put a long value type or a real value type into a string. ... sending them to the database. ... I suspect that your Solaris long has sizeof> your Windows long. ... As a wiser hedgehog than I said: ...
    (comp.lang.c)
  • Re: MF COBOL and SMTP mail
    ... Robert Wagner wrote ... > If you have Oracle, ... Under Solaris with the same command string is it the same return as C ...
    (comp.lang.cobol)
  • Difficulties installing software
    ... I'm fairly new to the *nix world and very new to Solaris. ... biggest problem is installing new software. ... I was succesful in getting gcc to run, ... string upon string of errors about missing headers etc. ...
    (comp.unix.solaris)