Aug 03

Recently, too much action happening when it comes to email accounts. Couple of friends complained that they’ve lost their logins all of a sudden. One friend from college complained that his girl’s email account was compromised. They believe that some hacker at brazil opened his terminal and wrote ./hack user@gmail.com to hack them. Few really think that it as simple as opening Microsoft Word and write “Access Granted” in Green color to hack.

I want to tell them one thing. These days, most of the email services are fairly secure ( *cough* *cough* Not talking about rediff which added ssl login a month before or India times which use to save password in cookie as plain text) But, I’m talking about services like Gmail or Yahoo. But, we need to accept the fact that even though we are intelligent and we’ve some protection on our computers like Antivirus, firewalls for windows folks, or like my friend Hari tells, install Linux, or as Ashok suggests OS X … we are busy most of the time. Some times, we don’t use our brain while doing some small things.

You would be talking to your friend on mobile phone and checking orkut for new scraps. The guy one phone might be telling you about his new project or something like that and you are involved in the chat. There could be some scrap from a girl … Karteek, greeting card for you !!! As usual, we click on the link, and it tells you that you need to login to view the card and you just login while talking on phone.

[Recap]

What happened ? -> You clicked on the link

After that ? -> It asked you to login

Then ? -> You logged in

Then -> It might tell you to login again as your password is wrong

After that ??? -> You logged in or it logged you in automatically or you just left it

Now, the analysis part. Well, nothing big happened. You were just Phished. You tried to login to a service on a fake login screen. You might lose many things through that username and password (your email might have much info).

Now, coming to the important part, how to escape from it ? Well, be careful is my answer. But, I know that I told you that we might just get carried away sometimes. For that I coded a small greasemonkey script which will protect you from low level phishing attacks. Yes, only low level. If the hacker is intelligent, he can game it easily, but most of the time intelligent hackers have much more useful things to do than to hack you. So, dont worry much about it.

The script is well commented. It doesn’t do wonders but just serves the purpose. Feel free to edit it make it more useful and share with others. I dont care about licenses, so I don’t mind even if you tell your girl friend that you coded it to protect her from being phished ;)

Very important. Never ever install a greasemonkey script unless you read it and damn sure that its secure. Anyway, you can find the script here.

Update : Code made little more logical. Now it won’t annoy much. And by default, I made it support Google, Yahoo, Hotmail and Wordpress. Adding other services is very easy.

Aug 01

Guess you know what is DNS ?
If you don’t know what it is …
Its Domain Name System. All the servers will have some set of numbers to identify them (IP), to recognize them easily we give them a name (domain name) and for internet to work, DNS maps these names to numbers. (Duh, read wikipedia for more info)

For the techie folks who know whats DNS, you might have missed this news. There was a bug. It was just a bug when people din’t know. Few days before , its was a problem as bad people know that it exists. And couple of days before, it became a major problem as bad people got to know how to tame the bug and exploit it. And today, its frigging Pain in the A** as our dumb ISPs are not fixing their DNS servers.

Well, the bug is that bad people can manipulate DNS lookups. Which literally means, when you open Google.com, then can send you to Yahoo.com too. Search engines need not be a problem, but if they manipulate DNS of a bank … the answer is … somebody is gonna get hurt real badddddd

So, I request you to check (@Doxpara) whether your DNS server is vulnerable to such bug or not, and if it is, change it to OpenDNS (208.67.222.222 and 208.67.220.220) and stay secure. As of today, I’ve tested BSNL and Airtel DNS servers (Chennai) and both of them are vulnerable. Guess, we need to take a huge rod and shove it up into someone’s a** and make them fix their DNS servers so that we can stay secure.

For extra-super-terrestial technical folks, I need not tell you about this, but incase you missed it, check (@Securebits) the exploiter released.

Jul 21

Google introduced a new feature in Gmail service. Gmail now shows last 5 access types and IP addresses which accessed the current account and lets you end sessions from other locations (where you might have hit remember me option)

Seriously, this is one kick ass feature I’ve been looking for in gmail and they’ve done it with a sweet add-on (I never expected the remote sign-off feature) and for this feature, love you Google.gmail.png

Don’t ask me why I’ve covered my IP address, I’ve no clue why I did that. May be because, I usually find IP addresses and IDs concealed in screenshots.

Mar 28

Friendfeed is a one great service which I’m using from few days/weeks. So, I thought, I will publish my friendfeed on this blog. Well, as usual, I’ve some of my own requirements. Requirement is that I dont want to show it on my sidebar, but I want to dedicate a page for it. So, I need to take json/xml/rss/atom from friendfeed and create html out of it. Obvious is that I’ve to either write a JS to parse it client side or PHP script to parse it server side. PHP was my choice and I needed an option to exec php on single page. There was on plugin named phpexec, but, I wasn’t very comfortable (call it being paranoid) for using that plugin.

So, I used a small work around. I created a page feed.php and added

/*

Template Name: My Friendfeed

*/

Now, my wordpress thinks that its a template and gives me an option of choosing template while creating pages. I created a page but without any content. I wrote all my php logic in feed.php and now wordpress parses the template and gives me required output. Anyway, you can download the code here. You’ve to extract the contents to your theme folder. Btw, You can see it working here.

Well, its a hackjob. It works (only) for me. If you want to do same, you’ve to edit the code according to your needs. It could have been done far more easily, but my stupid host has php4 and I missed many features. And, I’ve had something else in mind (I thought to publish friendfeed I follow, ie., all friends’ feeds) but later changed mind. By the way, if you don’t know what’s friendfeed, it is an aggregator of all 2.0ish services you might be using in a small definition. Check it if you want to know more, you wont be disappointed.

PS: There is absolutely no reason why I haven’t blogged for more than a month. I wasn’t busy. Its just that nothing had happened in my life to blog. Absolutely nothing. Uhmm, wait, I’ve been to Coorg on an adventure trip. Nothing more than that.

Jan 19

Something more free from Rediff ?
Hell Yeah.

Whats that ?
URL redirection service.

Ads ?
Come on, its rediff, there will be Ads.

What makes it different from other URL redirection services ?
Other URL redirection services are created by themselves. Here, even rediff doesn’t know that it got one too !!!

What ?
okay, in clear words, yet another stupid implementation by rediff.

Where ?
here - > http://www.rediff.com/login/inredirect.php?url=http://karteek.selfdabba.com

What does it do ?
Arghh !!! Click on it !! -> K World

Wow. Anything more in it ?
Uhmm, you want more and rediff will never say No. Yeah, it got XSS in it too.

Double Wow. Show me, show me !!
Well, Neither I can tell no. Click this.

Can I use it for anything more ?
Hell, yeah. How about printing your name there on that page ?

Triple Wow. Show me, show me.
Dude, not going to show you this. But, yeah. Will give you a hint. Document.write in Javascript. And you know how to inject javascript into that page

What ? Do I know ?
Fck. Thats why I should have kept a disclaimer on the top that this post aint for everyone. XSS is Cross Site Scripting, where you would just inject javascript in to another site.

Oh. okay. What do I do now ?
Uhmm, how about one fair deal. I will show you all the bugs I/others found in rediff and you stop using it ?

Yeah. I’m in.
Just goto Xssed.com and search for rediff. Lazy guys like me, click this.