German ISP giving customers crippled router hardware

Germany’s largest cable ISP Kabel Deutschland is sending their customers artificialy crippled router hardware with disabled wireless functionality.

When ordering your internet access, Kabel Deutschland is giving you the choice between three seemingly different router models:

Kabel Deutschland offering three seemingly different routers

Kabel Deutschland offering three seemingly different routers

The first model seems to be basic router without any wireless features, the second model is also a rather basic router but with wireless functionality, the third model is a FRITZ!Box 6360 – a full-feature device. For the last two models Kabel Deutschland is asking for a 2 or 5 euro monthly fee.

What they do not tell you: the first device (free) is the same box as the second device and has wireless functionality too – but Kabel Deutschland will remotely disable the wireless feature, hoping that people will pay them every month to unlock this feature.

Unlocking the wireless functionality of the Hitron CVE-30360

So, lets take a look at this box. It is manufactured by a Taiwanese company called Hitron Technologies Inc. So lets look at the router admin interface (point your browser to http://192.168.0.1/ – the default login is “admin” for the user and a blank password). In the admin interface we find the model name: “Hitron CVE-30360″.

According to the manufacturers website, this router DOES support wireless networking. However, the version that Kabel Deutschland sends out to their customers will check for a custom firmware configuration via TFTP/SNMP, download the config and disable the wireless functionality.

So after the device gets its new configuration, we will not find any wireless settings in the admin interface. However, we can still access to following page in your browser:

http://192.168.0.1/admin/wireless.asp

When accessing this page, you will get a alert stating “WIFI function is notAvailable yet!” – ouch. Press OK and ESC afterwards. You will now find yourself on a blank page, so lets take a look at the HTML source! If you scroll over the code you will find the following line:

<div id="maincontent" style="display: none;">

Yes, they are using CSS to hide the wireless settings – oh boy. Obviously, this is not much of a barrier. If you are on Google Chrome you can hit F12 to modify the HTML document on the fly. On Firefox you can use a add-on called Firebug. So, go to your favorite browser, navigate to that piece of HTML and remove the style=”display:none” part and apply the changes. You should now see the full wireless menu. Next, hit “Factory Reset” and wait a few seconds.

If you now refresh the site you will see the previously hidden wireless menu and can setup your wireless network as you wish. This will last until the device re-downloads the configuration file from the ISP again (usually every 5-7 days).

Possible GPL violation?

On a other note: while working with this router, i discovered that Hitron Technologies seems to be using dnsmasq on their devices. dnsmasq is a GPL software that acts as a DNS forwarder and implements DHCP. On Hitron’s website we find no mention or license notice that they are using dnsmasq as a part their firmware, also there are no firmware source code downloads on their website. Also, they seem to be using the GoAhead web server software without respecting their license. I contacted Hitron regarding these issues but did not yet receive any response from the company.

Update: here is a tiny batch script that will automate the unlocking (curl binary is required)

@echo off
SET HOST=192.168.0.1
SET USER=admin
SET PASS=
curl --cookie-jar cookies.txt http://%HOST%/login.asp -s
curl --cookie cookies.txt --cookie-jar cookies.txt --data "user=%USER%&pws=%PASS%" http://%HOST%/goform/login -s
curl --cookie cookies.txt --cookie-jar cookies.txt --data "dir=admin/&WFReset=Wifi%%20Factory%%20Reset%%20&file=wireless" http://%HOST%/goform/Wls -s
curl --cookie cookies.txt http://%HOST%/goform/logout -s

CVE-2013-0422 – from russia with love

Aaaaand another Java 0-day remote exploit. On January 12th, the authors of the popular “Blackhole” and “Nuclear Pack” exploit kits announced that they would add a new, fresh Java 0-day remote exploit for their paying subscribers – this exploit is now known as CVE-2013-0422.

First public POC code was published on an Russian underground forum.

As always, i will publish my revised fully working demo source code:

/* CVE-2013-0422 exploit code - January 15, 2013
 * from: http://www.fileperms.org
 */

Some AV Software will block my site if i have the code on here, 
so go grab it here

Once again, i advise everybody to disable the Java plugin in their Browser. Over the past 3 months we have seen 4(!) new exploits for the JRE – and who knows, well-informed groups may already have the next working exploit ready to ship.

Update: Oracle has fixed this with JRE 7.11
Update 2: still broken

Link dump #4

WhatsApp security fails again

heise security is reporting that they obtained a script that can generate the password for an WhatsApp account. They did not release the full algorithm, but it is using the IMEI number to generate it (again!).

Back in September i showed how WhatsApp was using the reversed IMEI number of the the device to generate the password like this:

$imei = "112222223333334"; // example IMEI
$androidWhatsAppPassword = md5(strrev($imei)); // reverse IMEI and calculate md5 hash

So all they did is change the algorithm – Security by Obscurity at its best worst. It makes you wonder why WhatsApp is messing this up again, the solution is so simple: let the user set a custom password.

WhatsApp puts legal pressure on WhatsAPI developers?

Looks like WhatsApp contacted the developers of the WhatsAPI - they removed the code in their latest commit:

Sources are unavailable while we have a conversation with WhatsApp’s legal team member.

I would suggest fixing their app instead of getting a lawyer – but whatever…

Update: i have received several emails from people asking about the WhatsAPI. You can still find the latest version of the code (before it was taken down) on github: http://goo.gl/cZnWc

Hacking Subway Systems

Some people wrote an Android app that can reset/reload transit tickets using NFC technology. Some of the victims are the SF Muni Ultralight cards and the NJ Path cards. I was in Paris recently and the turnstiles and tickets of the Metro there look exactly the same – maybe they are using the same system?

Pretty cool, but as a New Yorker i would be more interested in seeing some hacks involving the good ol’ MTA Metrocard.

Link dump #2

WhatsApp security disaster: the aftermath

Knock-knock WhatsApp, is anybody home? Its been almost 2 weeks now since the password generation algorithm on Android was disclosed. No comment from WhatsApp.

Spammers are already buying and selling WhatsApp accounts. As i mentioned in my previous post, Android applications can read the phones IMEI. It isn’t unlikely that some app developers who collected this information (phone number and IMEI) go rogue and sell their database to spammers.

If your account is hijacked, at this point the only way to “secure” your account is to change the phone you are using – this will re-register the phone number with a new password. Obviously, the new password will be generated in the same (unsafe) way as the old one, so avoid using WhatsApp on a public WiFi and (on Android) restrict potentially malicious apps from reading the IMEI.

WhatsApp must force all users to set a new, custom, password – fast…

Update: a new version (2.8.4) of WhatsApp was released for iOS this morning - testing now.