Wednesday, 22 April 2009
So, your app is secure because you encrypt passwords?
When receiving the package and a few hefty manuals, I could spot the problem a mile away. The usernames and passwords for all users were contained inside the SQL database (which raised the thorny issue of why it didn’t integrate with our AD to begin with) and then the program used a fixed username and password with Database Authentication to the SQL Server to query it for the username and password that existed in the user table.
Architecturally this solution is awful. In order to connect to a table which contains encrypted data, the program has to make a database connection with an unencrypted username and password. Hardly secure is it? Also, although it was possible to change the default username and password, the tool to do this with was undocumented, which means hardly anybody will bother.
A quick test with Cain and Abel confirmed my suspicions. After configuring the ARP cache poisoning feature in Cain it was possible to capture this database password from a third machine in around 20 seconds. Of course I could still not connect with the client (as this used credentials contains in encrypted form inside the database), but I now had direct access to the database and could look at the raw data which included salary details, medical history, disciplinary records etc. Good thing this was a test environment with a demo database!
I did of course raise my concerns with the vendor, but they did not appear very concerned at my quite detailed description of the problem. Either they do not care they have hundreds of insure installs around the world, or they are well and truly aware of the problem and are choosing to ignore it and hope to improve the architecture in future releases of the product.
It is not only smaller vendors that ignore this problem. One well known industry name allows you to store their configuration details in a database so your entire farm of servers can access the same info. Again, the documentation only talks about using Database Authentication, but at least does give a warning that this is not suitable for high security environments. Why not include another two pages to explain to users how to switch it to Windows Authentication or maybe a whole chapter on how to make it completely secure?
If you really have to live with database authentication, it is possible to make it secure. IPSec under Windows is relatively straightforward to enable, and you can disallow connections from any client that is not capable of communicating securely. Microsoft do a nice little KB article that describes this process in detail. Once we put this in place, Cain was rendered ineffective and our data was once again secure.
Essential lesson? Don't assume commercial software vendors value your security as much as you do and do your own research!
Tuesday, 21 April 2009
My Iphone 3G

