Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:
edgeos



Full Disclosure: Re: Security hole in Confixx backup script

Re: Security hole in Confixx backup script

From: <Valdis.Kletnieks_at_vt.edu>
Date: Mon, 09 Aug 2004 21:26:10 -0400

On Tue, 10 Aug 2004 02:16:24 +0200, Thomas Loch said:
> What if someone creates a shell script that simply "cat /etc/shadow" and sets
> the SetUID flag. Then he makes a backup of that file and restores the backup
> while he prevents the chown-command anyhow. All files will remain "root".
> Including the script. The execution of this script will print out the
> shadowed encrypted passwords. This can even be used to chmod the shadow file
> and make it readable for everyone

You'd probably have to work a *little* harder than a shell script - most
Unixoid systems don't allow the execution of a setUID shell script due to
various and sundry race conditions involved (which is why 'suidperl' exists).
Other than that, you're on the right track.. ;)

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.netsys.com/full-disclosure-charter.html

  • application/pgp-signature attachment: stored
Received on Aug 10 2004
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
edgeos