<?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>kevin&#039;s blog &#187; Sicherheit</title>
	<atom:link href="http://blog.kevin-k.com/category/sicherheit/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.kevin-k.com</link>
	<description>just another blog from just another blogger.</description>
	<lastBuildDate>Fri, 19 Feb 2010 22:04:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>snmpd: cannot open /proc/net/dev or /proc/net/snmp</title>
		<link>http://blog.kevin-k.com/2009-06-22/snmpd-cannot-open-procnetdev-or-procnetsnmp.html</link>
		<comments>http://blog.kevin-k.com/2009-06-22/snmpd-cannot-open-procnetdev-or-procnetsnmp.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 21:14:01 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Sicherheit]]></category>

		<guid isPermaLink="false">http://blog.kevin-k.com/?p=621</guid>
		<description><![CDATA[I get the following message in syslog from snmpd:

Jun 22 17:10:43 test snmpd[9508]: cannot open /proc/net/snmp ...
Jun 22 17:10:45 test snmpd[9508]: cannot open /proc/net/dev ...

The problem is, that snmpd has no rights to access the proc-filesystem to gather information about interfaces and so.
check the rights of the user and group of snmpd:

root@test:~$ cat /proc/$(pidof snmpd)/status [...]]]></description>
			<content:encoded><![CDATA[<p>I get the following message in syslog from snmpd:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Jun 22 17:10:43 test snmpd[9508]: cannot open /proc/net/snmp ...
Jun 22 17:10:45 test snmpd[9508]: cannot open /proc/net/dev ...</pre></div></div>

<p>The problem is, that snmpd has no rights to access the proc-filesystem to gather information about interfaces and so.</p>
<p>check the rights of the user and group of snmpd:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">root@test:~$ cat /proc/$(pidof snmpd)/status | grep -i -e &quot;^[u|g]id&quot;
Uid:    106     106     106     106
Gid:    0       0       0       0</pre></div></div>

<p>In my case, the problem was that i was running a grsec kernel (stupid default kernel of my root) and access to proc by users was permitted by the kernel.<br />
to change this, you must change your kernel config (see grsecurity for instructions).</p>
<p>another solution is to change the user or group to a special grsec user/group. but event this is not working correct under some distributions, but <a href="http://blog.oxynux.org/post/2008/12/07/Grsec-snmpd">patching the source code of snmpd</a> may help.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kevin-k.com/2009-06-22/snmpd-cannot-open-procnetdev-or-procnetsnmp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schwachstelle bei der Rapidshare Authentifizierung</title>
		<link>http://blog.kevin-k.com/2009-03-14/schwachstelle-bei-der-rapidshare-authentifizierung.html</link>
		<comments>http://blog.kevin-k.com/2009-03-14/schwachstelle-bei-der-rapidshare-authentifizierung.html#comments</comments>
		<pubDate>Sat, 14 Mar 2009 21:03:32 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Sicherheit]]></category>

		<guid isPermaLink="false">http://blog.kevin-k.com/?p=501</guid>
		<description><![CDATA[Rapidshare ist wohl einer, wenn nicht gar der größte One Click Hoster der Welt. Als normaler Benutzer kann man Dateien nur mit lästiger Warzezeit und eingeschränkten Downloadraten beziehen. Als Premium Benutzer gibt es diese Beschränkung nicht.
Ich möchte hier die Schwachstelle der Rapidshare Authentifizierung durch das user-Cookie aufzeigen. Das hier ist *keine* Anleitung zum sniffen von [...]]]></description>
			<content:encoded><![CDATA[<p>Rapidshare ist wohl einer, wenn nicht gar der größte One Click Hoster der Welt. Als normaler Benutzer kann man Dateien nur mit lästiger Warzezeit und eingeschränkten Downloadraten beziehen. Als Premium Benutzer gibt es diese Beschränkung nicht.</p>
<p>Ich möchte hier die Schwachstelle der Rapidshare Authentifizierung durch das user-Cookie aufzeigen. Das hier ist *keine* Anleitung zum sniffen von Rapidshare Zugangsdaten.</p>
<p><span id="more-501"></span>Wir nehmen einen Premium Account und loggen uns bei Rapidshare ein.<br />
Das erste was auffällt: https. Das heißt für einen MITM-Angriff ist hier bereits Schluss (bzw. nicht unbedingt, man siehe sich das dsniff Package an) da die übertragenen Daten mittels SSL verschlüßelt werden.</p>
<p>Haben wir uns eingeloggt, kommt der interessanteste Teil: Das user-Cookie von Rapidshare. Das sieht folgendermaßen aus:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">4108813-%67%73%55%6D%45%57%56</pre></div></div>

<p>Wie man bereits sehen kann, ist das Passwort entsprechend des ASCII-Zeichensatzes maskiert.</p>
<p>Tippt folgendes in die Firefox Adressleiste ein:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>unescape<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'4108813-%67%73%55%6D%45%57%56'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>unescape() wandelt die maskierten Zeichen in richtige Zeichen um. Das Ergebnis sind eure Zugangsdaten in Plaintext.</p>
<p>Nun möchte ich zeigen, wie leicht es ist, Traffic nach diesem Cookie zu analysieren. Wir gehen davon aus, das wir eingehenden Traffic (z.b. MITM / Proxy / Gateway) an unserem Netzwerkinterface haben, den wir mittels ngrep analysieren:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">ngrep -q -W byline -d any &quot;Cookie: user=&quot; port 80 | grep &quot;Cookie: &quot;</pre></div></div>

<p>Was die entsprechenden Parameter bedeuten, bezieht Ihr bitte aus der Man-Page.</p>
<p>Das Ergebnis:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">match: Cookie: user=
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
Cookie: user=4108813-%67%73%55%6D%45%57%56.
...</pre></div></div>

<p>Bei jedem Download wird das user-Cookie an die Rapidshare Server übermittelt. Da dies mittels HTTP passiert &#8211; und somit nicht verschlüßelt ist &#8211; ist es jedem der zwischen Client und Server steht möglich, die Zugangsdaten zu ermitteln.</p>
<p>Durch diese Schwachstelle sind nicht nur die Persönlichen Daten des Rapidshare-Benutzers gefährdet, sondern eben auch dessen Account selbst.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kevin-k.com/2009-03-14/schwachstelle-bei-der-rapidshare-authentifizierung.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Socks Proxy mit plink unter Windows</title>
		<link>http://blog.kevin-k.com/2008-07-31/socks-proxy-mit-plink-unter-windows.html</link>
		<comments>http://blog.kevin-k.com/2008-07-31/socks-proxy-mit-plink-unter-windows.html#comments</comments>
		<pubDate>Thu, 31 Jul 2008 10:46:05 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Allgemein]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Netzwerk]]></category>
		<category><![CDATA[Sicherheit]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.kevin-k.com/?p=41</guid>
		<description><![CDATA[Um den Socks5-Proxy zu starten, folgendes in der Eingabeaufforderung ausführen:

plink.exe -D 1080 -N -v user@host

Die plink.exe bekommt Ihr von der gleichen Seite, bei der es auch putty gibt:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Danach ist der Socks5-Proxy über localhost und den Port 1080 erreichbar.
Wie hihn.org zeigt, sind folgende Einstellungen im Firefox notwendig, damit dieser nach dem Starten des Socks5-Proxys auch über [...]]]></description>
			<content:encoded><![CDATA[<p>Um den Socks5-Proxy zu starten, folgendes in der Eingabeaufforderung ausführen:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">plink.exe -D 1080 -N -v user@host</pre></div></div>

<p>Die plink.exe bekommt Ihr von der gleichen Seite, bei der es auch putty gibt:<br />
<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html</a></p>
<p>Danach ist der Socks5-Proxy über localhost und den Port 1080 erreichbar.</p>
<p>Wie <a href="http://hihn.org/?p=61">hihn.org</a> zeigt, sind folgende Einstellungen im Firefox notwendig, damit dieser nach dem Starten des Socks5-Proxys auch über diesen die Seiten aufruft:<br />
<a href="http://blog.kevin-k.com/wp-content/uploads/2008/07/socks5.png"><img src="http://blog.kevin-k.com/wp-content/uploads/2008/07/socks5.png" alt="socks5 Socks Proxy mit plink unter Windows" title="socks5" width="416" height="432" class="alignnone size-full wp-image-42" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kevin-k.com/2008-07-31/socks-proxy-mit-plink-unter-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Festplatte / Partition mit shred formatieren</title>
		<link>http://blog.kevin-k.com/2008-07-26/festplatte-partition-mit-shred-formatieren.html</link>
		<comments>http://blog.kevin-k.com/2008-07-26/festplatte-partition-mit-shred-formatieren.html#comments</comments>
		<pubDate>Sat, 26 Jul 2008 15:05:33 +0000</pubDate>
		<dc:creator>kevin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sicherheit]]></category>

		<guid isPermaLink="false">http://blog.kevin-k.com/?p=27</guid>
		<description><![CDATA[
shred -n 7 -z -v /dev/sda

-n = Anzahl an Formatierungen (mit random Werten)
-z = Schreibe am Ende der Formatierungen alles mit Nullen voll
-v = Verbose
]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">shred</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">7</span> <span style="color: #660033;">-z</span> <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda</pre></div></div>

<p>-n = Anzahl an Formatierungen (mit random Werten)<br />
-z = Schreibe am Ende der Formatierungen alles mit Nullen voll<br />
-v = Verbose</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.kevin-k.com/2008-07-26/festplatte-partition-mit-shred-formatieren.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
