<?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>ButterDev &#187; Web Security</title>
	<atom:link href="http://www.butterdev.com/category/web-security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.butterdev.com</link>
	<description>David Marginian's Blog</description>
	<lastBuildDate>Sat, 20 Mar 2010 14:15:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Google Ratproxy &#8211; Part 2 (Running and Using Ratproxy)</title>
		<link>http://www.butterdev.com/web-security/2008/07/google-ratproxy-part-2-running-and-using-ratproxy/</link>
		<comments>http://www.butterdev.com/web-security/2008/07/google-ratproxy-part-2-running-and-using-ratproxy/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 08:29:11 +0000</pubDate>
		<dc:creator>davidmarginian</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[google ratproxy]]></category>
		<category><![CDATA[ratproxy]]></category>

		<guid isPermaLink="false">http://butterdev.com/?p=21</guid>
		<description><![CDATA[In my first Ratproxy post I provided instructions on building Ratproxy in a Windows/Cygwin environment.  In this post I will discuss running and using Ratproxy in a Windows/Cygwin environment.  Run the Ratproxy executable (ratproxy.exe): Open a windows command prompt in the directory where ratproxy.exe lives. Enter: ratproxy.exe -v C:\cygwin -w ratproxy.log -p 8282 -d yourdomain.com -lfscm.  [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://butterdev.com/web-security/2008/07/google-ratproxy-web-application-security-audit-tool/" target="_self">my first Ratproxy post </a>I provided instructions on building Ratproxy in a Windows/Cygwin environment.  In this post I will discuss running and using Ratproxy in a Windows/Cygwin environment. </p>
<h3>Run the Ratproxy executable (ratproxy.exe):</h3>
<ol>
<li>Open a windows command prompt in the directory where ratproxy.exe lives.</li>
<li>Enter: ratproxy.exe -v C:\cygwin -w ratproxy.log -p 8282 -d yourdomain.com -lfscm.  The -p parameter specifies the port that Ratproxy will use  (by default Ratproxy will use 8080) and the -d specifies the domain we will be testing (obviously enter your own domain here).  The rest of the parameters are straightforward and can be reviewed in the <a href="http://code.google.com/p/ratproxy/wiki/RatproxyDoc" target="_blank">official documentation</a>. </li>
</ol>
<h3>Configure your browser to use Ratproxy:</h3>
<p>Now that Ratproxy is running you need to configure your browser to use the proxy.</p>
<h4>Internet Explorer 7</h4>
<ol>
<li>Tools &gt; Internet Options</li>
<li>Connections  &gt; LAN Settings</li>
<li>Select &#8216;Use a proxy server for your LAN&#8217;</li>
<li>Address: The location where Ratproxy is running (localhost or 127.0.0.1 should work).</li>
<li>Port: The port you chose to bind Ratproxy to (in this example 8282). </li>
<li>Now close and open a fresh browser window. </li>
</ol>
<h4>Firefox 3.0</h4>
<ol>
<li>Tools &gt; Options</li>
<li>Network &gt; Settings</li>
<li>Select &#8216;Manual proxy configuration&#8217;</li>
<li>HTTP Proxy: The location where Ratproxy is running (localhost or 127.0.0.1 should work).</li>
<li>Port: The port you chose to bind Ratproxy to (in this example 8282). </li>
<li>Now close and open a fresh browser window. </li>
</ol>
<p>If you don&#8217;t have this configured correctly or if Ratproxy is not running your browser will display an error indicating that the proxy server refused connection.</p>
<h3>Do Stuff &#8211; and let Ratproxy do the hard work!:</h3>
<p>That&#8217;s it.  Now all you need to do is step through your website highlighting the main errors that you think may be vulnerable.  Ratproxy will be tracking your session behind the scenes. </p>
<h3>Generate a formatted HTML report of Ratproxy findings:</h3>
<ol>
<li>Open the Cygwin bash shell.</li>
<li>cd to the ratproxy directory</li>
<li>Enter: sh ratproxy-report.sh ratproxy.log &gt; report.html</li>
</ol>
<p>Ratproxy will generate a nicely formatted HTML report.  That is all for this post, I hope it was helpful.</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.butterdev.com/web-security/2008/07/google-ratproxy-part-2-running-and-using-ratproxy/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Google Ratproxy &#8211; Part 1 (Building Ratproxy in Windows)</title>
		<link>http://www.butterdev.com/web-security/2008/07/google-ratproxy-web-application-security-audit-tool/</link>
		<comments>http://www.butterdev.com/web-security/2008/07/google-ratproxy-web-application-security-audit-tool/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 15:59:09 +0000</pubDate>
		<dc:creator>davidmarginian</dc:creator>
				<category><![CDATA[Web Security]]></category>
		<category><![CDATA[google ratproxy]]></category>
		<category><![CDATA[ratproxy]]></category>

		<guid isPermaLink="false">http://butterdev.com/?p=20</guid>
		<description><![CDATA[Recently, I have been studying web application security and some of my research led me to Ratproxy.  Ratproxy is a web application security audit tool recently released by Google.  In this post I will show you how to install Ratproxy in a Windows environment. What you will need: In order to run ratproxy in a windows [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I have been studying web application security and some of my research led me to <a href="http://code.google.com/p/ratproxy/" target="_blank">Ratproxy</a>.  <a href="http://code.google.com/p/ratproxy/" target="_blank">Ratproxy</a> is a web application security audit tool recently released by Google.  In this post I will show you how to install Ratproxy in a Windows environment.</p>
<p>What you will need:</p>
<ol>
<li>In order to run ratproxy in a windows environment you will need Cygwin (<a href="http://www.cygwin.com/" target="_blank">http://www.cygwin.com/</a>).</li>
<li>The current Ratproxy release &#8212; <a href="http://code.google.com/p/ratproxy/">http://code.google.com/p/ratproxy/</a>.</li>
</ol>
<h3>Installing Cygwin:</h3>
<p>From the Cygwin home page (<a href="http://www.cygwin.com/" target="_blank">http://www.cygwin.com/</a>).:</p>
<ol>
<li>Select the &#8220;Install or update now!&#8221; link to download the Cygwin setup.</li>
<li>When the download is complete run setup.exe.</li>
<li>Select &#8220;Install from Internet&#8221; &gt; Next.</li>
<li>The next few screens are self explanatory.  You will choose your installation directory (the default is fine) and a few other options (all of the default options should be fine).</li>
<li>After you choose a mirror the download will begin.  After the download is complete you will be presented with a screen prompting you to select the packages you would like to install.  <strong>VERY IMPORTANT</strong>- There are a few utilities required to build Ratproxy that are not installed by default by the Cygwin installer.
<ol>
<li><strong>make</strong> - Located in &#8216;Devel&#8217;.</li>
<li><strong>gcc-core</strong> &#8211; Also located in &#8216;Devel&#8217;.</li>
<li><strong>openssl-devel</strong> - Also located in &#8216;Devel&#8217;.</li>
<li><strong>openssl (The OpenSSL runtime environment)</strong> &#8211; Located in &#8216;Libs&#8217; or &#8216;Net&#8217;.</li>
</ol>
</li>
</ol>
<p style="padding-left: 60px;">The preceding four packages must be installed or you will not be able to build or run Ratproxy.  Make sure they are not being skipped (there should be an X in the box next to each item).</p>
<h3>Building Ratproxy:</h3>
<p>Once Cygwin is installed with all of the required packages you are ready to build Ratproxy.</p>
<ol>
<li>Unzip Ratproxy into your Cygwin directory (c:\cygwin).</li>
<li>Modify the make file packaged with Ratproxy &#8211; The Ratproxy Makefile contains a flag that is not compatible with the compiler installed with Cygwin.  This can be fixed by making a small modifcation to Makefile.
<ol>
<li>Open Makefile (located at the root of your Ratproxy install).</li>
<li>Look for this line &#8212; CFLAGS  = -Wall -O3 -Wno-pointer-sign -D_GNU_SOURCE</li>
<li>Remove -Wno-pointer-sign</li>
</ol>
</li>
<p style="padding-left: 30px;">The affected portions of the Makefile should now look like this:</p>
<pre>PROGNAME = ratproxy
CFLAGS	 = -Wall -O3 -D_GNU_SOURCE
LDFLAGS  = -lcrypto -lssl</pre>
<li>Flare-dist &#8211; Now you need to download the Flare action script decompiler for Windows. From the Ratproxy root open the flare-dist directory. Directions for downloading the Flare action script decompiler are in the README file. Download the distribution at http://www.nowrap.de/download/flare06doswin.zip. Then unzip the file into Ratproxy/flare-dist. You should now have a file called flare.exe (remove the file that was distributed with Ratproxy &#8212; flare with no extension).</li>
<li>Make Ratproxy &#8211; Now we are ready to make Ratproxy.
<ol>
<li>Open your Cygwin bash shell (by selecting your Cygwin shortcut or by running Cygwin.bat).</li>
<li>Navigate into the Ratproxy directory &#8211; At the command prompt enter &#8216;cd /ratproxy&#8217; (remember we saved Ratproxy at our Cygwin root).</li>
<li>Run make &#8211; At the command prompt enter &#8216;make&#8217;</li>
</ol>
</li>
</ol>
<p>The &#8216;make&#8217; command should run and complete successfully. You will be left with a compiled ratproxy.exe in your Ratproxy directory. <strong>Important:</strong> In order to run Ratproxy you will need to make sure the Cygwin/bin directory is in your Windows path (else the exe will blow up when you run it).</p>
<p>To add the Cygwin libraries to your Windows path (in Vista).</p>
<ol>
<li>Right-click the &#8216;My Computer Icon&#8217; and select &#8216;Properties&#8217;.</li>
<li>Select &#8216;Advanced system settings&#8217; and then select the &#8216;Environmental Variables&#8217; button.</li>
<li>Find the &#8216;Path&#8217; variable under &#8217;System variables&#8217; and select the &#8216;Edit&#8217; button.</li>
<li>Append ;C:\Cygwin\bin to the &#8217;Variable value&#8217;.</li>
</ol>
<p>You can now use that executable to run Ratproxy according to the <a href="http://code.google.com/p/ratproxy/wiki/RatproxyDoc" target="_blank">documentation on the Ratproxy site</a>.  That is all for this post in <a href="http://butterdev.com/dwr/2008/07/google-ratproxy-part-2-running-and-using-ratproxy/" target="_blank">part two</a> I discuss running Ratproxy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.butterdev.com/web-security/2008/07/google-ratproxy-web-application-security-audit-tool/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Web Application Security with WebGoat (OWASP)</title>
		<link>http://www.butterdev.com/web-security/2008/02/web-application-security-with-webgoat-owasp/</link>
		<comments>http://www.butterdev.com/web-security/2008/02/web-application-security-with-webgoat-owasp/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 05:20:21 +0000</pubDate>
		<dc:creator>davidmarginian</dc:creator>
				<category><![CDATA[Web Security]]></category>

		<guid isPermaLink="false">http://butterdev.com/?p=6</guid>
		<description><![CDATA[If you develop applications for the web understanding the latest security exploits is crucial to securing your site.  WebGoat by the Open Web Application Security Project is a great tool to test your knowledge.  WebGoat is a J2ee application designed to deploy to Tomcat.  The application contains numerous security holes and lessons dedicated to showing [...]]]></description>
			<content:encoded><![CDATA[<p>If you develop applications for the web understanding the latest security exploits is crucial to securing your site.  <a target="_blank" href="http://sourceforge.net/project/showfiles.php?group_id=64424" title="WebGoat">WebGoat</a> by the <a target="_blank" href="http://www.owasp.org/index.php/Main_Page" title="Open Web Application Security Project">Open Web Application Security Project</a> is a great tool to test your knowledge.  WebGoat is a J2ee application designed to deploy to Tomcat.  The application contains numerous security holes and lessons dedicated to showing users (hands on) how to exploit them.  I highly recommend WebGoat and enjoyed going through the lessons.  You will need <a href="http://sourceforge.net/project/showfiles.php?group_id=64424" title="WebScarab">WebScarab</a> for the advanced lessons.</p>
<p><a href="http://sourceforge.net/project/showfiles.php?group_id=64424"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.butterdev.com/web-security/2008/02/web-application-security-with-webgoat-owasp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.butterdev.com @ 2010-09-07 16:55:08 -->