I love my IPhone!!! There .. I said it . Having been raised in the PC camp, I have always been a staunch defender of the PC and its various platforms ( Linux, Windows, Windows Mobile etc)over and above the Apple Mac. Why ? My answer is simple .. Pure ignorance. The fact is that it is a great platform to work with, easy and simple, yet you can get into its innards and be as leet as you like. ( no I am not converting and no I am not being a fan boy either)
So I found myself succumbing to the wills of Steve Jobs and his second incarnation of the IPhone .The IPhone "3G". I needed a new music player anyway .. and being the lover of "GADGE" that I am (thanks for coining the word Jason Bradbury.. well I heard it from him first), I decided to fork out the stupid monies for the 16GB 3G and subscribe to the £35 a month contract.
So, here I am almost a year on from my purchase. Software version 3 is in sight and guess what .... One of the most exciting things to come out is .. wait for it .. " COPY AND PASTE" .. Yep you read that correctly. I went to one of my favourite sites Wikipedia, and pulled an excerpt from the history of copy and paste "Apple Computer widely popularized the computer-based cut-and-paste paradigm through the Lisa (1981) and Macintosh (1984) operating systems and applications." So in short. Apple, who were one of the originators ( 28 years ago) of the copy and paste functionality as we know it today, have taken 2 phone revisions and x number of software revisions to implement that functionality into one of their newer devices .. Somehow, they have made it seem like a huge deal, and get all IPhone users excited about it . Hats off to Apple Marketing .. I don't know what else to say except roll on release 4.0 with the revolutionary CUT and paste functionality .. I cant wait :)
Emm
Friday, 17 April 2009
Torrent Trial
It seems that the entertainment industry has even more control over the world than it first seems. The much awaited ruling from the ongoing case of The Pirate Bay has finally been released. It came as a shock to me to hear that the 4 founders have been found guilty. Fredrik Neij, Gottfrid Svartholm Warg, Peter Sunde and Carl Lundström have all been charged with 'promoting other people's infringement of copyright laws.' Does this sound like someone is clutching at straws?
For those that haven't been following the case. Four men behind the torrent tracking website The Pirate Bay have been in court for breaking copyright laws. The US Entertainment Industry is trying to claim $15m in damages for the illegal sharing of 20 songs, 9 films, and 4 games. However, The Pirate Bay servers themselves hold none of this data; they merely hold files that point to the locations of the files on users computers (Google if you don't know about torrents)
If The Pirate Bay 4 are being prosecuted, then why shouldn't they prosecute the people behind Google? You can find the exact same information there. Are they guilty of 'promoting other people's infringement of BlahBlahBlah'?
I'm sure, just by using the power of google, that you cant find some seriously questionable content and yet, as much as I like Google and services they provide, they are just allowed to carry on as they are.
In my view, it is the fault of the Entertainment Industry in the first place poularising illegal file-sharing. When given the option of paying £10 for an album or £8 to go to the cinema (without popcorn!), or getting it for free, which one are you going to choose?! The Movie and Music industries have failed to embrace these new technologies.
The major television channels have come up with a solution with the likes of the BBC iPlayer and 4OD, both offering a free option for watching back TV episodes, so why can't the music and film industries come up with something similar? How difficult can it be? Stick a couple of short adverts at the beginning and end of the film and offer it for a cheap price. I know I wouldn't mind paying a couple of quid for an ad supported film, rather than nearly £10 for the DVD.
I am however fairly certain that even with the guys in jail, The Pirate Bay will continue to stay afloat. Offering new services like their IPREDator VPN, which at just €5 a month will give you complete anonymity whilst surfing and downloading. Not a bad idea if you ask me!
To read more about the case try The Local or BBC News
Thursday, 16 April 2009
The Digital Home - Curse or shape of tings to come?
Why I'm a Luser...

