<?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>Just Uber &#187; hack</title>
	<atom:link href="http://www.justuber.com/blog/tag/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justuber.com/blog</link>
	<description>Dancing with Nerds</description>
	<lastBuildDate>Thu, 17 Mar 2011 11:11:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Exploring the Humax-HD Over the Network</title>
		<link>http://www.justuber.com/blog/2009/11/11/exploring-the-humax-hd-over-the-network/</link>
		<comments>http://www.justuber.com/blog/2009/11/11/exploring-the-humax-hd-over-the-network/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 00:01:16 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.justuber.com/blog/?p=191</guid>
		<description><![CDATA[I just updated my Humax-HD Freesat box to the 1.00.23 firmware and decided to have a furtle with it. As this update is supposed to enable iPlayer (although it can&#8217;t be used until Freesat say so) I thought I&#8217;d try and see if anything funky was going on over the network to give me the [...]]]></description>
			<content:encoded><![CDATA[<p>I just updated my Humax-HD Freesat box to the 1.00.23 firmware and decided to have a furtle with it. As this update is supposed to enable iPlayer (although it can&#8217;t be used until Freesat say so) I thought I&#8217;d try and see if anything funky was going on over the network to give me the opportunity to play with some security tools.</p>
<p>I used Nmap to scan the Humax and see if any ports were open. The scan didn&#8217;t return anything from TCP ports (so I&#8217;m assuming that they&#8217;re all closed), and returned unreachable for all but 10 UDP ports. The Humax didn&#8217;t send any kind of response to the scans on these 10 ports so Nmap considers them open|filtered. I checked the well known port list on wikipedia to see if any of them matched up.</p>
<p>1057/udp  open|filtered unknown &#8211; No listing </p>
<p>5351/udp  open|filtered unknown &#8211; Wikipedia shows as NAT Port Mapping Protocol (official). This is used to allow a NAT&#8217;ed device to communicate with devices outside of the private network. It looks to be used a lot in peer to peer file sharing.  </p>
<p>16739/udp open|filtered unknown &#8211; Not listed</p>
<p>19935/udp open|filtered unknown &#8211; Not listed</p>
<p>20465/udp open|filtered unknown &#8211; Not listed</p>
<p>21625/udp open|filtered unknown &#8211; Not listed</p>
<p>22053/udp open|filtered unknown &#8211; Not listed</p>
<p>24606/udp open|filtered unknown &#8211; Not listed</p>
<p>47772/udp open|filtered unknown &#8211; Not listed</p>
<p>49187/udp open|filtered unknown &#8211; Not listed</p>
<p>I used ncat to send a few key strokes at each of these ports but got nothing back. Then again, not having a clue what could be sat behind most of them (if anything) I don&#8217;t know if I should get anything back anyway (or even if there is a service making a reply, would it reply to the same port that made the request?). A UDP service scan in Nmap also fails to get any further information.</p>
<p>The Humax box is connected to my home router via a powerline ethernet adaptor. As the powerline network connects into one port on the broadband router I figured that I should see traffic going between the Humax and the router from a laptop connected to another powerline adaptor using Wireshark. The scan shows that again, there&#8217;s not much going on. When the Freesat box boots up it requests an IP address using DHCP. That&#8217;s about it.</p>
<p>So all in all, not much info there. The only service that looks to be of interest is NAT-PMP. It makes me wonder whether or not the Humax box will try to engage in a peer to peer network when iPlayer is activated, or if the service is designed to allow the box to be contactable from outside of your home network. Who knows? </p>
<p>If you have any corrections, answers or suggestions then please get in touch. I&#8217;d be interested to hear your thoughts.</p>
<p>*UPDATE*</p>
<p>It looks like the BBC have kindly allowed the iPlayer beta test code to &#8216;leak&#8217; out before its official release. Turn your freesat box over to BBC 1, press the red button and type 5483 to watch iPlayer&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justuber.com/blog/2009/11/11/exploring-the-humax-hd-over-the-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symfony &#8211; cssTabsPlugin and security</title>
		<link>http://www.justuber.com/blog/2009/03/11/symfony-csstabsplugin-and-security/</link>
		<comments>http://www.justuber.com/blog/2009/03/11/symfony-csstabsplugin-and-security/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 23:36:48 +0000</pubDate>
		<dc:creator>Adam</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[sfCssTabsPlugin]]></category>
		<category><![CDATA[sfGuardPlugin]]></category>
		<category><![CDATA[sfSettingsPlugin]]></category>
		<category><![CDATA[symfony]]></category>

		<guid isPermaLink="false">http://www.justuber.com/blog/?p=154</guid>
		<description><![CDATA[Hi all,
I have been working on a Symfony (ver1 of the MVC) based application.  It needs really tight security that is really granular.  So I did what most people do and installed the cool sfGuardPlugin.
It works a treat.
But.. I started to look at how I secure individual buttons, or sections of code etc.
The [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all,<br />
I have been working on a Symfony (ver1 of the MVC) based application.  It needs really tight security that is really granular.  So I did what most people do and installed the cool sfGuardPlugin.</p>
<p>It works a treat.</p>
<p>But.. I started to look at how I secure individual buttons, or sections of code etc.<br />
The best way would be to create a load of credentials, e.g view_token, add_token, edit_token, view_token_history, etc etc which can then be grouped together to allow access via groups or individual assignement.</p>
<p>Then I started thinking about the use of hardcoded text within the code, such as the following example and &#8216;viewtoken&#8217;.</p>
<p><code> $sf_user-&gt;hasCredential('view_token');</code></p>
<p>I don&#8217;t like hardcoding anything if I can help it, so installed the <a href="http://www.symfony-project.org/plugins/sfSettingsPlugin">sfSettingsPlugin</a>, added the line of code:</p>
<p><code>include_once (sfConfigCache::getInstance()-&gt;checkConfig('config/db_settings.yml'));</code></p>
<p>to my controllers (it doesn&#8217;t mention that anywhere on the plugin site or within the code!), did a quick symfony propel-build-all-load  &amp; symfony cc and added a few settings.</p>
<p>The settings are available in your app as a normal CONSTANT, I created view_token with the value of viewtoken, so I could access it within the application as the constant VIEW_TOKEN.</p>
<p>You may wonder why I didn&#8217;t just hardcode the values?  I am not sure at the moment, its a lot of hassle so far, but at least it will be highly configurable <img src='http://www.justuber.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Any ways, we have installed the sfSettings plugin, I have the very good wordpress style menus plugin called <a href="http://www.symfony-project.org/plugins/sfCssTabsPlugin">sfCssTabsPlugin</a> already installed and working well.  Finding this great add on that allowed the  <a href="http://www.symfony-framework.com/2007/10/18/symfony-plugin-sfcsstabs-recognition-of-credentials-addon/#comment-2807">sfcsstabs to recognise security credentials</a> that are based in any modules /config/security.yml, I thought great!</p>
<p>But I hit a snag, once installed and working it only recognised the first credential of that user.<br />
If you have a lot of credentials, and I do, then it fails <img src='http://www.justuber.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I found a work around though:<br />
In \plugins\sfGuardPlugin\lib\user\sfGuardSecurityUser.class.php<br />
I replaced:</p>
<p><code><br />
return $this-&gt;hasCredential($credentials);<br />
</code></p>
<p>with:</p>
<p><code><br />
$permissions=$this-&gt;getAllPermissionNames();<br />
if(in_array($credentials, $permissions)) {<br />
return true;<br />
}else{<br />
return false;<br />
}<br />
</code></p>
<p>This gets all the permissions, those set within a group and those assigned to an individual user.<br />
I am not sure if this is best way to do it, I am sure writing another method within the model would probably be a better bet, but I am soooOO lazy.  If I do (or you?) then I will post it on here.</p>
<p>The above code allowed me to get all the credentials and display individual elements of the menu according to the security credentials of the user.</p>
<p>thanks</p>
<p>Adam</p>
]]></content:encoded>
			<wfw:commentRss>http://www.justuber.com/blog/2009/03/11/symfony-csstabsplugin-and-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

