<?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>Cupfighter.net &#187; Web</title>
	<atom:link href="http://www.cupfighter.net/index.php/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cupfighter.net</link>
	<description>A blog by Schuberg Philis colleagues</description>
	<lastBuildDate>Thu, 09 Feb 2012 14:27:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>HitB2011AMS: WebShells: A Framework for Penetration Testing</title>
		<link>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-webshells/</link>
		<comments>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-webshells/#comments</comments>
		<pubDate>Thu, 19 May 2011 12:22:19 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[HitB2011AMS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web application]]></category>
		<category><![CDATA[Elena Kropochkina]]></category>
		<category><![CDATA[HitB]]></category>
		<category><![CDATA[Joffrey Czarny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[webshell]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1310</guid>
		<description><![CDATA[By Elena Kropochkina and Joffrey Czarny Slides on the HitB Materials page. Lots of Webshells used by pentesters to get access to the systems are detected by conventional security products like anti-virus, IPS and WAF. In stead of building a new websheel for each assignment the presenters tried to work towards a framework for webshells, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1311" class="wp-caption alignright" style="width: 225px"><a href="http://www.flickr.com/photos/19723192@N00/329594372/"><img class="size-full wp-image-1311" title="Florida Fragments a cc nc sa by image from Merrick Brown's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/05/Shells.jpg" alt="Florida Fragments a cc nc sa by image from Merrick Brown's Flickr stream" width="215" height="240" /></a><p class="wp-caption-text">Florida Fragments a cc nc sa by image from Merrick Brown&#39;s Flickr stream</p></div>
<p>By Elena Kropochkina and Joffrey Czarny</p>
<p>Slides on the <a title="HitB Materials page" href="http://conference.hackinthebox.org/hitbsecconf2011ams/materials/" target="_blank">HitB Materials page</a>.</p>
<p>Lots of Webshells used by pentesters to get access to the systems are detected by conventional security products like anti-virus, IPS and WAF. In stead of building a new websheel for each assignment the presenters tried to work towards a framework for webshells, that was modular and added obfuscation as a protection against AV/IPS/WAF.</p>
<p>But if you want to build a webshell framework you need to know what is out there. Most webservers on the internet are dominantly Apache, IIS and Weblogic. Pentesters are most in need of Webshells based on ASP, PHP and Java shells as it is heavily used for intranet applications.</p>
<p>The presenters gave an overview of the webshels out there for webshells for Linux, MySQL, PHP, JSP, ASP. Many of the common shells have high detection rates on the most common anti-virus platforms.</p>
<p>Even tough there are some webshells that are nearly complete in features and others that are not detected by Anti-Virus there isn’t one that is both.</p>
<p>There are a few ways to get around anti-virus encoding, obfuscation and encryption. There are common tools available to obfuscation for different languages like PHP, VBScript and Java. Obfuscation tools make reading the code harder, but are analysis is often still possible.</p>
<p><span id="more-1310"></span></p>
<p>Using this knowledge the presenters designed a webshell platform. The platform should be language independent, resistant against third party unauthorized access and not be detected by AV/IPS/WAF.</p>
<p>Protection against unauthorized third party access is archived by mean of encryption based on “user provided key”, server IP address and client IP address.</p>
<p>So what are the must have functionalities of the framework:</p>
<ul>
<li>System information</li>
<li>Graphical file maanger</li>
<li>file upload/download</li>
<li>command line cmd</li>
<li>SQL manager</li>
</ul>
<p>Elena and Joffrey show the design and some code fragments of the platform and demonstrated the proof of concept platform.</p>
<p>The proof of concept is already very feature rich.</p>
<hr />About Elena Kropochkina</p>
<p>Elena Kropochkina begins her professional career in Devoteam Audit Security team. She was graduated by Ecole Polytechnique and Telecom ParisTech with a M.S. in Computer Science. She is specialized in IT Security and Artificial Intelligence.</p>
<p>About Joffrey Czarny</p>
<p>Joffrey Czarny, working for Devoteam Security Business Unit (FR). Since 2001, Joffrey is a pentester, he has released advisories on VoIP Cisco products and spoken at various security-focused conferences (Wireless Conference at Infosec Paris and Wireless Workshop at Hack.lu 2005, VoIP at Hack.lu 2007/2008 and ITunderground 2008/2009). On his site, <a href="http://www.insomnihack.net">www.insomnihack.net</a>, he maintains the <a href="http://insomnihack.net/elsenot/" target="_blank">Elsenot project</a> and posts video tutorials and tools on several security aspects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-webshells/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defcon talk: CSRF: Yeah, It still works by Mike &#8220;mckt&#8221; Bailey and Russ McRee</title>
		<link>http://www.cupfighter.net/index.php/2009/08/defcon-csrf/</link>
		<comments>http://www.cupfighter.net/index.php/2009/08/defcon-csrf/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 07:56:46 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Defcon]]></category>
		<category><![CDATA[CSRF]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=428</guid>
		<description><![CDATA[The talk is designed to demonstrate that an endless stream of applications, platforms, and even critical infrastructure is actually vulnerable to Cross Site Request Forgery (CSRF). Most vendors that refuse to address these issues all use the same argument: &#8220;If users do something stupid it their problem.&#8221; Well, if they do it in your context [...]]]></description>
			<content:encoded><![CDATA[<p>The talk is designed to demonstrate that an endless stream of applications, platforms, and even critical infrastructure is actually vulnerable to Cross Site Request Forgery (CSRF).</p>
<p>Most vendors that refuse to address these issues all use the same argument: &#8220;If users do something stupid it their problem.&#8221; Well, if they do it in your context it is your problem. This is what the guys from securewebmail.com found out as well.</p>
<p><span id="more-428"></span>So where have we found CSRF issues?<br />
McAfee has a site which you van use to scan your own site. With CSRF an attack could use your session to create an extra account and then use that account to scan your sites and get your vulnerabilities.<br />
Wireless routers like the Linksys WRT wireless and others are vulnerable and  can be owned and opened up to outsider attacks.<br />
ESPN, one of the largest coomunity websites in the world is vulnerable to a CSRF attack against itself. It is wormable without any javascript at all. Noscript will not help you&#8230;<br />
Dokeos, an e0learning platform which is also used by the Belgian Defense Agency is also vulnerable. Given its installed base, Dokeos has Millions of users<br />
The osCommerce platform used for thousands of online shops with more then 9,300,000+ users. CSRF can be used here to steal credit card data. Interestingly a lot of these sites are branded McAfee secure.<br />
ZenCart is also vulnerable and widely used.<br />
cPanel/WHM is used in over 7,000,000 sites and it is also vulnerable. cPanels responsed that the cannot fix it because &#8220;it is a feature.&#8221;</p>
<p>But CSRF has other implications as well. It can be used to e.g. forge a persons browser history, which obviously has legel implications. &#8220;People have been convicted based on their search history.&#8221;</p>
<p>Alternatively it can be used to polute peoples shopping cart history on e.g. Amazon. This might make valuable advertising</p>
<p>Myths in CSRF mitigation.</p>
<ul>
<li>Only work via POST requests &#8211; This doesn&#8217;t always work</li>
<li>Referrer checking &#8211; Referrers get striped in SSL session, also users turn referrer checking of for privacy reasons.</li>
<li>Multi-step transactions &#8211; Multi-step transactions can also be perfored with CSRF</li>
</ul>
<p>What does work?</p>
<ul>
<li>CAPTCHA&#8217;s &#8211; If they are implemented the right way</li>
<li>Re authentication &#8211; Requesting reauthentication before performing critical actions is a good mitigation action</li>
<li>Unique request Tokens &#8211; make sure session tokens are cryptographically secure.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/08/defcon-csrf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Defcon talk: 0-day, gh0stnet and the Adobe JBIG2Decode disclosure debalce &#8211; Steven Adair</title>
		<link>http://www.cupfighter.net/index.php/2009/08/defcon-0-day-adobe-jbig2decode-disclosure-debalce-steven-adair/</link>
		<comments>http://www.cupfighter.net/index.php/2009/08/defcon-0-day-adobe-jbig2decode-disclosure-debalce-steven-adair/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 08:56:39 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Defcon]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[gh0stnet]]></category>
		<category><![CDATA[jbig2decode]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[spiderlabs]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=419</guid>
		<description><![CDATA[This talk gave an insight into how Steven Adair and his coworker Matt Richard found out about an actively abused 0-day exploit in Adobe Acrobat and the how responsible disclosure got it in a mess. Their investigation of this specific vulnerability was triggered by an Adobe advisory which discussed the vulnerability without much detail, but [...]]]></description>
			<content:encoded><![CDATA[<p>This talk gave an insight into how Steven Adair and his coworker Matt Richard found out about an actively abused 0-day exploit in Adobe Acrobat and the how responsible disclosure got it in a mess.</p>
<p>Their investigation of this specific vulnerability was triggered by an Adobe advisory which discussed the vulnerability without much detail, but mentioned the name the command and control server. Analyzing their malicious PDF samples they found this server in a malicious sample from a bit earlier and they already had the server name in their DNS monitor.</p>
<p><span id="more-419"></span>By analyzing the samples they had, they found the vulnerability exploited in them (JBIG2Decode) and started looking for matching samples.</p>
<p>When they informed Adobe, because the was no advisory, Adobe stated that they were aware.</p>
<p>When they found that the attack was not long just used in limited targetted attacks, but in stead the attack count was going up, they decided to do a partial disclosure on shadowserver.org blog. After the partial disclosure, Adobe released an advisory that told people it would be fixed in just over a month.</p>
<p>A few days later a PoC turns up on Milw0rm, which got turned into a weaponized exploit later.</p>
<p>All in all the talk gave quite a bit of insight into lifecycle of mallware.</p>
<p>Steven Adair can be contacte via <a href="mailto:Steven@schadowserver.com" target="_blank">Steven@schadowserver.com</a> or on twitter as @stevenadair</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/08/defcon-0-day-adobe-jbig2decode-disclosure-debalce-steven-adair/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blackhat talk: Language of Trust aka Attacking Interoperability by Mark Dowd, Ryan Smith and David Dewey</title>
		<link>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-language-of-trust-aka-attacking-interoperability-by-mark-dowd-ryan-smith-and-david-dewey/</link>
		<comments>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-language-of-trust-aka-attacking-interoperability-by-mark-dowd-ryan-smith-and-david-dewey/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 07:39:36 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[ActivX]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=399</guid>
		<description><![CDATA[Interoperability is everywhere in browsers Java &#60;-&#62; VBScript, VBscript &#60;-&#62; .NET, .NET &#60;-&#62; Javascript, Javascript &#60;-&#62; DOM etc. This interoperability presents a large attack surface, which is up to now where not well explored. There is a lot of code involved converting types between various languages. Interoperability is effected by standard bugs like buffer overflows [...]]]></description>
			<content:encoded><![CDATA[<p>Interoperability is everywhere in browsers Java &lt;-&gt; VBScript, VBscript &lt;-&gt; .NET, .NET &lt;-&gt; Javascript, Javascript &lt;-&gt; DOM etc. This interoperability presents a large attack surface, which is up to now where not well explored.</p>
<p>There is a lot of code involved converting types between various languages.</p>
<p><span id="more-399"></span>Interoperability is effected by standard bugs like buffer overflows and memory corruption but also three new vulnerability classes:</p>
<ul>
<li>Object retention vulnerabilities</li>
<li>Type confusion vulnerabilities</li>
<li>Transitive trust vulnerabilities</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Object retention</strong></span></p>
<p>Since an object does not know which other objects are using it, it does not know when to destroy itself. Most often this is done via a reference counter but this is not perfect, leading to using heap data as pointers, double frees, objects not being freed at all.</p>
<p>Issues arise from reference counters rolling over, objects being freed to often or not at all. Also a shallow copy instead of a deep copy can lead to problems. These are all programmatical errors.</p>
<p><span style="text-decoration: underline;"><strong>Type confusion</strong></span></p>
<p>In IE variant data types require careful programming, therefore they present an opportunity to attackers. Often this is not picked up by the compiler. It can lead to memory corruption and can be exploitable. This is what happened in the ATL bug . This can lead to e.g. double frees. These issues are also present in ATL and addressed by Microsoft’s patches.</p>
<p>Demonstration #1: An active X control was loaded and passed a persistent data stream which caused a free call to uninitialized data. This is exploitable so shell code was executed.</p>
<p>Demonstration #2: in windows 7 IE8 an array of object was passed in stead of the actual objects. The browser interpreted the array as an object which leads to exploitable error.</p>
<p>Even tough Firefox’ NPAPI is a lot simpler, it requires the programmer to check the data types himself, which is often forgotten leading to the same types of issues.</p>
<p><span style="text-decoration: underline;"><strong>Trust</strong></span></p>
<p>Browsers need to deal with a lot more the just HTML these days.</p>
<p>If a browser uses a trusted object A and object A trusts object B which is not trusted by the browser, it is still executed.</p>
<p>Demonstration #3: An object is first loaded but its killbit set and not executed. Then a trusted object is loaded, but it is passed a killbitted persistent object which it will execute. In its turn this object will actually start up calc.exe</p>
<p><span style="text-decoration: underline;"><strong>Remediation of the ATL issues</strong></span></p>
<p>Any ActiveX control compiled in the last 15 may have these vulnerabilities in there. ATL2.0 was released in 1997 and ATL 9.0 in 2008. Any ActiveX control based on a vulnerable ATL need to be checked if it is vulnerable, if may need some reprogramming and will need recompilation.</p>
<p>All in all there might be quite a big check of vulnerable controls out there besides the other interoperability scenarios that this talk did not address.</p>
<p>A paper is available at <a href="http://taossa.com" target="_blank">http://taossa.com</a> or <a href="http://hustlelabs.com" target="_blank">http://hustlelabs.com</a></p>
<p><span style="text-decoration: underline;"><strong>Quick word on the Microsoft patches</strong></span></p>
<p>When I asked the guys if Microsoft patches provide a sufficient solution I got an evasive answer. However, one of the demonstration machines auto updated itself yesterday and the demonstration stopped working.<span style="text-decoration: underline;"><strong><br />
</strong></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/07/blackhat-talk-language-of-trust-aka-attacking-interoperability-by-mark-dowd-ryan-smith-and-david-dewey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slowloris and Nkiller2 vs. the Cisco CSS load balancer</title>
		<link>http://www.cupfighter.net/index.php/2009/06/slowloris-css/</link>
		<comments>http://www.cupfighter.net/index.php/2009/06/slowloris-css/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 20:55:52 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Load Balancer]]></category>
		<category><![CDATA[NKiller]]></category>
		<category><![CDATA[Schuberg Philis]]></category>
		<category><![CDATA[Slowloris]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=185</guid>
		<description><![CDATA[Today I spent most of my time analyzing the Slowloris and Nkiller2 denial of service (DoS) tools together with my colleague Gert Kremer. Slowloris (name after the slow moving primates is a httpd DoS tool written by RSnake of ha.ckers. It works by tying up the httpd worker processes by slowly sending more and more [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spent most of my time analyzing the Slowloris and Nkiller2 denial of service (DoS) tools together with my colleague Gert Kremer.</p>
<p>Slowloris (name after the <a title="Wikipedia article" href="http://en.wikipedia.org/wiki/Slow_loris" target="_blank">slow moving primates</a> is a <a title="Original source of Slowloris" href="http://ha.ckers.org/slowloris/" target="_blank">httpd DoS tool written by RSnake of ha.ckers</a>. It works by tying up the httpd worker processes by slowly sending more and more headers of an httpd request.</p>
<p>Nkiller2 is a TCP/IP DoS attack tool which was published in <a title="Phrack magazine" href="http://www.phrack.org/issues.html?issue=66&amp;id=9#article" target="_blank">issue 66 of Phrack magazine</a>. It works by tying up httpd worker processes by requesting a file then stalling, mimicking the behavior of a client with full TCP/IP receive buffers.</p>
<p>Cisco CSS is a <a title="Cisco CSS" href="http://www.cisco.com/en/US/products/hw/contnetw/ps792/" target="_self">load balancer produced by Cisco</a>.</p>
<p>In nearly all of the infrastructures built by my employer Schuberg Philis, the web servers are located behind a load balancer. In most cases a Cisco CSS. Because some of our customers were worried, I set out together with my colleague Gert Kremer to see if having a CSS load balancer in front of the web server provides any protection.</p>
<p><strong>Slowloris</strong></p>
<p>First we just had to try and find out what Slowloris did with an unprotected Apache server. The first video shows what happens when you run slowloris against a webserver. The window on the top left shows the number of apache processes, the top right window shows the scoreboard. This shows what the http processes are actually doing. The bottom window shows the slowloris output.</p>
<p><strong>Slowloris vs Apache (No load balancer)</strong><br />
<p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>When slowloris is using 100 sockets, you can see 100 httpd workers in state “R”, meaning it is reading requests. The same is the case when running with 200 and 250 sockets. When running with 300 sockets the apache worker processes pool is exhausted and the web server can no longer service requests.</p>
<p><strong>Slowloris vs Apache behind a Cisco CSS load balancer</strong><br />
<p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>Slowloris is running against the webserver with 3000 sockets (should be more then enough). As you can see on the top two windows the load balancer does not forward any of the incomplete requests to the webserver. We have stress tested the loadbancer up to 10,000 sockets and it had no effect on the loadbancer.</p>
<p><strong>NKiller</strong></p>
<p><strong>Nkiller vs Apache (No load balancer)<br />
</strong><p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p></p>
<p>In the video we see for windows. Top left and right show the number of apache processes and the apache dashboard. The middle window displays the NKiller output and the bottom window TCPdump.</p>
<p>When NKiller starts we see the it exhausts the httpd workers processes by putting them in a state where they are hanging while writing their reply back to the client.<br />
<strong>Nkiller vs Apache behind a CSS load balancer<br />
</strong><p><a href="http://www.cupfighter.net/index.php/2009/06/slowloris-css/"><em>Click here to view the embedded video.</em></a></p><strong><br />
</strong><em></em></p>
<p>When NKiller was used against a server protected by a Cisco CSS load balancer the packets received from the load balancer do not match the expections of the Nkiller tool and the tool crashed producing a segmentation fault.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2009/06/slowloris-css/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