I like to think of myself as an 'early adopter' when it comes to technology. You know the type of person: somebody who buys or obtains a piece of technology or software long before it's properly been tried-and-tested in the real world.
Those of technical savvy around me tend to refer to me as a 'luser'. I always thought that meant I was a Linux User, but apparently it means something somewhat less complimentary.
This boils down mainly to the fact that I procure something, use it incorrectly, then have to beg, plead and wheedle with somebody far cleverer than me in order to get them to fix it, so that I can go ahead and break it again.
Many years ago, when Linux was in its infancy, I convinced our-then SysAdmin, Gavin, to put a version of KDE on to my office laptop. He thought it would be fine – I sold myself pretty well to him about my technical ability, but by the end of the first day of having Linux on my machine he wanted to kill me.
Shortly after that, he removed it from my computer and told me to never, ever, think about using anything other than Windows again.
And I didn't. Until last week, when I managed to convince my pseudo-SysAdmin for the pub, James, to install a version of Ubuntu on my laptop.
Clearly having wiped his memory of the pain I caused Gavin all those years ago, Jimi agreed – but I have to say what a difference it is these days to use Linux!
Firstly, everything seems much easier to get to, and I don't have to keep opening a terminal and typing obscure random commands such as chmod + x or sudo ./ every time I want to get the damned thing to do something.
Instead, I can simply go to Applications and Add/Remove programmes in a Windows-like way to install just what I want. I've even managed to go outside the box and find programmes such as AdobeAir and install them all perfectly fine. Google's Picasa and even aMSN, a clone of MSN's Live Messenger, have all been installed perfectly easily. (Probably best not to ask me about Google Earth on Linux, however. That seems to have gone like a bit of an abortion.)
And for what I really want, Mozilla FireFox is an excellent web browser and while OpenOffice's Writer might have the look and feel of an early version of MicroPro's WordStar, it's functional and usable and has all of the everyday features that Microsoft's Word supports.
To top it all off, I've even managed to find a website where I can leave my e-mail address so that somebody can let me know when Google Chrome for Linux is finally available. I'm especially proud of that one.
In fact, the only thing that I haven't been able to get to successfully work since having Ubuntu installed on my laptop is my printer.
Recently, in order to print off some forms I needed for a licensing event for the pub, I found myself having to reboot in to Windows for the first time in days. Unfortunately, Windows doesn't seem all that happy about having some of its gargantuan requirements for disk space taken up by the impertinent Linux OS, and so it ran incredibly slowly. Or maybe it did that anyway and I just didn't notice.
And then, for reasons utterly unfathomable, it threw a wobbly and broke the computer.
And for equally unfathomable reasons, James suddenly seems to not be answering his telephone..
Software deployment
So… all should be as well, the specification was completed (covering the first 8 months of the project) UAT and system testing have been completed. Server hardening has been completed and the whole server environment has been instanced. The users are happy (Although demanding last minute functional extras as is expected).
So… why do I always get the paranoia pangs over minutia issues that don’t exist and issues that have been long resolved? Lack of direction or just taking things to personally?
Anyway it seems fate is on my side as the chosen go live date has been set for a date while I’m on hols. Will that make it any easier? Probably not, will I lose sleep? Probably, will it work? it f***ing better :)
Thursday, 9 April 2009
"Cloud" Computing on our doorstep
So task accomplised and job done right ? Well NO .. Now the problems begin... We shall see how things pan out as time goes by, but at least you cant say we are afraid to embrace the growing trend of cloud computing.
Emm
Wednesday, 8 April 2009
OMFG I have found my hierarchical model nirvana
Having just given myself a nose bleed by having to think longer than 50 seconds on a single topic I am complete, and that completion has taken the form or using both Nested set and Adjacency List models. To create your basic tree data structure.
Ok if anyone reading this is thinking “nice one Patrick, take some long words string them together and bingo you have your very own buzz word bingo” I’ll expand on this.
When I used to have a tree structure it would be an tidy collection of parent child relationships between nodes. And use this in a Adjacency List model
Ok, instead of thinking in terms of nodes and Lines, we treated them as nested containers. Everyone gets a left and right value, every element within that left and right at some level a child. (nose bleed started here).
So ABC form a nice little triangle and ACD form a nice line. (the appearance of both patterns are strongly dependant on formatting ;)
This means I can pull out the ancestral line D by checking to see what other elements have values that contain 5 (D’s left) if when I do this I order the result by the Left descending I can get the Father child relationship in order.
If I want to see to find siblings of C I can take the left and right of the parent A and get all elements that are between 1 and 8 but are on the same step as C (2).
Of course for lots for lots of peeps this is all simple year 1 of the computer science degree, but for me it sparked that little giggling light inside my head that that appears when I realize I can view data from a completely different view point and make that work for me (the last time was “what?!?! you just loop through the structure and process the elements, rather than doing them each individually????Tuesday, 7 April 2009
Is Hardware coming to a Standstill ?
Whereby in previous years, a 2 year gap in hardware specs would present a significant performance difference, the Q6600 is still selling and the technology behind the GFX card hasn't changed to a point of revolutionising their performance.
So is the race finally coming to an end ? It has been said for years that PC tech will reach a point whereby it wont get much faster than what it is ( unless you are an overclocking liquid cooling nut) and this has certainly become more noticeable in my recent experiences.
Emm
Wednesday, 1 April 2009
Confiker Day 0
So far, not a peep .. Not even a false positive .. Am I just being overly paranoid or am I just lucky .. I am a big advocate of not subscribing to hoax's and make a valliant effort to inform the individual of said "end of world virus". It generally doesnt work and sure enough within another few weeks, I receive yet another "OMG read this .. its legit .. its not fake .. honestly guv" mails.
So right now its a big WTF .