<?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>Darknet - The Darkside &#187; freebsd</title>
	<atom:link href="http://www.darknet.org.uk/tag/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darknet.org.uk</link>
	<description>Ethical Hacking, Penetration Testing &#38; Computer Security</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:34:17 +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>FreeBSD Local Root Escalation Vulnerability</title>
		<link>http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/</link>
		<comments>http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 10:46:56 +0000</pubDate>
		<dc:creator>Darknet</dc:creator>
				<category><![CDATA[Exploits/Vulnerabilities]]></category>
		<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[exploits]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[freebsd kqueue bug]]></category>
		<category><![CDATA[freebsd null pointer]]></category>
		<category><![CDATA[freebsd root exploit]]></category>
		<category><![CDATA[freebsd root vulnerability]]></category>
		<category><![CDATA[freebsd security]]></category>
		<category><![CDATA[local root escalation]]></category>
		<category><![CDATA[null pointer deference]]></category>
		<category><![CDATA[race condition]]></category>
		<category><![CDATA[root escalation]]></category>
		<category><![CDATA[vulnerabilities]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/?p=2124</guid>
		<description><![CDATA[It&#8217;s been a long time since we&#8217;ve heard about a problem with FreeBSD, partially because the mass of people using it isn&#8217;t that large and secondly because BSD tends to be pretty secure as operating systems go. It&#8217;s a pretty serious flaw this time with root escalation, thankfully it&#8217;s only a local exploit though and [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>It&#8217;s been a long time since we&#8217;ve heard about a problem with FreeBSD, partially because the mass of people using it isn&#8217;t that large and secondly because BSD tends to be pretty secure as operating systems go.</p>
<p>It&#8217;s a pretty serious flaw this time with root escalation, thankfully it&#8217;s only a local exploit though and not remotely exploitable.</p>
<p>Although a user could get user access on the system through an exploit in a web facing application, and use some kind of PHP/Python web shell to exploit and get root.</p>
<blockquote><p>A security researcher has uncovered a security bug in the FreeBSD operating system that allows users with limited privileges to take full control of underlying systems.</p>
<p>The bug in FreeBSD&#8217;s kqueue notification interface makes it trivial for those with local access to a vulnerable system to gain full root privileges, Przemyslaw Frasunek, an independent security consultant in Poland, told The Register. It affects versions 6.0 through 6.4 of the operating system, the last two versions of which enjoy wide use and continue to be supported by the FreeBSD Foundation.</p>
<p>Versions 7.1 and and beyond are not vulnerable.</p></blockquote>
<p>With a lot of people still using FreeBSD 6.3 and 6.4, amongst the FreeBSD community I&#8217;d say this could be quite a widespread problem.</p>
<p>A lot of BSD boxes are used for web hosting too, so I&#8217;d imagine a lot have SSH access enabled giving people local access and the capability of executing this exploit.</p>
<blockquote><p>Those exploiting the bug must first have local access to a vulnerable system, either as a legitimate user or by exploiting some other flaw (say, a vulnerable PHP script) that gives an attacker a toe-hold in to the targeted system. Frasunek said the vulnerability is trivial to exploit, as a video he <a href="http://www.vimeo.com/6554787">posted here suggests</a>.</p>
<p>The bug is the result of a race condition in the FreeBSD kqueue that leads to a NULL pointer dereference in kernel mode. Attackers can cause vulnerable systems to run malware by putting the code in a memory page mapped to address 0&#215;0.</p>
<p>Frasunek said he notified FreeBSD officials on August 29 and has yet to get a response. Robert Watson, a FreeBSD Core Team member, told El Reg that it appeared the email had gotten &#8220;lost in the slew&#8221; and he expected an advisory to be issued soon.</p></blockquote>
<p>If you&#8217;re using the latest production release (at this time 7.2) you aren&#8217;t vulnerable to this problem, I hope to see them backport the patch to the previous versions as they still have a sizable following.</p>
<p>You should see an advisory hitting the mailing lists soon, and I&#8217;d expect it to be fixed pretty quickly too.</p>
<p>Beware if you are using FreeBSD and have users with local access you don&#8217;t trust.</p>
<p></p>
<p>Source: <a href="http://www.theregister.co.uk/2009/09/14/freebsd_security_bug/">The Register</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=FreeBSD+Local+Root+Escalation+Vulnerability+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D2124+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;t=FreeBSD+Local+Root+Escalation+Vulnerability" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;title=FreeBSD+Local+Root+Escalation+Vulnerability" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;title=FreeBSD+Local+Root+Escalation+Vulnerability" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;title=FreeBSD+Local+Root+Escalation+Vulnerability" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/&amp;title=FreeBSD+Local+Root+Escalation+Vulnerability" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2009%2F09%2Ffreebsd-local-root-escalation-vulnerability%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2009/09/freebsd-local-root-escalation-vulnerability/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>stealth techniques &#8211; syn</title>
		<link>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/</link>
		<comments>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 19:13:37 +0000</pubDate>
		<dc:creator>backbone</dc:creator>
				<category><![CDATA[General Hacking]]></category>
		<category><![CDATA[Hacking Tools]]></category>
		<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Windows Hacking]]></category>
		<category><![CDATA[3-way-handshake]]></category>
		<category><![CDATA[flags]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hping]]></category>
		<category><![CDATA[hping2]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[scanning]]></category>
		<category><![CDATA[syn]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[three]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2007/06/stealth-techniques-syn/</guid>
		<description><![CDATA[Or half-open scanning technique is the first of three to come series about stealth scanning&#8230; The other two are Xmas/Fin/Null and idle/zombie scan techniques&#8230; Intro This is a series of three to come articles about stealth scanning, everything that I am going to present is hping oriented so if you want to learn this techniques [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Or half-open scanning technique is the first of three to come series about stealth scanning&#8230; The other two are Xmas/Fin/Null and idle/zombie scan techniques&#8230;</p>
<p><strong>Intro</strong><br />
This is a series of three to come articles about stealth scanning, everything that I am going to present is hping oriented so if you want to learn this techniques you&#8217;d better get a copy of hping.<br />
This method is invoked when you add nmap the -sS parameter&#8230; so let&#8217;s start&#8230;</p>
<p><strong>3 Way Handshake</strong><br />
If you didn&#8217;t know a tcp connection is based on a method called the three way handshake, that goes like this:</p>
<p>[host] syn flagged packet &#8212;&#8212;&#8212;&gt; [destination] receives packet<br />
[destination] syn-ack flagged packet &#8212;&#8212;&#8212;&gt; [host] receives packet<br />
[host] ack flagged packet &#8212;&#8212;&#8212;&gt; [destination] receives packet [connection established]</p>
<p>This is the methodology of a TCP connection, just upon a successful execution of this section a real connection is done&#8230; You probably can see a weak point in this  method, can&#8217;t you. For every sent packet the host (and destination) waits a period of time for the next packet. If you can send really fast spoofed syn packets you can DoS a target in no time, this is the oldest DoSing method ever known to man (and women) =)</p>
<p><strong>SYNner</strong><br />
Firstly let&#8217;s see what happens if we hit a closed port, try out the following command (and result after it):</p>
<pre>
C:\\&gt;hping -p 81 -S lx.ro
HPING (XPSP2) lx.ro (SiS 900 PCI Fast Ethernet Adapter -
Packet Scheduler Miniport 81.181.218.80): S set, 40 headers + 0
data bytes

len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=0
win=0 rtt=70.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=1
win=0 rtt=20.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=2
win=0 rtt=30.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=3
win=0 rtt=40.0 ms
</pre>
<p>As you can see on an unsuccessful port scan we get a <Strong>R</strong>eset-<strong>A</strong>cknowledge , which tels us, as already mentioned, that we hit a closed port&#8230;<br />
Now for the moment we all were waiting for:</p>
<pre>
C:\\&gt;hping -p 80 -S lx.ro
HPING (XPSP2) lx.ro (SiS 900 PCI Fast Ethernet Adapter -
Packet Scheduler Miniport 81.181.218.80): S set, 40 headers + 0
data bytes

len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=30.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=0.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=1
win=5840 rtt=50.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=0.0 ms
</pre>
<p>As you can see we hit an open port&#8230; If you weren&#8217;t attentive till now a syn-ack flag means an open port, half-way connected&#8230;</p>
<p><strong>Epilogue</strong><br />
Nowadays this method isn&#8217;t as stealthy as it was years ago, because now firewalls most often drop unwanted packets or sees them as pre-DoS syn packets&#8230;</p>
<p>More info about TCP :: <a href="http://www.rhyshaden.com/tcp.htm">www.rhyshaden.com</a><br />
(first useful link that I have found with google)</p>
<p></p>
<p>Next &gt;&gt; Xmas/Fin/Null</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=stealth+techniques+%E2%80%93+syn+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D599+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;t=stealth+techniques+%E2%80%93+syn" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2007%2F06%2Fstealth-techniques-syn%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

