<?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; Security</title>
	<atom:link href="http://www.cupfighter.net/index.php/tag/security/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>Cloud security considerations</title>
		<link>http://www.cupfighter.net/index.php/2011/11/cloud-security-considerations/</link>
		<comments>http://www.cupfighter.net/index.php/2011/11/cloud-security-considerations/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:56:46 +0000</pubDate>
		<dc:creator>Anton Opgenoort</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[auditability]]></category>
		<category><![CDATA[auditing]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[private cloud]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1448</guid>
		<description><![CDATA[There are many concerns these days on security when taking services from cloud providers. All the areas where Schuberg Philis is actively being audited on, are area&#8217;s of concerns for IT managers. How do I know my cloud service is being hacked and abused if it is not running inside my datacenter? What possibilities do [...]]]></description>
			<content:encoded><![CDATA[<p>There are many concerns these days on security when taking services from cloud providers. All the areas where Schuberg Philis is actively being audited on, are area&#8217;s of concerns for IT managers.</p>
<p>How do I know my cloud service is being hacked and abused if it is not running inside my datacenter? What possibilities do I have to check if my employees are acting along the lines of my Acceptable Use policy? Where are the logs of that abuse, and how can I trust the logs? How do I know that my data is not copied elsewhere in the cloud, and analysed offline by my competitor?</p>
<p>With regards to cloud storage, the CDMI (Cloud Data Management Interface) is trying to address some of the questions, but is only one step forward.</p>
<p>Cloud service providers still have a long way to go. An initiative like Eurocloud  is doing great work in paving the road to trust in cloud service providers.</p>
<p>When cloud service providers will be able to succesfully address the concerns, they have a big advantage over the classical IT model of running your own IT: they provide all the securities you would normally build and control youself, but combined with cloud advantages like fast provisioning and fast reuse of resources.</p>
<p>Small and medium-sized business will then be able to actually get a better and more secure service with cloud services, then what they could build and control themselves.</p>
<p>What does this mean for SBP? Sure there will be competition from the cloud providers. But we are nothing more than just another cloud provider. We build services for our clients with our own cloud technologies of fast provisioning, centralized log analysis, but since we build private clouds for our customers, these customers can demand tailored solutions to address their specific needs and concerns.</p>
<p>Cloud computing is not a threath to our business model, but is preparing the market more and more for putting commodity services in the big generic clouds, combined with the need of supporting highly tailored private clouds.</p>
<p>So it is time to face the fact: Schuberg Philis, the private cloud company!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/11/cloud-security-considerations/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FIRST2011: Listening to the network: Leveraging Network Flow Telemetry for Security Applications</title>
		<link>http://www.cupfighter.net/index.php/2011/06/first2011-listening-to-the-network/</link>
		<comments>http://www.cupfighter.net/index.php/2011/06/first2011-listening-to-the-network/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 13:20:11 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[First2011]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Arbor Networks]]></category>
		<category><![CDATA[Darren Anstee]]></category>
		<category><![CDATA[Flows]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1341</guid>
		<description><![CDATA[By Darren Anstee of Arbor Networks Why is it a good idea to us flow information? You don’t need to invest in new equipment to get flow information It can be used to detect malware infected hosts, DDoS, zero-day exploits, attack and abuse Network flows information is generated regardless if there was symmetric or a-symmetic [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1340" class="wp-caption alignright" style="width: 394px"><a href="http://www.flickr.com/photos/79968372@N00/34208251/"><img class="size-full wp-image-1340 " title="Phone Bill a CC NC ND image from Nikita Kashner's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/06/Phone-Bill.jpg" alt="Phone Bill a CC NC ND image from Nikita Kashner's Flickr stream" width="384" height="218" /></a><p class="wp-caption-text">Phone Bill a CC NC ND image from Nikita Kashner&#39;s Flickr stream</p></div>
<p>By Darren Anstee of Arbor Networks</p>
<p>Why is it a good idea to us flow information?</p>
<ul>
<li>You don’t need to invest in new equipment to get flow information</li>
<li>It can be used to detect malware infected hosts, DDoS, zero-day exploits, attack and abuse</li>
<li>Network flows information is generated regardless if there was symmetric or a-symmetic routing</li>
</ul>
<p>Network flow information is like a phone bill, you cannot tell what has been said, but you can use it to prove who talked to who.</p>
<p>So what does a flow record contain?</p>
<ul>
<li>Source IP address</li>
<li>Destination IP address</li>
<li>Source port</li>
<li>Destination port</li>
<li>Input IfIndex</li>
<li>Protocol</li>
<li>Type of Service</li>
<li>packet count</li>
<li>Byte count</li>
<li>First packet time</li>
<li>Last packet time</li>
<li>Output ifIndex</li>
<li>Etc…</li>
</ul>
<p><span id="more-1341"></span></p>
<p>Flow information allows you to monitor large geographically dispersed networks.</p>
<p>So how can flow information be used for security purposes?</p>
<p>Flow information helps you understand how you network normally behaves. Unusual behavior might indicate DDoS attacks of malware infections.</p>
<p>One could look at the flow information manually, but it does make more sense to install a collection and analysis system. These systems often give the benefit of providing historical data that can help us understand current data and allow us to use this information for forensic purposes.</p>
<p>There are a lot of open source and commercial flow collection and analysis systems available.</p>
<p>Next Darren showed demonstrations of how flow information can be used.</p>
<p>First example is how to detect malware infected hosts in an enterprise environment.</p>
<p>How? One of two ways:</p>
<ul>
<li>Looking for abnormal behavior</li>
<li>Looking for known bad behavior, e.g. communication to known Command can Control servers</li>
</ul>
<p>So what is typical unusual behavior?</p>
<ul>
<li>Unusual outbound SMTP</li>
<li>Off-net DNS queries</li>
<li>Scan detection</li>
<li>Unusual outbound behavior</li>
<li>etc.</li>
</ul>
<p>Finding more then one anomalies increases the likelihood of these systems being infected.</p>
<p>One of the bonuses of flow information is that routers and switches still generate flow information even if firewalls drop the traffic.</p>
<p>Darren showed us how tools like nfdump can be used to detect systems with various abnormal behavior such as connecting to external mail servers or DNS servers too much or generating classic DDoS attacks.</p>
<p>Naturally you can also use flow information to detect DDoS attacks.</p>
<p>How do tools, like those Arbor makes, detect DDoS attacks?</p>
<ul>
<li>Baseline detection and baseline deviation</li>
<li>Misuse flow detection (SYN-flood, UDP-flood)</li>
<li>Detect bursts in the network</li>
<li>Use thresholds</li>
</ul>
<p>Why would you use flow information over firewall logs? Routers and switches are much more omnipresent and switches and routers do generate flows even if the firewall drops the traffic.</p>
<p>The slides for this talk with links to whitepapers and open source tools can be downloaded from the <a href="http://www.first.org" target="_blank">first.org</a> website.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/06/first2011-listening-to-the-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HitB2011AMS: Let met Stuxnet You</title>
		<link>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-pdos/</link>
		<comments>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-pdos/#comments</comments>
		<pubDate>Fri, 20 May 2011 10:55:51 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[HitB2011AMS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[HitB]]></category>
		<category><![CDATA[Itzik Kotler]]></category>
		<category><![CDATA[PDoS]]></category>
		<category><![CDATA[Permananent Denial of Service]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1319</guid>
		<description><![CDATA[By Itzik Kotler Slides on the HitB Materials page. Itzik start his presentation that writing StuxNet for a company is much less hard then writing one for a nuclear reactor. Stuxnet is interesting in that it is a purely software based attack that had a real hardware based effect. So can software damage hardware? Yes [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1320" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/65701179@N00/3478145163/"><img class="size-full wp-image-1320" title="Bad day at the office a cc nc ND iamge from Roger Smith's Flick stream" src="http://www.cupfighter.net/wp-content/uploads/2011/05/Wreck.jpg" alt="Bad day at the office a cc nc ND iamge from Roger Smith's Flick stream" width="240" height="180" /></a><p class="wp-caption-text">Bad day at the office a cc nc ND iamge from Roger Smith&#39;s Flick stream</p></div>
<p>By <a title="@itzikkotler on Twitter" href="http://twitter.com/itzikkotler">Itzik Kotler</a></p>
<p>Slides on the <a href="http://conference.hackinthebox.org/hitbsecconf2011ams/materials/" target="_blank">HitB Materials page</a>.</p>
<p>Itzik start his presentation that writing StuxNet for a company is much less hard then writing one for a nuclear reactor. Stuxnet is interesting in that it is a purely software based attack that had a real hardware based effect.</p>
<p>So can software damage hardware? Yes it can:</p>
<ul>
<li>Software controls hardware ad can make it perform damaging hardware</li>
<li>Software can damage software that runs hardware</li>
<li>Software runs hardware and can make this hardware take an action that damages other hardware</li>
</ul>
<p>So what is PDOS (Permanent Denial of Service)? Damaging hardware so bad that it needs to be replace or reinstalled.</p>
<p>Users the brick their phone when they try to jailbreak it are basically causing a self inflicted PDoS.</p>
<p>So who would do it and why?</p>
<p><span id="more-1319"></span></p>
<p>Possible scenario’s are:</p>
<ul>
<li>Industrial espionage/sabotage</li>
</ul>
<ul>
<li>Rival companies</li>
<li>Foreign nations</li>
</ul>
<li>Terrorism</li>
<ul>
<li>Hacktivism</li>
<li>Revenge</li>
</ul>
<li>Blackmailing</li>
<p>So what techniques can you use to cause PDoS:</p>
<ul>
<li>Phlashing: malicious overwrite of firmware</li>
<li>Malicious overclocking. Overclocking hardware too much will break it, e.g. by overheating</li>
<li>Overvolting. Increasing the voltage of equipment</li>
<li>Overusing. Causing too much wear and tear on a mechanism</li>
<li>Power Cycling. most equipment does not handle frequent on-off switching very well</li>
</ul>
<p>So lets look at some local attacks first:</p>
<ul>
<li>Disabling or slowing down fans of computer or other equipment will cause temperature increases which may lead to other failures</li>
<li>CPU overheating by causing an infinite loop</li>
<li>Microcode flashed directly into the CPU can be used to cause a PDoS as well, e.g. by overwriting hard wired instruction with faulty instructions</li>
<li>The techniques for CPUs work for GPUs as well</li>
<li>Hard drives can  be overheated using excessive read and writes, worn out by excessive parking and phlashed</li>
<li>Solid state drives van be bricked by wearing out the flash memory by excessive writing</li>
</ul>
<p>And example of a harddrive attack is a Pseudo format. E.g. by using the script:</p>
<blockquote><p># while true; do dd if=/dev/hda1 of=/dev/hda1 conv=notrunc; done</p></blockquote>
<p>Another harddrive attack is a Spindown attack:</p>
<blockquote><p># hdparam –S 1 /dev/had</p>
<p># while true; sleep 60; dd if/dev/random of=foobar count=1; done</p></blockquote>
<p>DVD/CD Rom attack:</p>
<blockquote><p># while true; do eject /dev/cdrom; eject –t /dev/cdrom; done</p></blockquote>
<p>Flash memory wear attack:</p>
<blockquote><p># while true ; do dd if=/dev/urandom of=/dev/flash; done</p></blockquote>
<p>But even older equipment can be PDoS-ed. e.g. a CRT monitored can be damaged by sending them the wrong requencies. E.g. the XFree86 configuration warns about this.</p>
<p>Also floppy drives can be damaged by, e.g. moving the head to a sector outside the drive enclosure.</p>
<p>But these updates are also possible remotely, e.g. many devices allow over the wire (OTW) or over the air (OTA) firmware updates.</p>
<p>There are some countermeasures that can be used:</p>
<ul>
<li>Overclocking protection</li>
<li>Overvolting protection</li>
<li>Temperature protection</li>
<li>Digitally signed firmware</li>
</ul>
<hr />Itzik Kotler brings more than ten years of technical experience in the software, telecommunications and security industries. Early in his career, Itzik worked at several start-up companies as a Security Researcher. Prior to joining Security Art, Itzik worked for Radware (NASDQ: RDWR), where he managed the Security Operation Center (SOC), a vulnerability research center that develops update signatures and new techniques to defend known and undisclosed application vulnerabilities. Itzik has published several security research articles, and is a frequent speaker at industry events including Black Hat, RSA, and DEFCON.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-pdos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HitB2011AMS: A Real-Life Study of What Really Breaks SSL</title>
		<link>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-what-breaks-ssl/</link>
		<comments>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-what-breaks-ssl/#comments</comments>
		<pubDate>Fri, 20 May 2011 09:56:36 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[HitB2011AMS]]></category>
		<category><![CDATA[HitB]]></category>
		<category><![CDATA[Ivan Ristić]]></category>
		<category><![CDATA[Qualys]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1314</guid>
		<description><![CDATA[By Ivan Ristić Slides on the HitB Materials page. Ivan researches SSL for Qualys. SSL was designed as a protocol add-on by Netscape to secure http, but can be used to secure other protocols as well. The main challenges today are: Fragility of the trust ecosystem Incorrect or weak configuration Slow adoption of modern statndar [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1317" class="wp-caption alignright" style="width: 190px"><a href="http://www.flickr.com/photos/11448492@N07/2078076913/"><img class="size-full wp-image-1317" title="Breaking the ice a cc nc nd by image from MarcelGermain's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/05/break.jpg" alt="Breaking the ice a cc nc nd by image from MarcelGermain's Flickr stream" width="180" height="240" /></a><p class="wp-caption-text">Breaking the ice a cc nc nd by image from MarcelGermain&#39;s Flickr stream</p></div>
<p>By <a title="@ivanristic" href="http://twitter.com/ivanristic" target="_blank">Ivan Ristić</a></p>
<p>Slides on the <a href="http://conference.hackinthebox.org/hitbsecconf2011ams/materials/" target="_blank">HitB Materials page</a>.</p>
<p>Ivan researches SSL for Qualys. SSL was designed as a protocol add-on by Netscape to secure http, but can be used to secure other protocols as well.</p>
<p>The main challenges today are:</p>
<ol>
<li>
<div>Fragility of the trust ecosystem</div>
</li>
<li>
<div>Incorrect or weak configuration</div>
</li>
<li>
<div>Slow adoption of modern statndar</div>
</li>
<li>
<div>Lack of support for virtual SSL hosting</div>
</li>
<li>
<div>Mismatch between HTTP and SSL</div>
</li>
</ol>
<p>There are three main attacks against SSL:</p>
<ul>
<li>
<div>Passive MitM</div>
</li>
</ul>
<ul>
<li>
<div>Session Hijacking</div>
</li>
</ul>
<li>
<div>Active MitM</div>
</li>
<ul>
<li>
<div>Session bypass (ssl strip)</div>
</li>
<li>
<div>Renegotiation attack</div>
</li>
<li>
<div>Rogue certificates</div>
</li>
<li>
<div>User attackers (who reads warnings)</div>
</li>
</ul>
<li>
<div>Third party compromise</div>
</li>
<p>Ivan’s has a lot of data based on the a surveys conducted by his employer Qualys SSL Labs, EFF’s SSL Observatory. In total 1.2million sites with valid certificates where investigated.</p>
<p>Ivan showed a slide that indicates that of the sites visited only 0.6% of the sites had a fully correct SSL configuration, nearly 50% of the sites did not offer SSL at all.</p>
<p>In Qualys&#8217; most In the most recent SSL Survey only 32% of the sites offering SSL where configured correctly.</p>
<p><span id="more-1314"></span></p>
<p>So now for the bad stuff:</p>
<ul>
<li>
<div>48% of the sites offering SSL still offer SSLv2 which is know to be cryptographically insecure, it is a good thing that most browsers reject it</div>
</li>
<li>
<div>Most sites do not offer any support for TLSv1.1 and TLSv1.2</div>
</li>
<li>
<div>62% of the sites still use weaks ciphers</div>
</li>
<li>
<div>The TLS renegotiation vulnerability discovered in 2009 still effects nearly 35% the sites</div>
</li>
</ul>
<p>But it is not just about how SSL is configures, but also about how it is used:</p>
<ul>
<li>
<div>Nearly 80% of the sites offering SSL do not redirect their users to the secure sites by default.</div>
</li>
<li>
<div>HTTP Strict Transport Security is only used by 80 out of the the nearly 250,000 sites tested by Qualys.</div>
</li>
<li>
<div>The adoption of EV certificates is also low</div>
</li>
<li>
<div>Of the tested sites on 9 used all three above techniques.</div>
</li>
<li>
<div>A lot of sites mark their cookies as HttpOnly or Secure, but even less that use both techniques</div>
</li>
<li>
<div>22% of the tested sites use some form of mixed content, if you exclude the sites that only use it for images this number only drops slightly to nearly 19%</div>
</li>
<li>
<div>68% of the login forms where not served over HTTPS and 54% submitted data to an http site</div>
</li>
</ul>
<p>So what can we concluse:</p>
<ul>
<li>
<div>Systematic issues are hotly debated</div>
</li>
<li>
<div>However SSL is often broken  by bad deployment and implementation issues</div>
</li>
<li>
<div>It is possible to achieve reasonable security, but most sites choose not to do it</div>
</li>
<li>
<div>Among the popular sites only a handful have decent SSL deployments</div>
</li>
</ul>
<p>SSL is a success because it bought a relative security to the general public.</p>
<hr />Ivan Ristić is a respected security expert and author, known especially for his contribution to the web application firewall field and the development of ModSecurity, an open source web application firewall. He is also the author of Apache Security, a comprehensive security guide for the Apache web server, and ModSecurity Handbook. He founded SSL Labs, a research effort focused on the analysis of the real-life usage of SSL and the related technologies. A frequent speaker at computer security conferences, Ivan is a member of the Open Web Application Security Project (OWASP), and an officer of the Web Application Security Consortium (WASC).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-what-breaks-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>HitB2011AMS: A Million Little Tracking Devices</title>
		<link>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-100000-tracking-devices/</link>
		<comments>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-100000-tracking-devices/#comments</comments>
		<pubDate>Thu, 19 May 2011 10:20:11 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[HitB2011AMS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Don A. Bailey]]></category>
		<category><![CDATA[Don Bailey]]></category>
		<category><![CDATA[HitB]]></category>
		<category><![CDATA[Location based]]></category>
		<category><![CDATA[Zoomback]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1306</guid>
		<description><![CDATA[By Don A. Bailey Slides on the HitB Materials page. Don’s talk focuses about devices that are designed to track your assets or loved one., specifically the Zoombak who’s biggest selling point is that you can use it to definitely know where your kids are. Zoombak really took off after it was endorsed by TV [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cupfighter.net/wp-content/uploads/2011/05/zoombak.jpg"><img class="alignright size-full wp-image-1308" title="zoombak" src="http://www.cupfighter.net/wp-content/uploads/2011/05/zoombak.jpg" alt="" width="282" height="170" /></a>By Don A. Bailey</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>Don’s talk focuses about devices that are designed to track your assets or loved one., specifically the <a title="ZoomBak website" href="http://www.zoombak.com/" target="_blank">Zoombak</a> who’s biggest selling point is that you can use it to definitely know where your kids are. Zoombak really took off after it was endorsed by TV personality Oprah.</p>
<p>A Zoombak devices basically consist of a GSM module and a MicroController. These two do not share any memory, but talk to each other over a serial channel using AT commands.</p>
<p>On of the first flaws in the Zoombak is that the GSM module can only talk using the decommissioned and broken A5/2 algorithm. A5/2 is so weak that it can be cracked in real time using PC hardware, but Don didn’t use this eakness to attack the device.</p>
<p>Because being on the GSM network all the time is too expensive the Zoombak device works differently. If you want to know the location of the device you send it an SMS, the SMS is polled from the SIM by the Micro Controller and acts on this command, e.g. by sending the location of the device to a website over the GPRS network.</p>
<p><span id="more-1306"></span></p>
<p>The SMS received by the Zoombak does not only contain <strong>what</strong> should be sent back, but also the IP address <strong>where</strong> the device needs to post this data.</p>
<p>By reverse engineering the messages sent between the MicroController and the GSM module Don was know the protocol and to spoof the devices.</p>
<p>Using a small shell script and tons of SMSes you can actually test devices to see if they are Zoombak devices. But using a technique Don dubbed ‘War Texting’ he was able to avoid SMS spam detection, e.g. by changing the nonce and thus generating a different messages per hosts.</p>
<p>But spamming all phone numbers is not needed. There are device characteristics that can be used to narrow the target range. E.g. by polling the HLR we can determine if the device is a T-Mobile device.</p>
<p>Next step after being able to identify a target, but can we intercept the data and spoof the device? Yes we can!</p>
<p>So what fun can we have with these devices? It can be used to e.g. know or spoof the location of valuable goods that are often protected by these devices. E.g. to pinpoint a &#8220;good&#8221; location for a heist or to convince the security system that nothing is wrong.</p>
<p>What can be done?</p>
<ul>
<li>Don&#8217;t send IP addresses in SMS messages</li>
<li>Encrypt the SMS messages</li>
<li>Don&#8217;t allow non-Zoomback devices to receive IP messages from the Zoomback devices</li>
<li>Use HLR data to detect fraud</li>
</ul>
<p>Embedded Security is hard:</p>
<ul>
<li>Weak security surface</li>
<li>Big threat surface</li>
<li>Many &#8220;moving parts&#8221;</li>
<li>The days of obfuscation are over</li>
</ul>
<p>It is very likely that Zoomback is not the only example of this, mechanisms like this are also used in traffic control systems, SCADA systems and many other applications.</p>
<hr />Don A. Bailey is a Security Consultant with iSEC Partners, Inc. With over six years in the field, Don has discovered many unknown security vulnerabilities in well used software, analyzed new and proprietary protocols for design and implementation flaws, and helped design and integrate security solutions for up and coming internet software.</p>
<p>While Don’s primary expertise is in developing exploit technology, he is also well versed at reverse engineering, fuzzing, enterprise programming, binary analysis, root kit detection and design, and network penetration testing. In addition, Don has helped develop and enhance risk management programs for several Fortune 500 companies in recent years and has been invited to speak about risk management from a CISO perspective at government organized conferences.</p>
<p>For the past five years, Don has presented research at several international security conferences discussing topics such as stealth root-kit design, zero-day exploit technology, DECT, GSM, and microcontroller security. Most recently, Don spoke at Blackhat Abu Dhabi 2010 and ToorCon San Diego 2010 regarding vulnerabilities in the global telephone network and the GSM protocol.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/05/hitb2011ams-100000-tracking-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BSidesLondon: All you security events belong to &#8230; you</title>
		<link>http://www.cupfighter.net/index.php/2011/04/bsideslondon-logs/</link>
		<comments>http://www.cupfighter.net/index.php/2011/04/bsideslondon-logs/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 11:28:53 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BSidesLondon]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Logs]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[Xavier Mertens]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1293</guid>
		<description><![CDATA[By Xavier Mertens Managing security events from you network. It is often perceived as boring. There is a lot of information and lots of tools. Additionally log formats are not standardized. There are also economic issues, uptime often takes precedence over uptime, it takes time, staff may be reduced and it not a revenue generating [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1294" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/68187942@N00/2884881790/"><img class="size-full wp-image-1294" title="For Heat a CC-NC-ND image from ailatan's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/04/logs.jpg" alt="For Heat a CC-NC-ND image from ailatan's Flickr stream" width="240" height="160" /></a><p class="wp-caption-text">For Heat a CC-NC-ND image from ailatan&#39;s Flickr stream</p></div>
<p>By <a title="Xavier Mertens (@XME) on twitter" href="http://twitter.com/xme" target="_blank">Xavier Mertens</a></p>
<p>Managing security events from you network. It is often perceived as boring. There is a lot of information and lots of tools. Additionally log formats are not standardized.</p>
<p>There are also economic issues, uptime often takes precedence over uptime, it takes time, staff may be reduced and it not a revenue generating activity.</p>
<p>Additionally there are legal issues, these issues center around privacy and have to be checked against local law.</p>
<p>Managing security logs is a layered approach:</p>
<ol>
<li>Log collection</li>
<li>Normalization</li>
<li>Storage</li>
<li>Search</li>
<li>Reporting</li>
<li>Correlation</li>
</ol>
<p>Correlation can be used to give events more meaning. This can be done with external sources like vulnerability information, but also with internal sources like e.g. badge swipes or geo-location.<span id="more-1293"></span></p>
<p>Xavier is not a big fan of the big vendors. They provide expensive solutions, but only 10% of the features is used. The most expensive product is not automatically the best solution.</p>
<p>There is a difference between Log management (step 1 to 4 maybe 5) Security (Incident) Event Management (SIEM) should include all 6 steps.</p>
<p>When you want to buy a solution you need to consider:</p>
<ul>
<li>Compliance</li>
<li>What suspicious activity are you looking for</li>
<li>Web application monitoring</li>
<li>Correlation</li>
<li>Supported devices</li>
<li>Buying a SIEM is a very specific project.</li>
</ul>
<p>Syslog daemons are a good way to start, but syslog is not issue free. Since a syslog message can contain a free format message it is very hard to pass.</p>
<p>A good too to start is SEC, “Simple Event Correlation”. It performs correlation of logs based on Perlregular expressions to produce new events, trigger scripts or write entries to a file. Perl knowledge is required.</p>
<p>OSSEC is actually a Host Based IDS, but it does Log collection and parsing as well. Like SEC it can create new events or launch scripts and supports rootkit detection and file integrity checking and has log archiving.</p>
<p>There are more protocols then syslog. Unfortunately there is no standard format yet.</p>
<p>Cooking book</p>
<p>Xavier then showed some “recipes”:</p>
<ul>
<li>OSSEC to do USB Stick insertion on windows</li>
<li>MySQL Integrity Auditing</li>
<li>Detection of suspicious IP’s and users</li>
<li>To map attacks on the map using Google Maps.</li>
<li>And an example OSSEC dashboard</li>
</ul>
<p>There are other tools to get more visualisation:</p>
<ul>
<li>Loggly (Saas)</li>
<li>Splunk</li>
<li>Secviz.org</li>
</ul>
<p>Xavier’s conclusion: you need log management because you cannot review your logs manually. You need to stick to your requirements. However you do it, it will cost time and money.</p>
<p>More informaiton on <a title="http://blog.rootshell.be" href="http://blog.rootshell.be" target="_blank">Xaviers blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/04/bsideslondon-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: You are Doing it Wrong: Failures in Virtualization Systems &#8211; By Claudio Criscione</title>
		<link>http://www.cupfighter.net/index.php/2011/03/virtualization-failure/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/virtualization-failure/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:11:42 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[vSphere 4]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Vasto]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1286</guid>
		<description><![CDATA[Virtualization aims to save money, make things simple and quick to deploy. Saving money and quick deployment are arch enemies of security Virtualization products require security on the hypervisor level. Being able to hop from one virtual machine to another is not acceptable. Also there are a lot of products that focus on the security [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1287" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/64251830@N00/406285615/"><img class="size-full wp-image-1287" title="Wrong Way ... Way Wrong a CC NC SA image from Bob.Fornal's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/Wrong.jpg" alt="Wrong Way ... Way Wrong a CC NC SA image from Bob.Fornal's Flickr stream" width="240" height="199" /></a><p class="wp-caption-text">Wrong Way ... Way Wrong a CC NC SA image from Bob.Fornal&#39;s Flickr stream</p></div>
<p>Virtualization aims to save money, make things simple and quick to deploy. Saving money and quick deployment are arch enemies of security</p>
<p>Virtualization products require security on the hypervisor level. Being able to hop from one virtual machine to another is not acceptable. Also there are a lot of products that focus on the security in the virtual machines, but virtualized infrastructure are complex by nature.</p>
<p>Relative lame bugs like XSS can be a big deal in virtualization infrastructures</p>
<p>Claudio demonstrates that live on stage, by exploiting a XSS bug in VMWare vCenter which took 1.5 years to patch.</p>
<p>Claudio showed us how an unprivileged user on the vCenter machine able to read a logfile contain the administrator SOAP session ID. Using this ID and Vasto administrator privileges where obtained. Until the last patch read-only access to vCenter meant that the user could take over the virtual infrastructure using standard tools.</p>
<p>Next attack demonstrated is against an Oracle virtual machine. Using standard “lame” exploits Claudio was able to hope from the application level administrator to the system root account.</p>
<p>So there are still some very simple vulnerabilities in this software.</p>
<p>Virtualization software is broken today, and we have to treat it accordingly. We have to make people aware that it is broken.</p>
<p>Virtualization infrastructures should be setup in such a way that a XSS in the management layer cannot lead to a disaster.</p>
<p><span id="more-1286"></span></p>
<p>Claudio defines a new model that consists of a vCell and a vGatekeeper. With the goal of still providing some security if you lose your management solution.</p>
<p>vGatekeeper uses mod_security to define which communication is allowed between the management solution and the virtual machines.</p>
<p>With vGatekeer you can define which actions a user can execute on a virtual infrastructure regardless of his or her authentication level. The vGatekeeper software will generate a network configuration file and a mod_security configuration file that will prevent certain actions for propagating from vCenter to ESXi.</p>
<p>Claudio demos this application live on stage.</p>
<p>vGetkeeper will give the control back to the security team, in stead of it being in control of the virtualization team.</p>
<hr /><strong>Claudio Criscione</strong> managed to score his first hack at the age of 10, to download more content from the local BBS by bypassing ratio restrictions. After that he hacked his way to graduation at Milano TU and started his PhD. He has been the CTO of Secure Network since 2011. Criscione has been involved in web application security and anomaly detection, but has since moved into virtualization security. Criscione has presented at many of the conferences in the security circus and is also currently managing <a href="http://virtualization.info">virtualization.info</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/virtualization-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: Building Floodgates: Cutting-Edge Denial of Service Mitigation &#8211; By Yuri Gushin &amp; Alex Behar</title>
		<link>http://www.cupfighter.net/index.php/2011/03/roboo/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/roboo/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 14:00:35 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[DoS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[Denial of Service]]></category>
		<category><![CDATA[LOIC]]></category>
		<category><![CDATA[Roboo]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1284</guid>
		<description><![CDATA[DoS, making resources unavailable to others. Common motives are hacktivism, extortion and rivalry. Most big attacks are successful. So what are the risks of being under DoS attack? Downtime, lost revenue, large bills from the cloud service providers. What kinds of DoS attacks are there? Layer 3 – Muscle-based attacks, generating too much packets for [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1283" class="wp-caption alignright" style="width: 190px"><a href="http://www.flickr.com/photos/15213592@N03/4933836930/"><img class="size-full wp-image-1283" title="Ghosts of Lake Sutherland a CC NC SA image from Wyrmworld's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/Floodgate.jpg" alt="Ghosts of Lake Sutherland a CC NC SA image from Wyrmworld's Flickr stream" width="180" height="240" /></a><p class="wp-caption-text">Ghosts of Lake Sutherland a CC NC SA image from Wyrmworld&#39;s Flickr stream</p></div>
<p>DoS, making resources unavailable to others. Common motives are hacktivism, extortion and rivalry. Most big attacks are successful.</p>
<p>So what are the risks of being under DoS attack? Downtime, lost revenue, large bills from the cloud service providers.</p>
<p>What kinds of DoS attacks are there?</p>
<ul>
<li>Layer 3 – Muscle-based attacks, generating too much packets for the equipment or saturating the pipe.</li>
<li>Layer 4 – Consumes more resources on the device., e.g. SYN flood, connection flood, concurrent connection exhaustion, garbage data.</li>
<li>Layer 7 – Attacking the application. Trying to consume as much resources as possible. E.g. HTTP page flood, HTTP bandwidth consumption, DNS query flood, SIP INVITE flood. There attacks are low rate, high impact</li>
</ul>
<p>So how do you mitigate DoS attacks?</p>
<p>Static thresholds work and put the operation team in control, however they require constant tuning and restrict the detection phase to a single-dimension (rate only).</p>
<p>Adaptive threshold, attempting the learn real traffic characteristics, which improves accuracy, however, natural traffic peaks like e.g. a Christmas peak may be blocked too.</p>
<p><span id="more-1284"></span></p>
<p>A more sophisticated detection can be based on using two dimensions, e.g. DNS requests v.s. HTTP requests. The presenters show a graph that shows a 3D graph of an L3 flood. Another metric that can be used is the distribution of content-types vs. the number of HTTP requests.</p>
<p>So by using two dimensions to determine if you are in a DoS attack you can reduce the false positive rate.</p>
<p>A lot of DoS bot clients have a very specific TCP header, however there are too much DoS tools to actually rely on a human to create the signatures.</p>
<p>Besides to passively block traffic by thresholds or patterns, you could also include a active mitigation like:</p>
<ul>
<li>Challenge response – This wards of clients that don’t have a full protocol stack e.g. SYN cookies or requiring JavaScript.</li>
<li>Session Disruption – Causing the clients to use more resources in the attack that you need to mitigate the attack</li>
<li>Tarpitting – Stalling malicious connections.</li>
</ul>
<p>There are  a lot of different ways to do challenge response mitigation. Using JavaScript to verify is a DOM is present, detect if flash is present or use other systems.</p>
<p>If an attack is detected, it is important not just to drop the connection, but also to reset the backend connection. If you just reset the backend connection, but not the bot connection you may cause the attacker to consume a lot of resources himself. LaBrea is a nice way of slowing down attacks in progress slowing the connection down, sometimes to the point where the bot crashes.</p>
<p>Most of the shell x86 based hardware is simply incapable of handling a full 1Gb+ network stream at wire speed. Dedicated ASIC is the only hardware capable of supporting these speeds.</p>
<h3>Mitigating LOIC</h3>
<p>LOIC was not a new tool, but some parts like the hive mind was added lately. It is capable of generating malformed HTTP requests, but it has terrible thread and IO management.</p>
<p>The presenters present Roboo – Open Source HTTP Robot Mitigator.</p>
<p>Roboo will respond to each GET or POST request from an unverified source with a challenge: Challenge is javascript or flash based and optionally gzip compressed. A real browser with full HTTP, HTML, JavaScript and/or Flash player will be able to generate the correct response and issue the original request.</p>
<p>Roboo can whitelist allowed robot activity and pass it.</p>
<p>Roboo integrates with the high performance Nginx webserver and reverse proxy.</p>
<p>Roboo was tested against: LOIC, Acentuix Web Vulnerability Scanner, Metasploit Pro, Nessus and many more. It can serve as a Captcha replacement too.</p>
<p>Roboo can be downloaded from <a href="http://www.ecl-labs.org">www.ecl-labs.org</a>.</p>
<p>Roboo was demonstrated.</p>
<p>Summary of the talk:</p>
<ul>
<li>DoS is booming – attacks are growing in power and efficiency</li>
<li>Cloud subscribers are the new victims</li>
<li>Anti-DoS technologies has greatly evolved</li>
</ul>
<ul>
<hr /><strong>Yuri Gushin</strong> has been involved with security research &amp; development for over a decade, including extensive work in the fields of IPS and DoS detection and evasion technologies, network and application vulnerability discovery and exploitation, protocol fuzzing and plenty more. Yuri also co-founded the ECL Labs research group.</p>
<p>Currently, Yuri is the Senior Security Specialist for Europe, Middle East and Africa (EMEA) at Radware, heading the major security activities around the region, and playing an active role in the design of Radware&#8217;s next generation security offerings.</ul>
<p><strong>Alex Behar</strong> has been in InfoSec for the last 15 years, participating in research, exploit development and reverse engineering of network protocols and application stacks. Most recently, Alex was a Senior Researcher in Radware&#8217;s DefensePro security team and is currently Director of Security Products for Radware North America. Additionally, he is a co-founder of security research think-tank ECL-Labs and core developer of the Raptor Traffic Suite.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/roboo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The ABAP Underverse &#8211; Risky ABAP to Kernel communication and ABAP-tunneled buffer overflows &#8211; By Andreas Wiegenstein</title>
		<link>http://www.cupfighter.net/index.php/2011/03/abap-underverse/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/abap-underverse/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 15:48:45 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Andreas Wiegenstein]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1276</guid>
		<description><![CDATA[This talk focuses on ABAP, Advance Business Application Programming language from SAP. ABAP: A proprietary language of which the exact specification is not freely available. It has platform independent code It has client separation built-in It has integrated auditing capabilities System-to-system calls via SAP RFC standard Built-in transportation system and version control Integrated platform-independent SQL [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1277" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/49502986585@N01/14678686/"><img class="size-full wp-image-1277" title="Cycle Garage a CC NC ND image from Ezu's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/Tunnel.jpg" alt="Cycle Garage a CC NC ND image from Ezu's Flickr stream" width="240" height="180" /></a><p class="wp-caption-text">Cycle Garage a CC NC ND image from Ezu&#39;s Flickr stream</p></div>
<p>This talk focuses on <a title="Wikipedia article" href="http://en.wikipedia.org/wiki/ABAP" target="_blank">ABAP</a>, Advance Business Application Programming language from SAP.</p>
<p>ABAP:</p>
<ul>
<li>A proprietary language of which the exact specification is not freely available.</li>
<li>It has platform independent code</li>
<li>It has client separation built-in</li>
<li>It has integrated auditing capabilities</li>
<li>System-to-system calls via SAP RFC standard</li>
<li>Built-in transportation system and version control</li>
<li>Integrated platform-independent SQL Standard: Open SQL</li>
<li>Built-in authentication, roles and (explicit) authorization model</li>
<li>Thousands of well-known standard programs and database tables</li>
<li>150+ Million Line of Code in an ECC6.0 System</li>
</ul>
<p>So what are the ABAP security risks?</p>
<ul>
<li>Back doors can be introduced, e.g. by a malicious developer.</li>
<li>The program can have undesired side effect (e.g. SQL injection)</li>
<li>Sub standard authentication used</li>
</ul>
<p><span id="more-1276"></span></p>
<p>Some ABAP code in the SAP system is dynamically generated at run time this can affect names of variables, SQL statements, but also ABAP variables can contain ABAP code that can be executed at runtime.</p>
<p>While SQL injection is possible in ABAP, it is not possible to terminal an SQL statement an start a new one in Open SQL, hence the possibilities are somewhat limited.</p>
<p>There is even dynamically generated ABAP code, that is generated and executed in memory and then disappears without leaving any trace in the system.</p>
<p>The shortest ABAP program to become super user on a SAP system is 34 characters, but will set of all alarms, a longer version of 56 characters is completely stealthy.</p>
<p>But ABAP has a low level ABAP kernel. It should only be used by SAP, and mostly undocumented, but can be explicitly invoked from ABAP.</p>
<p>There are three kinds of ABAP kernel functions:</p>
<ul>
<li>Kernel calls</li>
<li>System calls</li>
<li>Kernel methods</li>
</ul>
<p>Kernel methods are the newest method to interact with the SAP kernel, they are called like normal functions and have typed parameters.</p>
<p>Some routines in the ABAP runtimes have hooks back into ABAP code. These functions are called from the C/C++ of the ABAP runtime. Data is exchanged between the ABAP code and the ABAP runtime via more ABAP kernel calls AB_GET_C_PARAMS and AB_SET_C_PARAMS.</p>
<p>These ABAP kernel hooks can be used to hijack calls in the ABAP runtime.</p>
<p>There are 8 high risk kernel calls:</p>
<ul>
<li>SYSTEM – OS command execution</li>
<li>XXPASS and XXPASSNET – Compute password hasj</li>
<li>INTERNET_USER_LOGOON</li>
<li>C_GET_TABLE</li>
<li>C_MOD_TABLE</li>
<li>C_DB_EXECUTE</li>
<li>C_DB_FUNCTION</li>
</ul>
<p>SYSTEM can execute any OS command. It completely bypasses the list of allowed OS commands specified by the system administrator. Luckily it uses implicit authority check and the call can be disabled by setting the profile parameter rdisp/call_system to 0. But it is not the only way to execute OS commands!</p>
<p>XXPASS and XXPASSNET computes password hashes that is internally used by SAP to put into the user table. If you use this call outside the correct scope (e.g. Y* or Z* namespace) your session will be terminated and your user account will be locked.</p>
<p>INTERNET_USER_LOGON this can be used to perform user switches and create logon tickers. If can only be used to check credentials and it does keep track of failed login attempts.</p>
<p>C_GET_TABLE allows the programmer to read arbitrary database tables. They do allow cross client data access. So it allows one client of a host SAP installation to read tables from another client.</p>
<p>C_MOD_TABLE this call allow the programmer to write or modify any arbitrary tables on the system, without any restrictions.</p>
<p>C_DB_EXECUTE allows for the execution of arbitrary SQL statement. It allows each and any SQL statement apart from select. It does not respect client boundaries.</p>
<p>C_DB_FUNCITON allow for the execution of arbitrary stored procedures or any arbitrary SQL statement.</p>
<p>Andreas then goes on to demonstrate how to take over an SAP system using these kernel calls.</p>
<p>He showed this by truncating a table and accessing data from another client something you are not supposed to do in custom code. There are even more 0day kernel calls that at this time cannot be disclosed due to responsible disclosure. The ABAP runtime should guard the SAP kernel, but if a large enough parameter can be transported through ABAP an SAP kernel can be performed. Kernel call C_SAPCPARAM can be used to trigger a SAP kernel buffer overflow via ABAT. This is also available remotely via RFC.</p>
<hr /><strong>Andreas Wiegenstein</strong> has been working as a professional SAP security consultant for 8 years. He performed countless SAP code audits and has been researching security defects specific to SAP / ABAP applications. He leads the CodeProfiler Research Labs at Virtual Forge, a team focusing on SAP/ABAP specific vulnerabilities and countermeasures. At the CodeProfiler Labs, he works on ABAP security guidelines, ABAP security trainings, an ABAP security scanner as well as white papers and publications. Andreas has trained large companies and defense organizations on ABAP security and has spoken at SAP TechEd on several occasions. He is co-author of the first book on ABAP security (SAP Press 2009). He is also a founding member of BIZEC.org, the Business Security community.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/abap-underverse/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: SAP: Session (Fixation) Attacks and Protections (in Web Applications) &#8211; By Raul Siles</title>
		<link>http://www.cupfighter.net/index.php/2011/03/sap-fixation/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/sap-fixation/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 14:08:54 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[Raul Siles]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Session Fixation]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1272</guid>
		<description><![CDATA[SAP: Session (Fixation) Attacks and Protections (in Web Applications) Raul Siles is @taddong on Twitter Why do we need session management in Web Applications. HTTP is a stateless protocol so the application need to handle ourselves. Sesion Fixations if different then session hijacking. In hijacking you will use somebody else’s session ID to become them. [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1273" class="wp-caption alignright" style="width: 219px"><a href="http://www.flickr.com/photos/49503096783@N01/414806681/"><img class="size-full wp-image-1273" title="gluey harmony a CC NC ND image from giveawayboy's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/Glue.jpg" alt="gluey harmony a CC NC ND image from giveawayboy's Flickr stream" width="209" height="240" /></a><p class="wp-caption-text">gluey harmony a CC NC ND image from giveawayboy&#39;s Flickr stream</p></div>
<p>SAP: <a title="Wikipedia article" href="http://en.wikipedia.org/wiki/Session_fixation" target="_blank">Session (Fixation) Attacks</a> and Protections (in Web Applications)</p>
<p>Raul Siles is <a title="@Taddon on Twitter" href="http://twitter.com/taddong">@taddong</a> on Twitter</p>
<p>Why do we need session management in Web Applications. HTTP is a stateless protocol so the application need to handle ourselves.</p>
<p>Sesion Fixations if different then session hijacking. In hijacking you will use somebody else’s session ID to become them. In session fixation the attacker fixes the session ID before he logins into the target application.</p>
<p>So what is the state of the art of session fixation 9 years after its discovery in 2002?</p>
<p>Like HTTP parameter pollution session IDs can also be accepted from multiple sources, even tough the application only uses a single method. E.g. the application may user GET parameters, but still accept session ID cookies.</p>
<p>So how does session fixation work? An attacker sets up a session with a website, but does not log on. He then tricks a user into log in using the same session ID. As the session gets elevated, both the attacker and victim get the authenticated state.</p>
<p>Session fixation does not require solcial engineering, but can also be obtained by e.g. Cross Site Scripting (XSS) or SQL injection.</p>
<p>In order to demonstrate the problem Raul shows the vulnerability as it existed in Joomla 1.5.x-1.5.15</p>
<p>HTTPS does not protect against session fixation vulnerabilities, neither does using MD5 values for the cookie ID or values.</p>
<p><span id="more-1272"></span></p>
<p>The second case study involves a web application based on WebLogic. Which is reported live today. The JSESSIONID cookie was configured to contain a too broad domain. normally WebLogic provides two cookies a post authentication cookie and a pre-authentication cookie which should tackle the problem.</p>
<p>The application allowed all resources to be accessed both via HTTP and HTTPS. And the HTTP site did not require the post-authentication cookie. Thus the session fixation protection was not present on HTTP.</p>
<p>So how easy is it to introduce this misconfiguration? If web.xml states that the “transport-guarantee” as NONE this vulnerability is present. This is the default setting.</p>
<p>It could very well be that that even tough you have set the default to CONFIDENTIAL, it could still be that some resources are set to NONE as an exception.</p>
<p>So what can you do about it?</p>
<ul>
<li>Set your “AuthCookieEnabled” and “transport-guarantee” setting to secure values.</li>
<li>If you use the login api, use the ServletAUthenticaiton.generateNewSessionID(request) call after login to generate a new session ID otherwise force the app server to automatically generate new session IDs after login.</li>
<li>Enforce both encryption and authentication (not set by default)</li>
</ul>
<ul>The third case study focuses on SAP.</ul>
<ul>In this pentest, users where authenticated against the Intranet first using NTLM then redirected to HTTP SAP application and then redirected to HTTPS SAP application. This allowed Raul to fix the sessionID using a MitM attack.</ul>
<p>The session of any user that logged on lead to the testers being able to log on with the same authentications.</p>
<p>The issue was first reported in July 2009, and a fix was released in December 2010. It will take another 3 months to be implemented on the client infrastructure.</p>
<p>SessionIDRegeneration is still disabled in older SAP releases (pre 7.11) in order to avoid compatibility issues.</p>
<p>Other protection methods like SystemCookiesHTTPSenabled and SessionIPProtectionEnabled are both available in SAP but off by default.</p>
<p>Conclusion</p>
<ul>
<li>SessionIDs need to be renewed after privilige level changes</li>
<li>There is no link between session management and authentication, we need to take care of it ourselves</li>
<li>Limit the number of session tracking methods accepted</li>
<li>Use HTTPS if you can</li>
</ul>
<p>It is still an old but valid method affecting thousands of users. You auhtnication can be very secure, however once you have established a secure session with a token, the session ID is all that protects your session.</p>
<hr /><strong>Raul Siles</strong> is a founder and senior security analyst with Taddong, a security research &amp; consulting company. His more than 10 years expertise performing advanced security services and solutions in various worldwide industries is driven by his unlimited interest in security challenges plus in researching, pen-testing, and hacking different technologies, such as, web applications, wireless, honeynets, virtualization, mobile devices, VoIP&#8230; He is an experienced training author and instructor, regular speaker at security conferences, member of several international security organizations, and contributes to research and open-source security projects. Part of his work is available on his company blog (<a href="http://blog.taddong.com">http://blog.taddong.com</a>) and (outdated) web page (<a href="http://www.raulsiles.com">http://www.raulsiles.com</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/sap-fixation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: Web Application Payloads &#8211; Andres Riancho</title>
		<link>http://www.cupfighter.net/index.php/2011/03/w3af-payloads/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/w3af-payloads/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 11:38:18 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web application]]></category>
		<category><![CDATA[Andres Riancho]]></category>
		<category><![CDATA[Barcelona]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[w3af]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1267</guid>
		<description><![CDATA[This talk focuses on the w3af project, which has been Andres project for a long time, but is an open source project. It can be found at http://w3af.sourceforge.net/ Andres starts by giving an overview of w3af. He then goes into a scenario which is common for a pentest. It starts with a pentester discovering a [...]]]></description>
			<content:encoded><![CDATA[<p>This</p>
<div id="attachment_1268" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/66724786@N00/233278221/"><img class="size-full wp-image-1268" title="photo Eurofighter Typhoon Payload - A CC NC ND image from Stuart R Brown's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/payload.jpg" alt="photo Eurofighter Typhoon Payload - A CC NC ND image from Stuart R Brown's Flickr stream" width="240" height="160" /></a><p class="wp-caption-text">photo Eurofighter Typhoon Payload - A CC NC ND image from Stuart R Brown&#39;s Flickr stream</p></div>
<p>talk focuses on the w3af project, which has been Andres project for a long time, but is an open source project. It can be found at <a href="http://w3af.sourceforge.net/">http://w3af.sourceforge.net/</a></p>
<p><a title="@w3af on Twitter" href="http://twitter.com/w3af" target="_blank">Andres</a> starts by giving an overview of w3af.</p>
<p>He then goes into a scenario which is common for a pentest. It starts with a pentester discovering a arbitrary file read vulnerability in a PHP application, but how to proceed to getting root? There appears to a shocking lack of post exploitation tools that can be applied to web application vulnerabilities.</p>
<p>Why is there such a lack of post exploitation tools for web applications?</p>
<ul>
<li>Buffer overflows used to be more common then web application flaws</li>
<li>Web applications only allow you to interact with the system in a specific (restircted) manner</li>
</ul>
<p>Post exploitation of web applications requires a new mindset, because you are often restricted to one or a few functions, e.g. read files with restricted privileges or write files to specific areas.</p>
<p><span id="more-1267"></span></p>
<p>Andres shows use how a payload in w3af looks like. He shows the following process:</p>
<ol>
<li>Start a w3af scan</li>
<li>identify arbitrary file read vulnerability</li>
<li>Execute the “users” payload that read /etc/passwd and parses it.</li>
<li>Show the results</li>
</ol>
<p>W3af has payload for showing the users on the system, showing the open TCP connections and interesting files on the system. The interesting files payload tries to find interesting files in a lot of different places, including all user home directories.</p>
<p>There is logic in payloads as wel, based on the information obtained during the scan phase. E.g. of this is the get_source_code payload that behaves differently on windows and unix based systems. This payload makes it really simple to obtain the full source code from a webserver.</p>
<p>O.K. so now we have the sourcecode, now what? We have build a PoC PHP Static code analyzer and integrated it with w3af. We can now use w3af to discover even more vulnerabilities. E.g. code analysis will show e.g. an SQLi vulnerability that will lead to arbitrary file write.</p>
<p>Andres then showed us that this is not just theory, but demoed it too.</p>
<p>Bare in mind that the current SCA in w3af is only at proof of concept level only. There are many things still missing from it. If you feel like contributing, please contact Andres.</p>
<p>If you can use the exec() function, there are much more cool things to do. w3af can then integrate with the Metasploit framework to execute msf payloads (like meterpreter). This function was also demoed.</p>
<hr /><strong>Andrés Riancho</strong> is an information security researcher, Director of Web security at Rapid7 and founder of Bonsai, where he is mainly involved in Penetration Testing and Vulnerability Research. In the research field, he discovered critical vulnerabilities in IPS appliances from 3com and ISS; and contributed with SAP research performed at his former employer.</p>
<p>His main focus has always been the Web Application Security field, in which he developed w3af a Web Application Attack and Audit Framework used extensively by penetration testers and security consultants. Andres has spoken and hold trainings at many security conferences around the globe, like OWASP World C0n (USA), CanSecWest (Canada), T2 (Finland) and ekoparty (Buenos Aires).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/w3af-payloads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: HTTP Parameter Pollution Vulnerabilities in Web Applications &#8211; By Marco Balduzzi</title>
		<link>http://www.cupfighter.net/index.php/2011/03/http-parameter-pollution/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/http-parameter-pollution/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 10:00:07 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[BalckHat]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[HTTP parameter pollution]]></category>
		<category><![CDATA[Marco Balduzzi]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1263</guid>
		<description><![CDATA[Marco’s (embyte@iseclab.org) research focuses on the first automated approach to detect PHP parameter pollution. (Slide deck) What is parameter pollution? In http it is allow to provide a parameter via GET and via POST. You can also provide a parameter twice. Some application do not handle this very well and interpret both, the first or [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1264" class="wp-caption alignright" style="width: 250px"><a href="http://www.flickr.com/photos/75174621@N00/324207589/"><img class="size-full wp-image-1264" title="Fog | Power Plant - A CC NC SA image from fxp's Flickr stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/Pollution.jpg" alt="Fog | Power Plant - A CC NC SA image from fxp's Flickr stream" width="240" height="182" /></a><p class="wp-caption-text">Fog | Power Plant - A CC NC SA image from fxp&#39;s Flickr stream</p></div>
<p>Marco’s (embyte@iseclab.org) research focuses on the first automated approach to detect PHP parameter pollution.</p>
<p>(<a href="http://www.iseclab.org/people/embyte/slides/BHEU2011/hpp-bhEU2011.pdf">Slide deck</a>)</p>
<p>What is parameter pollution?</p>
<p>In http it is allow to provide a parameter via GET and via POST. You can also provide a parameter twice. Some application do not handle this very well and interpret both, the first or the second.</p>
<p>E.g. will the url <a href="http://somesite.com/vote.jpt?pool_id=4568&amp;candidate=green&amp;candidate=white">http://somesite.com/vote.jpt?pool_id=4568&amp;candidate=green&amp;candidate=white</a> vote for Mr. Green or Mr. White? Since PHP always opts for the first parameter the vote will go to Mr. Green.</p>
<p>Since parameters in a get request overwrite the parameters in the post request, An attacker can pollute http parameters without manipulating the page itself.</p>
<p>Marco has built a system that can automatically test HTTP parameter pollution for both problems:</p>
<p>P-Scan scans for Parameter precedence.</p>
<p>It performs three tests:</p>
<ul>
<li>Error Test – Test if the application crashes if a parameter is repeated twice</li>
<li>Identity test – Is a second parameter considered by the application</li>
<li>Base test – Assume that pre-filtering works</li>
</ul>
<p>V-Scan tests for actual http parameter pollution vulnerabilities. When it is determined that pages reactive differently when parameter pollution is applied. V-Scan eliminates those cases where these differences are not a vulnerability.</p>
<p>These tests are implemented in a tool called <a href="http://papas.iseclab.org/">PAPAS</a>.</p>
<p>Marco proceeds to present the results of deploying PAPAS against about 5,000 popular websites. The sites that appeared to vulnerable in more vulnerable where inspected in more detail.</p>
<p><span id="more-1263"></span></p>
<p>Over 1200 of 5000 sites gave inconsistent results when parameters are duplicated and 238 sites gave a database error. 30% of the tested websites (about 1,500) contained at least one page that was vulnerable to HTTP Parameter Injection</p>
<p>About 14% of the tested sites where exploitable, meaning that Marco was able in inject a new parameter into the page or overwrite a parameter on the page. This figure was more or less consistent across different branches.</p>
<p>Sites that were tested include Facebook, Google, Symantec, microsoft, PayPal, Flickr, FoxVideo, VMWare.</p>
<p>Vulnerable sites:</p>
<ul>
<li>Facebook share button</li>
<li>World Health Organization homepage</li>
<li>Paypal raise account page</li>
<li>Nasa slideshow page</li>
</ul>
<p>The example of the AETV shopping page shows how shoppers can be mislead into buying a different product then they think they are buying. This could also be done with the site of US bank.</p>
<p>Even the main Google site could be manipulated to produce search results different from the intended results.</p>
<p>PARAS is available as a free online service at <a href="http://papas.iseclab.org/">http://papas.iseclab.org/</a></p>
<p>This online service is then demoed by Marco.</p>
<p>So how can this be prevented? It can be done with classical methos:</p>
<ul>
<li>Input validation</li>
<li>User safe methods</li>
<li>Only accept parameters from the channel you expect then from</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/http-parameter-pollution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Hat EU: Defying Logic &#8211; By Rafal Los</title>
		<link>http://www.cupfighter.net/index.php/2011/03/black-hat-eu-defying-logic-by-rafal-los/</link>
		<comments>http://www.cupfighter.net/index.php/2011/03/black-hat-eu-defying-logic-by-rafal-los/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 08:25:31 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BlackHatEU]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Black Hat]]></category>
		<category><![CDATA[Blackhat]]></category>
		<category><![CDATA[Business Logic]]></category>
		<category><![CDATA[Rafal Los]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Wh1t3Rabit]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1256</guid>
		<description><![CDATA[Subtitle: Theory, Design and Implementation of Complex Systems for Testing Application Logic Rafal works at HP (blog). The talk is step up as a three act play. Act 1 – Definition What is “application logic”?. Rafal is trying to discover the definition to “application logic”, via and interactive process with the audience. He starts of [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1257" class="wp-caption alignright" style="width: 190px"><a href="http://www.flickr.com/photos/48889073931@N01/190511070/"><img class="size-full wp-image-1257" title="WhiteRabbits - A CC NC SA Image from Halans Photo Stream" src="http://www.cupfighter.net/wp-content/uploads/2011/03/WhiteRabbits.jpg" alt="White Rabbits" width="180" height="240" /></a><p class="wp-caption-text">WhiteRabbits - A CC NC SA Image from Halans Photo Stream</p></div>
<p>Subtitle: Theory, Design and Implementation of Complex Systems for Testing Application Logic</p>
<p><a title="@Wh1t3Rabbit on Twitter" href="http://twitter.com/Wh1t3Rabbit">Rafal</a> works at HP (<a href="http://hp.com/go/white-rabbit">blog</a>).</p>
<p>The talk is step up as a three act play.</p>
<h3>Act 1 – Definition</h3>
<p>What is “application logic”?. Rafal is trying to discover the definition to “application logic”, via and interactive process with the audience.</p>
<p>He starts of by showing a business flow for ordering items online as well as adding loyalty points. If the business flow is not implemented correctly, loyalty points get added without the transaction being completed. This means you can get hacked without your infrastructure being compromised.</p>
<p>The difference between flaw in the business logic instead of a flaw in the application logic, is that the latter can be patched, while the first requires a redesign of the program.</p>
<p>How is this different then e.g. the OWASP top 10? The closest match we have is the MITRE CWE Top 25.</p>
<h3>Act 2 – Types of defects</h3>
<p>There are basically two types of these attacks:</p>
<ul>
<li>Privilege manipulation</li>
<li>Transaction control manipulation</li>
</ul>
<p><span id="more-1256"></span></p>
<p>Privilege Manipulation: Flaw based on broken or incomplete authentication/authorization mechanism.</p>
<p>The class of privilege manipulation contains both flaws in application logic and business logic.</p>
<p>E.g. a form posts besides username and password also a field that is called role. By changing the value of this field to e.g. admin, the user can elevate his privileges where this was not intended.</p>
<p>Transaction control manipulation: Exploiting flaws in business logic</p>
<p>E.g. a online ticket shop only sells ten tickets at a time. By changing the data submitted to the webserver it could be possible to order 30 tickets in one go. What if you change the number to a negative number? The company sends you money and ends up with ghost inventory.</p>
<p>These attacks don’t show up in a WaF, it only shows up in an audit.</p>
<p>A big lesson here is that all the business logic should be controlled by the server. The server should now not to allow values bigger or smaller then the allowed values.</p>
<p>Rafal’s research is aimed a better enable testers to find these flaws via automation.</p>
<p>There have been a few talks on this subject in the past, but it hasn’t been addressed concretely enough. There is currently no tool either open source or commercial that tests for these flaws.</p>
<p>Logic vs. Automation</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="200" valign="top"><strong><span style="text-decoration: underline;">Logic </span></strong></td>
<td width="200" valign="top"><strong><span style="text-decoration: underline;">Automation</span></strong></td>
</tr>
<tr>
<td width="200" valign="top">Hard to define!</td>
<td width="200" valign="top">pattern dependent</td>
</tr>
<tr>
<td width="200" valign="top">Domain specific</td>
<td width="200" valign="top">Programmatic</td>
</tr>
<tr>
<td width="200" valign="top">Not pattern based</td>
<td width="200" valign="top">scale is in repeatability</td>
</tr>
<tr>
<td width="200" valign="top"></td>
<td width="200" valign="top">No concept of process</td>
</tr>
</tbody>
</table>
<p>There are some challenges for both humans and technology:</p>
<p>For humans they are: the need to understand the application, they need to drive automation and be able to document and repeat .</p>
<p>For technology they are: How do you map application against the process, identify control logic and how can we differentiate between successful and failed tests.</p>
<p>Application “logic” is tricky. This was demonstrated by the AT&amp;T/iPad email hack. It implies <strong>human logic</strong> is a requirement.</p>
<p>Random fuzzing does not work well against logic errors, because it is not efficient.We are not just looking for malicious or invalid data, we are looking for edge cases that will trip logic flaws.</p>
<h3>Act 3 – Building the framework</h3>
<p>The framework consits of three steps:</p>
<ul>
<li>Model</li>
<li>Manipulate</li>
<li>Analyze</li>
</ul>
<p>Modeling the application means defining the business process, what does it do, how does it do it and what should be the outcome. This should result in a state machine of the application.</p>
<p>Manipulate means manipulating the flow of the application to make it do something different in a meaningful way. A library of pre-defined modification is going to help here.</p>
<p>Analyzing the results of the manipulation is going to be hard. How can you measure the deviation form the desired behaviors cause by our manipulation.</p>
<h3>Demo time</h3>
<p>Rafal showed the current state of the project by means of a demo. He recorded the actions required to store an 8 dollar item into a shopping card and order the itme. Then he introduced a fictitious price increase to $1,000,000. By replaying parts of the steps required to complete the $8 order he was still able to order the item for the original $8 price.</p>
<hr /><strong>Rafal Los</strong>, Web Application Security SME with Hewlett-Packard&#8217;s Application Security Center (ASC), is a 10+ industry veteran who has worked in a variety of security positions from consultant to Information Security Officer in the Fortune 100 within some of the most demanding business environments. Rafal&#8217;s unique blend of technical expertise and business knowledge enable him to teach audiences about security techniques, programs and processes that they can both understand strategically, and realistically apply. He has extensive experience in security testing, risk analysis and management, penetration testing and architecture and policy. Rafal is an accomplished writer maintaining 2 popular blogs with numerous appearances in the mainstream media and niche sites such as Slashdot. Previous successes include building and implementing a successful web application security program for one of the largest and most diverse companies in the world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2011/03/black-hat-eu-defying-logic-by-rafal-los/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The mistery of the missing &#8216;MSS:&#8217; setting on Windows 2008</title>
		<link>http://www.cupfighter.net/index.php/2010/11/missing-mss-setting-windows-2008/</link>
		<comments>http://www.cupfighter.net/index.php/2010/11/missing-mss-setting-windows-2008/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 10:53:36 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[Windows 2008 R2]]></category>
		<category><![CDATA[.adm]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[2008 R2]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[adm file]]></category>
		<category><![CDATA[Adminsitrative Template]]></category>
		<category><![CDATA[Frank Breedijk]]></category>
		<category><![CDATA[Group Policy]]></category>
		<category><![CDATA[Hardening]]></category>
		<category><![CDATA[MSS]]></category>
		<category><![CDATA[Seccubus]]></category>
		<category><![CDATA[Source Routing]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1210</guid>
		<description><![CDATA[I recently got involved in a project where I defined the Baseline Security settings for windows and Linux. I used the settings provided by the Center for Internet Security (CIS). We decided on the following approach: Based on the CIS templates we created a baseline document specific to our company I, in my security role, [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1211" class="wp-caption alignright" style="width: 426px"><a href="http://www.cupfighter.net/wp-content/uploads/2010/11/WhereIsMSS.png"><img class="size-full wp-image-1211 " title="Where did the MSS: settings go?" src="http://www.cupfighter.net/wp-content/uploads/2010/11/WhereIsMSS.png" alt="Screenshot form Group Policy Editor" width="416" height="175" /></a><p class="wp-caption-text">The MSS: settings used to be here...</p></div>
<p>I recently got involved in a project where I defined the Baseline Security settings for windows and Linux. I used the settings provided by the Center for Internet Security (CIS).</p>
<p>We decided on the following approach:</p>
<ul>
<li>Based on the CIS templates we created a baseline document specific to our company</li>
<li>I, in my security role, created a Nessus .audit file, so we could audit compliance to our own baseline with Seccubus</li>
<li>The windows administrator created GPOs to apply the settings.</li>
</ul>
<p>When creating in the GPOs we did a strange discovery. In a windows the settings that are normally marked as MSS: in the category Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options do not appear in a domain if its functional level is Windows 2008.</p>
<p>This made us wonder, have these setting become irrelevant ? If this is not the case, how can we still set them, preferably via group policy?</p>
<p>The settings are not irrelevant, as e.g. <a title="Securing Windows Server 2008 and Active Directory on corelan.be" href="http://www.corelan.be:8800/index.php/2008/04/18/securing-windows-server-2008-and-active-directory/" target="_blank">Peter van Eeckhoutte&#8217;s blog</a> points out. Windows 2008 does not forward IPv4 packets that have source routing on them,  but it does accept them if the machine is the final destination. However for IPv6 Windows 2008 will forward these packets by default.</p>
<p>So if the settings are not irrelevant, how can we apply them if they are not in the Group Policy Editor? For this purpose we created an <a title="Administrative Template ofr the MSS settings" href="http://www.cupfighter.net/wp-content/uploads/2010/11/MSS Settings.zip" target="_blank">.adm</a> file, which can be loaded into the Group Policy editor as a Classic Administrative template.<span id="more-1210"></span></p>
<p>All the MSS settings can be controlled with<a title="Administrative Template ofr the MSS settings" href="../wp-content/uploads/2010/11/MSS%20Settings.zip" target="_blank"> this Administrative template</a>. When we applied these settings we reached our desired compliancy with our own baselines.</p>
<p>Mission Accomplished!</p>
<p>So what are these MSS setting and what do they do?</p>
<table>
<thead>
<tr>
<td><span style="text-decoration: underline;"><strong>Setting</strong></span></td>
<td><span style="text-decoration: underline;"><strong>Description</strong></span></td>
<td><span style="text-decoration: underline;"><strong>Recommended value</strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td>MSS: (AutoAdminLogon) Enable Automatic Logon (not recommended)</td>
<td>Defines whether a user with physical access to a computer is able to automatically log on.</td>
<td>Disabled</td>
</tr>
<tr>
<td>MSS: (DisableIPSourceRouting) IP source routing protection level (protects against packet spoofing)</td>
<td>Determines if Windows will accept source routed packets.<br />
0 &#8211; Accepts and forwards<br />
1 &#8211; Accept but do not forward<br />
2 &#8211; Do not accept</td>
<td>2</td>
</tr>
<tr>
<td>MSS: (EnableICMPRedirect) Allow ICMP redirects to override OSPF generated routes</td>
<td>Allows ICMP redirects to overwrite OSFP generated routes</td>
<td>Disabled</td>
</tr>
<tr>
<td>MSS: (KeepAliveTime) How often keep-alive packets are sent in millisecond</td>
<td>Defines every how many milliseconds TCP attempts to send a keep-alive packet to verify that an idle connection is still intact</td>
<td>No recommendation</td>
</tr>
<tr>
<td>MSS: (NoDefaultExempt) Configure IPSec exemptions for various types of network traffic</td>
<td>Defines which traffic is allowed to reach the machine outside IPSec<br />
0 &#8211; Multicast, Broadcast, RSVP, Kerberos and IKE(ISAKMP are exempt from IPSec filtering<br />
1 &#8211; Kerberos and RSVP are not exempt, but Multicast, Broadcast and IKE are exempt from IPSec filtering<br />
2 -  Multicast and Broadcast are not exempt, but RSVP, Kerberos andand IKE traffic are exempt from IPSEC filtering<br />
3 &#8211; Only IKE traffic is exempt from IPSec filtering</td>
<td>3</td>
</tr>
<tr>
<td>MSS: (NoNameReleaseOnDemand) Allow the computer to ignore NetBIOS name release requests except from WINS servers</td>
<td>Defines whether a computer disregards NetBIOS name release requests except those from WINS server in the SCE.</td>
<td>Enabled</td>
</tr>
<tr>
<td>MSS: (NtfsDisable8dot3NameCreation) Enable the computer to stop generating 8.3 style filenames (recommended)</td>
<td>Defines whether a computer can stop generating 8.3 style file names:<br />
0 &#8211; NTFS creates short file names.<br />
1 &#8211; Disable NTFS short file name creation on all volumes.</p>
<p>2 &#8211; NTFS sets the 8.3 naming convention creation on a per volume basis.<br />
3 &#8211; NTFS disables 8dot3 name creation on all volumes except the system volume.</td>
<td>1</td>
</tr>
<tr>
<td>MSS: (PerformRouterDiscovery) Allow IRDP to detect and configure Default Gateway addresses (could lead to DoS)</td>
<td>Defines whether Internet Router Discovery Protocol (IRDP) is used to automatically detect and configure default gateway addresses:<br />
0 &#8211; Disabled<br />
1 &#8211; Enabled<br />
2 &#8211; Enable only if DHCP server sends the Perform Router Discovery Option</td>
<td>0</td>
</tr>
<tr>
<td>MSS: (SafeDllSearchMode) Enable Safe DLL search mode (recommended)</td>
<td>Defines whether an application is forced to begin its DLL search in the system path before searching the current working folder</td>
<td>Enabled</td>
</tr>
<tr>
<td>MSS: (ScreenSaverGracePeriod) The time in seconds before the screen saver grace period expires (0 recommended)</td>
<td>Defines how many seconds between when the screen saver is launched and when the computer console is actually locked.</td>
<td>0</td>
</tr>
<tr>
<td>MSS: (TCPMaxDataRetransmissions) How many times unacknowledged data is retransmitted (3 recommended, 5 is default)</td>
<td>Defines the number of times that TCP retransmits an individual data segment before the connection is aborted</td>
<td>3</td>
</tr>
<tr>
<td>MSS: (WarningLevel) Percentage threshold for the security event log at which the system will generate a warning</td>
<td>Defines whether an entry is added to the Security event log when the log reaches a user-defined threshold</td>
<td>&lt;=90%</td>
</tr>
<tr>
<td>MSS: (DisableIPSourceRouting IPv6) IP source routing protection level (protects against packet spoofing)</td>
<td>Determines if Windows will accept source routed packets.<br />
0 &#8211; Accepts and forwards<br />
1 &#8211; Accept but do not forward<br />
2 &#8211; Do not accept</td>
<td>2</td>
</tr>
<tr>
<td>MSS: (TCPMaxDataRetransmissions) IPv6 How many times unacknowledged data is retransmitted (3 recommended, 5 is default)</td>
<td>Defines the number of times that TCP retransmits an individual data segment before the connection is aborted</td>
<td>3</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/11/missing-mss-setting-windows-2008/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Infosecurity.nl: Social Engineering and Social media by Sharon Conheady</title>
		<link>http://www.cupfighter.net/index.php/2010/11/infosecnl-social-engineering/</link>
		<comments>http://www.cupfighter.net/index.php/2010/11/infosecnl-social-engineering/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 15:30:34 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Infosecurity.nl]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Sharon Conheady]]></category>
		<category><![CDATA[social networking]]></category>
		<category><![CDATA[social networks]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1204</guid>
		<description><![CDATA[Sharon works as a social engineer in London for First Defence. As social engineer she breaks into buildings, lies to people and pretends to be other people. It was a trade that she started young and later found out that she could earn a living and she has been doing it for over ten years. [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 272px"><a href="http://www.flickr.com/photos/16851909@N00/93136022/"><img class=" " title="Logo 2.0 Part I" src="http://farm1.static.flickr.com/14/93136022_25afa7e458.jpg" alt="" width="262" height="300" /></a><p class="wp-caption-text">Logo 2.0 Part I</p></div>
<p>Sharon works as a social engineer in London for First Defence. As social engineer she breaks into buildings, lies to people and pretends to be other people. It was a trade that she started young and later found out that she could earn a living and she has been doing it for over ten years. Social networks has influenced social engineering and made it a lot easier.</p>
<p>Social engineering is used for both good and bad, even tough the bad use gets a lot more attention then the good uses. All advertising is a form of social engineering.</p>
<p>If hackers are using social engineering they are effectively hacking the human firewall in stead of the technical firewall.</p>
<p>Why does it work?</p>
<ul>
<li>People have a tendency to trust</li>
<li>People want to help</li>
<li>People respect authorities</li>
<li>It is easier to give people information then to get rid of them</li>
<li>People don’t like confrontations</li>
<li>Social engineers invoke emotion</li>
</ul>
<p>Why do Social Engineering and Social Networking combine so “well”? Social engineering exploits trust, and social networks are built on trust.<span id="more-1204"></span></p>
<p>Why would a social engineer use social networks?</p>
<ul>
<li>There is a huge attack surface (400M+ facebook users)</li>
<li>Quick and easy and to some extend even automated</li>
<li>Low threshold (almost not skills required)</li>
<li>It is public information, so no laws are broken</li>
<li>No more dumpster diving <img class="wlEmoticon wlEmoticon-winkingsmile" style="border-style: none;" src="http://www.cupfighter.net/wp-content/uploads/2010/11/wlEmoticon-winkingsmile.png" alt="Winking smile" /></li>
</ul>
<p>Why does social engineering work so well?</p>
<ul>
<li>Trust model</li>
<li>No real authentication</li>
<li>Influential
<ul>
<li>Social Proof: People do things other peoples do</li>
<li>Similarity: People who are “similar” to us have more influence</li>
</ul>
</li>
</ul>
<p>Impersonation in the real world requires, acting, costumes, may be illegal, takes lots of planning, multiple people. So it’s easy to get caught.</p>
<p>Social network impersonation requires, a fake profile, a good (seductive) picture and some patience and typing. This was proven by the <a href="http://science.dodlive.mil/2010/07/21/the-dangers-of-friending-strangers-the-robin-sage-experiment/" target="_blank">Robin Sage experiment</a>.</p>
<p>What does Sharon used LinkedIn for?</p>
<ul>
<li>Tactical Research</li>
<li>Organization chart</li>
<li>Identity information</li>
<li>Name dropping</li>
<li>Check who is on holiday (Trippit)</li>
<li>Fake profiles or fake invites</li>
</ul>
<p>For ethical social engineering 90% of the time is spent doing research online.</p>
<p>Most on-line social engineering attempts are classical attacks adapted for on-line use:</p>
<ul>
<li>419 scams used to come via fax and letter</li>
<li>Instead of scams coming from a stranger they come form a friend</li>
<li>“Stranded” are more believable when executed during incidents like the “ashcloud”</li>
<li>Friends of targets may become first targets themselves</li>
</ul>
<p>Sharon showed us three examples of social engineering attacks executed in real life.</p>
<p>Sharon was able to show us numerous examples of how she could abuse real information posted online. LinkedIn, Facbook, Blippy, Foursquare where all present.</p>
<p>So what can you do about it?</p>
<ul>
<li>User awareness</li>
<li>Have a policy</li>
<li>Be careful what you post online</li>
<li>Avoid “promiscuous” friending</li>
<li>Don’t click on links in emails that are received unexpectedly</li>
<li>Google yourself</li>
</ul>
<p>Most posts to social networks are done during work hours and form work laptops… think about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/11/infosecnl-social-engineering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IVIL : An XML schema to exchange vulnerability information</title>
		<link>http://www.cupfighter.net/index.php/2010/10/ivil-an-xml-schema-to-exchange-vulnerability-information/</link>
		<comments>http://www.cupfighter.net/index.php/2010/10/ivil-an-xml-schema-to-exchange-vulnerability-information/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 14:48:45 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Seccubus]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IVIL]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[Nessus]]></category>
		<category><![CDATA[Nexpose]]></category>
		<category><![CDATA[Nikto]]></category>
		<category><![CDATA[OpenVAS]]></category>
		<category><![CDATA[Vulnerabilities]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[Zate]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1164</guid>
		<description><![CDATA[Last Friday I had the pleasure of discussing security software with Zate, the author of the Nessus Bridge for the Metasploit framework. During the conversions we both agreed that it would be very practical if there was a way to make various security tools interchange vulnerability information more easily and openly. During this discussion IVIL [...]]]></description>
			<content:encoded><![CDATA[<p>Last Friday I had the pleasure of discussing security software with <a title="@Zate on Twitter" href="http://twitter.com/zate" target="_blank">Zate</a>, the author of the <a title="Things and Stuff blog" href="http://blog.zate.org/2010/09/26/nessus-bridge-for-metasploit-intro/" target="_blank">Nessus Bridge for the Metasploit framework</a>. During the conversions we both agreed that it would be very practical if there was a way to make various security tools interchange vulnerability information more easily and openly. During this discussion IVIL was born, the Intermediary Vulnerability Information Language.</p>
<p>IVIL is an XML schema to feed vulnerability information that is the output of a tool like e.g. <a title="Nessus website" href="http://nessus.org" target="_blank">Nessus</a>, <a title="Nikto website" href="http://cirt.net/nikto2" target="_blank">Nikto</a> or <a title="OpenVAS website" href="http://www.openvas.org/" target="_blank">OpenVAS</a> into a tool to further use this information like e.g. <a title="Seccubus website" href="http://seccubus.com" target="_blank">Seccubus</a>.</p>
<p>We felt that there is a need for an open, non-proprietary language that is lean and mean even though a lot of tools offer a native XML output because such a solution has a number of advantages.</p>
<ul>
<li>Not need to modify the receiving tool. Having an intermediary language means that a new tool can be integrated into an existing tool without the need to make modification to the tool receiving the information.</li>
<li>Support for home brew tools. The open format makes it possible to integrate home brew tools with other tools without the need for the original author to put effort into supporting a tool “nobody uses”.</li>
<li>Programming language independent. There is no need for anybody that want to integrate two tools be master the programming languages these tools where written in.</li>
</ul>
<p>We felt we needed to share this work on IVIL to get the widest possible basis for adoption.</p>
<p>During our initial call we came up with this initial version of the XML schema:</p>
<p><span id="more-1164"></span></p>
<pre>&lt;IVIL version=0.2&gt;
    &lt;addressee&gt;
        &lt;program&gt;Seccubus|…
        &lt;programSpecificData&gt;
            &lt;ScanID&gt;
            &lt;ScanID&gt;
        &lt;/programSpecificData&gt;
    &lt;/addressee&gt;
    &lt;sender&gt;
        &lt;scanner_type&gt;Nessus|Nessus|Nikto|MSF|OpenVAS
        &lt;version&gt;
        &lt;timestamp&gt;YYYYMMDDHHMMSS&lt;/
    &lt;sender/&gt;
    &lt;findings&gt;
        &lt;finding&gt;
            &lt;ip&gt;
            &lt;port&gt;
            &lt;id&gt;
            &lt;severity&gt;
            &lt;finding_txt&gt;
            &lt;references&gt;
                &lt;cve&gt;
                &lt;bid&gt;
                &lt;osvdb&gt;
                &lt;url&gt;
                &lt;msf&gt;
            &lt;/references&gt;
        &lt;/finding&gt;
    &lt;/findings&gt;
&lt;/ivil&gt;</pre>
<p>During our initial call we came up with this initial version of the XML schema:</p>
<pre>&lt;IVIL version=0.2&gt;
    &lt;addressee&gt;
        &lt;program&gt;Seccubus|…
        &lt;programSpecificData&gt;
            &lt;ScanID&gt;
            &lt;ScanID&gt;
        &lt;/programSpecificData&gt;
    &lt;/addressee&gt;
    &lt;sender&gt;
        &lt;scanner_type&gt;Nessus|Nikto|MSF|OpenVAS|Qualis|...
        &lt;version&gt;
        &lt;timestamp&gt;YYYYMMDDHHMMSS&lt;/
    &lt;sender/&gt;
    &lt;hosts&gt;
        &lt;host&gt;
            &lt;ip&gt;
	    &lt;findings&gt;
	        &lt;finding&gt;
                    &lt;port&gt;
                    &lt;id&gt;
                    &lt;severity&gt;
                    &lt;finding_txt&gt;
                    &lt;references&gt;
                        &lt;cve&gt;
                        &lt;bid&gt;
                        &lt;osvdb&gt;
                        &lt;url&gt;
                        &lt;msf&gt;
                    &lt;/references&gt;
                &lt;/finding&gt;
            &lt;/findings&gt;
        &lt;/host&gt;
    &lt;/hosts&gt;
&lt;/ivil&gt;</pre>
<p>So, lets go through the meaning of each block.</p>
<pre>&lt;IVIL version=0.2&gt;
    &lt;addressee&gt;
        &lt;program&gt;Seccubus|…
        &lt;programSpecificData&gt;
            &lt;Scan&gt;
            &lt;WorkSpace&gt;
        &lt;/programSpecificData&gt;
    &lt;/addressee&gt;</pre>
<p>The addressee block of the file is optional. It can contains information specific to the receiving program. E.g. for Seccubus you could use this block to specify which workspace and scan to load the data into.</p>
<pre>    &lt;sender&gt;
        &lt;scanner_type&gt;Nessus|Nikto|MSF|OpenVAS
        &lt;version&gt;
        &lt;timestamp&gt;YYYYMMDDHHMMSS&lt;/
    &lt;sender/&gt;</pre>
<p>The sender block contains generic information about the scan. Which scanner was used, which version and when did the scan take place. There three attributes of the sender are mandatory, but other attributes can be added if so desired.</p>
<pre>    &lt;findings&gt;
        &lt;findings&gt;
            &lt;ip&gt;
            &lt;port&gt;
            &lt;id&gt;
            &lt;severity&gt;
            &lt;finding_txt&gt;</pre>
<p>The header of the findings block defines on which host ip and port the finding was found, this information can also be stored in the host block of the per host version of the schema. It then contains the id of the finding (e.g. the Nessus plugin number), the severity (0=undetermined,1=low, 2=medium, 3=high) and a human readable description of the finding. For Nessus this description would be the combination of the finding description and plugin output</p>
<pre>            &lt;references&gt;
                &lt;cve&gt;
                &lt;bid&gt;
                &lt;osvdb&gt;
                &lt;msf&gt;
                &lt;url&gt;
            &lt;/references&gt;</pre>
<p>The references block contains one or more references. CVE tages refer to CVE findings in the format (CVE|CAN)-YYYY-####, BID to security focus vulnerability database findings in the format BID:####, OSVDB tags to Open Vulnerability DataBase references in OSVDB:##### format, msf tags refer to Metasploit Framework references in the format xxxxx/xxxxx/xxxxx and url tags can be used to refer to generic URLs.</p>
<pre>        &lt;/finding&gt;
    &lt;/findings&gt;
&lt;/ivil&gt;</pre>
<p>This block closes the IVIL file.</p>
<p>So let&#8217;s say that Zate wants to write a module that starts a Nessus scan and uploads the result to Seccubus. All he needs to do is write a command line program that starts the scan, outputs the results into IVIL format and load the IVIL into seccubus. the command line would look something like this.</p>
<pre>&gt; /opt/zatescan/perform-nessus-scan &gt; /tmp/scan.ivil
&gt; /opt/seccubus/bin/load-ivil /tmp/scan.ivil</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/10/ivil-an-xml-schema-to-exchange-vulnerability-information/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>My take on MS10-070 &#8211; A tricky patch</title>
		<link>http://www.cupfighter.net/index.php/2010/09/ms10-070/</link>
		<comments>http://www.cupfighter.net/index.php/2010/09/ms10-070/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 08:00:17 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WSUS]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[32bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[ASP.net]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[Download center]]></category>
		<category><![CDATA[Frank Breedijk]]></category>
		<category><![CDATA[Juliana Rizzo]]></category>
		<category><![CDATA[MachineKey]]></category>
		<category><![CDATA[MS10-070]]></category>
		<category><![CDATA[msftsecresponse]]></category>
		<category><![CDATA[Netifera]]></category>
		<category><![CDATA[oob]]></category>
		<category><![CDATA[Out of band]]></category>
		<category><![CDATA[Padding Oracle]]></category>
		<category><![CDATA[Padding Oracle Vulnerability]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patch tuesday]]></category>
		<category><![CDATA[Patches]]></category>
		<category><![CDATA[Patching]]></category>
		<category><![CDATA[Schuberg Philis]]></category>
		<category><![CDATA[Scott Gurthrie]]></category>
		<category><![CDATA[Thai Duong]]></category>
		<category><![CDATA[webcast]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1158</guid>
		<description><![CDATA[Last night I attended the Microsoft Security Response Team webcast regarding the Out Of Band patch for the ASP.net padding Oracle vulnerability discovered by Juliana Rizzo and Thai Duong 11 days before. My main objective in watching the webcast (which is not my usual habit) was to find out if systems that have the described [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cupfighter.net/wp-content/uploads/2010/09/asp.not_.png"><img class="alignright size-full wp-image-1159" title="ASP.not" src="http://www.cupfighter.net/wp-content/uploads/2010/09/asp.not_.png" alt="ASP.Net logo, broken" width="207" height="155" /></a>Last night I attended the <a title="@msftsecresponse on Twitter" href="http://twitter.com/msftsecresponse" target="_blank">Microsoft Security Response Team</a> <a title="Recorded WebCast" href="https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032464131&amp;culture=en-us" target="_blank">webcast</a> regarding the Out Of Band patch for the <a title="Scott Guthrie's blog" href="http://weblogs.asp.net/scottgu/archive/2010/09/24/update-on-asp-net-vulnerability.aspx" target="_blank">ASP.net padding Oracle vulnerability</a> discovered by <a title="@julianor on Twitter" href="http://twitter.com/julianor" target="_blank">Juliana Rizzo</a> and <a title="@thaidn on Twitter" href="http://twitter.com/thaidn" target="_blank">Thai Duong</a> 11 days before.</p>
<p>My main objective in watching the webcast (which is not my usual habit) was to find out if systems that have the described workaround applied still need to apply the patch. The webcast did not give a definitive answer but <a title="YouTube video of POET compromising an Asp.net installation with workaround applied" href="http://www.youtube.com/watch?v=mP6mKLh1FBw" target="_blank">this YouTube video</a> and the <a title="Netifera website" href="http://netifera.com/research/" target="_blank">Netifera website</a> and the twitter accounts <a title="@thaidn on should I apply the patch or not..." href="http://twitter.com/thaidn/status/25832618846" target="_blank">Thai Duong</a> provide the answer: <strong>Yes you should apply the patch a.s.a.p!</strong></p>
<p><p><a href="http://www.cupfighter.net/index.php/2010/09/ms10-070/"><em>Click here to view the embedded video.</em></a></p><strong><br />
</strong></p>
<p>However the Q&amp;A section of the talk did give me, as a security operations guy, quite some food for thought. I made some notes in my own <a title="@Seccubus on Twitter" href="http://twitter.com/seccubus" target="_blank">Twitter feed</a>, which I have summarized here.</p>
<p>Q: Why did Microsoft release and OOB update for a vulnerability rated “only” as important?<br />
A: The vulnerability itself is rated as Important because it is not a vulnerability that directly leads to remote code execution on the vulnerable system, however exploitation of the vulnerability will lead to disclosure of all information in the webroot including web.config. This information can be used for session hijacking, compromising backend databases and to attack associations between websites, e.g. the association of a website with PayPal. Hence an out of band patch was warranted.</p>
<p>Q: Why only release to the download center and not to WSUS etc?<br />
A: We felt we needed to get this update out quickly, the people that need to apply this patch quickly are mainly enterprises who are capable of applying patches without the aid of WSUS. Developing the WSUS capabilities would add another few days of delay to the deployment of this patch.</p>
<p>Q: Is the attack actively used?</p>
<p><span id="more-1158"></span></p>
<p>A: We have seen limited attacks against this vulnerability as well as continuous efforts to to bypass installed workarounds.</p>
<p>Q: Can the patch be uninstalled, does it require a reboot?<br />
A: The patch can be uninstalled and does require a reboot.</p>
<p>Q: If you have multiple versions of .Net installed on the system, do you need to install all patches for each version of .Net?<br />
A: Yes.</p>
<p>Q: If you have 64bit and 32bit version of Asp.Net installed, do you need to apply both 64bit and 32bit patches?<br />
A: No, the 64bit patch will patch the 32bit versions as well.</p>
<p>Q: Should we regard the ASP.NET <a title="MSDN article about the Machine Key" href="http://msdn.microsoft.com/en-us/library/ff649308.aspx" target="_blank">MachineKey</a> as compromised?<br />
A: Yes, if you have set a static MachineKey it is recommended to <a title="ASP.Net MachineKey generator application" href="http://www.codeproject.com/KB/aspnet/machineKey.aspx" target="_blank">replace this key with a new key</a>. (Information on AutoGenerated MachineKeys was not provided)</p>
<p>Q: Will the patch have an effect on end-users?<br />
A: Yes, information stored on the client that is protected by the MachineKey can no longer be validated. This can e.g. mean that users whoo used a ‘remember me’ function will have to login in again.</p>
<p>Q: Does the patch need to be applied to all nodes of a cluster?<br />
A: Yes, because the patch changes the way data in transit (such as e.g. viewstate) is encrypted, this patch needs to be applied to all nodes in a cluster as the same time or users may experience unexpected results.</p>
<p>Q: Does the patch change IIS?<br />
A: No, the patch only changes ASP.NET, not IIS.</p>
<p>Q: Does the patch change the way encrypted data is stored on the server?<br />
A: No, the patch changes the way data in transit is cryptographically protected, both encryption and signing is now applied. It does not effect any encrypted data stored on the server.</p>
<p>Q: Are the patches in the download center “smart” enough to know if they are applicable for the machine you apply them to?<br />
A: No, detection capabilities will be built into the patches once they are deployed to WSUS.</p>
<p>Q: Should the update be applied to all .net installation, not just web servers?<br />
A: The vulnerability only manifests itself via web servers. For now it is recommended to only install patches there, and way for the patches to appear in WSUS before patching other .net installs. But remember a system with an unpatched .net installation will become vulnerable as soon as a webserver is installed.</p>
<p>Q: Should the workaround be removed prior to patching?<br />
A: No, you can apply the patch with the workaround in place. If you need to do so you can then remove the workaround after the patch has been applied. CustomErrors generally does not hurt and neither does UrlScan all though UrlScan is known to break SharePoint and may break other web applicaitons as well</p>
<p>Q: Do customer applications need to be recompiled?<br />
A: No.</p>
<p><a title="Scott Guthrie’s blog" href="http://weblogs.asp.net/scottgu/archive/2010/09/28/asp-net-security-update-now-available.aspx" target="_blank">Scott Guthrie’s blog</a> has an excellent overview of which patch is applicable to which platform.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/09/ms10-070/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>BruCon &#8211; Embedded security systems and my plot to take over the world</title>
		<link>http://www.cupfighter.net/index.php/2010/09/brucon-embedded-security/</link>
		<comments>http://www.cupfighter.net/index.php/2010/09/brucon-embedded-security/#comments</comments>
		<pubDate>Fri, 24 Sep 2010 14:21:46 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[BruCon]]></category>
		<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Embedded Systems]]></category>
		<category><![CDATA[Paul Assodoriant]]></category>
		<category><![CDATA[Paul dot com]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1155</guid>
		<description><![CDATA[By Paul Assodorian Paul is best know for his PodCast: Paul dot com and his work as product evangalist for Tennable. So what do you need to take over the world? Money – Bribes and stuff Power – Ability to control resources to control people Stealth – You don’t want people to know. So lets [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.cupfighter.net/wp-content/uploads/2010/09/Linksys-WRT54G-Ultimate-Hacking.jpg"><img class="alignright size-full wp-image-1156" title="Linksys-WRT54G-Ultimate-Hacking" src="http://www.cupfighter.net/wp-content/uploads/2010/09/Linksys-WRT54G-Ultimate-Hacking.jpg" alt="Paul's old book" width="157" height="193" /></a>By <a title="@PaulDotCom on Twitter" href="http://twitter.com/pauldotcom" target="_blank">Paul Assodorian</a></p>
<p>Paul is best know for his PodCast: <a title="Paul dot com security podcast" href="http://pauldotcom.com" target="_blank">Paul dot com</a> and his work as product evangalist for Tennable.</p>
<p>So what do you need to take over the world?</p>
<ol>
<li>Money – Bribes and stuff</li>
<li>Power – Ability to control resources to control people</li>
<li>Stealth – You don’t want people to know.</li>
</ol>
<p>So lets work on the first step, how can you use embedded systems to make money? Well, embedded systems are part of video games, settop boxes, wireless routers and printers and faxes. All these systems are used to perform transactions.</p>
<p><span id="more-1155"></span></p>
<p>The second step, how to we use embedded systems to gain power? Information is power, so if you can manipulate the traffic that flows through the internet you can manipulate it.</p>
<p>Embedded systems are also used to control manufacturing systems, power grids, etc.</p>
<p>Stealth is easy. nobody cares about embedded systems. Embedded systems don’t have room from security so breaking in them is easy and does not set off any alarms.</p>
<p>There about 1.6 million open LinkSys routers in the wild accoording to wiggle.net. At lot of these systems have vulnerabilities in them and/or use default passwords.</p>
<p>It is easy to find vulnerable devices. There are dynamic DNS providers that allow you to get a listing of all Linksys devices (fixed). Or you can e.g. can check for hard coded NTP servers.</p>
<p>Printers often have default password or do not require a default by default. But a printer is just a printer, right? Wrong! They are multifunctional systems that are capable capturing scanned documents, send email and are often connected to the Internet. They even allow you to grep their USB stick.</p>
<p>Paul is collecting security failures at <a href="http://www.securityfail.com">www.securityfail.com</a></p>
<p>What are the goals of securityfail.com?</p>
<ul>
<li>Force users to set a password</li>
<li>Force ISPs to do security</li>
<li>Allow users to turn of protocols</li>
</ul>
<p>Securityfail.com is a non profit project</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/09/brucon-embedded-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DefCon &#8211; Crack me if you can&#8230; &#8211; or how to prove password policies are harmfull</title>
		<link>http://www.cupfighter.net/index.php/2010/08/defcon-crack-me-if-you-can/</link>
		<comments>http://www.cupfighter.net/index.php/2010/08/defcon-crack-me-if-you-can/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:52:13 +0000</pubDate>
		<dc:creator>Frank Breedijk</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Defcon]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[DefCon18]]></category>
		<category><![CDATA[KoreLogic]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://www.cupfighter.net/?p=1141</guid>
		<description><![CDATA[One of the DefCon contests that most sparked my imagination was the &#8220;Crack me if you can&#8221; password cracking contest, organized by KoreLogic. The goal of the contest is to crack as many of the password hashes provided as possible. The rules of the contest allow the use of off-site and on-site computer equipment of [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 235px"><a href="http://www.flickr.com/photos/8395041@N02/2505803867/"><img class=" " title="Passwords are like Pants..." src="http://farm4.static.flickr.com/3159/2505803867_913846f3ed.jpg" alt="Passwords are like Pants... " width="225" height="300" /></a><p class="wp-caption-text">Passwords are like Pants... a Creative Commons Attribution, Noncommercial, No Derivative Works image from Richard Parmiter&#39;s Flickr fotostream</p></div>
<p>One of the DefCon contests that most sparked my imagination was the &#8220;Crack me if you can&#8221; password cracking contest, organized by KoreLogic. The goal of the contest is to crack as many of the password hashes provided as possible. The rules of the contest allow the use of off-site and on-site computer equipment of any kind, but in order to be eligible for any prize money at least one team member had to be physically present at the DefCon conference.</p>
<p>The competition is interesting in more than one way. First of all the contest is educational in setup. Even though the amount of computer power a team can come up with is important in getting to good results, it is not the determining factor in winning or losing the contest. Key to winning or doing well in the contest was understanding human behavior. KoreLogic generated a set of passwords they feel is representative of what they actually encounter in the field. Most corporate environments rely on a common set of rules that are used to enforce user to pick &#8220;strong&#8221; passwords and force them to change them regularly. While the goal of the rules is actually commendable, KoreLogic&#8217;s experience learns them that the human behavior triggered by these rules cause passwords to be very predictable. &#8220;If you force employees to change their passwords four times a year, they will select something that naturally changes four times in most cities (except Las Vegas)&#8221;, typical passwords we find are things like Winter2010. Once you understand this pattern, you can actually reliably predict what this password will in say 9 months or a year. Teams that actually saw this pattern and used it to make smarter password guesses did better in the competition.<br />
<span id="more-1141"></span><br />
The key to making hard to guess passwords is to break with this predicable behavior. If people have to put a special character in their passwords they usually put them in the beginning or at the end of their password, e.g. Summer1969! We had a number of passwords that actually had a password in the middle of it and these passwords where significantly harder to crack.</p>
<p>There is a significant difference between the success rates of cracking certain password hashes. E.g. windows password hashes have proven at be extremely easy to crack. All the teams together cracked 94% of all the windows password hashes provided to them. These contain some LM hashes, but mostly NTLM and NTLM2 hashes. A stupid 20 character long Windows administrator password (2345678901234567890) was guessed by all teams, even though there are no rainbow tables available for passwords of this length . Operating systems like FreeBSD do much better, less than ten of these hashes where cracked and BCrypt hashes achieved an even better success rate, only a few hashes where cracked. Absolute winner where the Oracle password hashes, none of these where cracked.</p>
<p>While this was a serious competition and the first prize of $600 was won by team HashCat, the competition was mostly educational in its setup. Only teams that published their methods for cracking are eligible to win and all results and methods used will be published online later this week (@@@@). The contestants used an interesting array of computer equipment. Graphics Cards based systems, clustered Amazon EC2 instances and a university super computer cluster with 1TB of memory where all used as well as plain simple desktop computers.<br />
Hopefully this competition will not only learn us how to better crack passwords, but also how to pick better passwords and thus make us all a little bit more secure.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cupfighter.net/index.php/2010/08/defcon-crack-me-if-you-can/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

