Showing posts with label Google. Show all posts
Showing posts with label Google. Show all posts

Saturday, September 13, 2008

Gmail security hole found and fixed

A bug of Gmail has been found which, if being abused, could give you access to any account. The bug was discovered in 14 Oct, by Anelkaos of elhacker.net. Anelkaos reported it to Google, which then fixed the bug 4 days later.

I have a very quick look at the hacking procedure. If I understand that correctly, it involves using an victim’s partial "authentication string" - something like session ID or the long, seemingly random string sometimes you could see in URLs - to fake Gmail into believing that you were logged in as the victim. The procedure looks complicated, but can definitely be eased by a script or something.

Anyhow, it is glad that Google has fixed it rather quickily.



VIVA INDONESIA CODER TEAM
Get The Code and Fell The SOUL

Google Analytics is watching YOU


I hosted this site on my own server before moving it to sourceforge. At that time, I used a free, lite version of WebLog Expert to generate site traffic information from the Apache log files. It was good.

Of course this method no longer works as I do not have access to the log files now. I did not track the traffic, until Google announced Google Analytics, a free traffic-analyzing service for everyone.

Oh, Google again! Those skeptics said, they are more and more like Microsoft, who keep acquiring and expanding and using "advanced" technology until there is no room (and money) for its competitors.

But according to Eric Peterson, a senior analyst on web site technology, Google does not seem to be forcing other analytics vendors out of business. There are still many websites, most of them blogs, that didn’t heard of or use any website analysis services until Google started providing a free one. The market still has plenty of room for everyone at the moment.

Actually I do not worry too much about Google being the Big Brother, as I think the chance is slim. But it is in general not a good idea to put all eggs in one basket. Given the fact that I have used too many Google’s products, this time I would really like to try software from other companies. However, most of them, for example those mentioned by Eric, are either not free or by invitation (e.g. Measure Map) only. If any one knows a good substitution, please let me know.

Before I found another solution, I would keep using Google Analytics. Nonetheless, I think my visitors here should have the right to know this: This site uses Google Analytics to track YOU.






VIVA INDONESIAN CODER TEAM

Filesystem for web app?

Ajax is hot. Some people even claimed that web applications, or web apps, based on this technology will one day dominate the market. Many people retold Sun’s motto some years ago: "Network is the computer." And suddenly, Google, with its rich "lab" of web apps, becomes the most threatening enemy of Microsoft.

For security reason, browsers, and hence web apps, cannot access to your local files. Some say this is a critical limitation of web apps. But who needs local files if most of your apps are web-based? Actually, web apps nowadays normally allow you to open/save files located in their own domain.

However, cross-domain file access is usually not supported. For example, the photos you saved in Flickr cannot be accessed from Writely. Well, Flickr is popular, so some web apps, mostly blog systems, do allow you to read or write from it. But this is in a rather ad hoc fashion. Why isn’t there a "web filesystem" that other web apps can access to easily?

Google is a company (if not the only company) that has the ability to provide such service globally. In fact, I am writing this blog because I have the feelings that Google Base is actually heading to this direction. Imagine there is an API such that data can be import/export from the Base in the format of, say, XML through the HTTPS protocol. Then other web apps can use it to read/write "files" to this universal "filesystem"! Moreover, the API would allow web apps to extract metadata instead of just the file itself. This is even more useful, I think! Not to mention the ability to search, efficiently.

Of course, security is a big issue that must be examined very, very carefully, because you are authorizing whatever web app to access to a pool of data owned by you. But this doesn’t stop me from getting excited about this very idea!

Let me make a bolder statement: the main battle of the war between Microsoft and Google is actually WinFS vs. Google Base! Microsoft, inherently favors local applications, invests heavily in this next generation, database-driven local filesystem; while Google, being the most powerful web company in the World, puts its bet on the data generated by rich web applications. Woo! I would really like to see the strategies they will use to win this war!





VIVA INDONESIA CODER TEAM
Get The Code and Fell The SOUL

Gmail is not Gmail

Because of a new law suit, Gmail might not be able to keep using the name Gmail.

This is an old news, and Google have already done something to “unload” the name. The changes have been done quietly that the general public may not notice, but not to us developer. For example, because of its change in URL from gmail.google.com/gmail to mail.google.com/mail, gmail-lite and libgmailer failed to use immediately. Fortunately we discovered that and fixed it quickily. And now it seems that you cannot find any references to the word “Gmail” anywhere in its AJAX source code.

Google would probably rename Gmail back to “Google Mail”. Boring name, but safe. After this, I think Google will no longer “invent” new names for its new products. They will keep on using the pattern “Google xxxx”: Google Maps, Google Reader, Google Suggests, Google Desktop, Google OS (okay I faked this one), etc etc. You can see them in Google Labs.

What about all the “hacks” based on it, such as gmail-lite? Should we change to googlemail-lite and libgooglemailer also?

I think I will keep on using this name, unless they, uh, shoot sue me.





VIVA INDONESIA CODER TEAM
Get The Code and Fell The SOUL

Finally, the official Gmail lite

Google has just launched Gmail Mobile, a simplified XHTML interface for mobile phone with browsers. According to their Help Center:

Gmail Mobile lets you access your Gmail account from your mobile phone. Just enter http://m.gmail.com in your phone’s web browser to log in to your account.

Gmail Mobile offers a number of cool features:

  • The interface is automatically optimized for the phone you’re using
  • You can access attachments, including photos, Microsoft Word documents, and .pdf files
  • If you enter phone numbers in your Gmail Contacts list, you can reply to messages by call

You can try it yourself by entering this URL: http://m.gmail.com

Does it mark an end to the gmail-lite/gmail-mobile projects? Not really.

  • We will continue our maintenance of libgmailer, the PHP API for accessing Gmail, until, of course, they provide an official one, which I think is unlikely.
  • Neerav’s gmail-mobile project sure won’t be stopped: its targets are WAP phones using WML, not HTML/XHTML.
  • Some people might already get used to gmail-lite’s interface? Anyway, I believe Google folks would agree that it’s better for users to have choices.
Now, honestly, I am kind of excited. Google is now our "competitor"! That would be quite a challenge to make people to think that ours is even better than the official one, which is from Google!





VIVA INDONESIA CODER TEAM
Get The Code and Fell The SOUL

Wednesday, September 10, 2008

Encrypt your Gmail Email!

If you want to be sure that your email can be read by no one but you, then it needs to be encrypted. You'd be surprised to find out who might want to read your email. I was.

One of the best encryption systems is called GPG encryption which is an open-source version of PGP encryption. PGP stand for Pretty Good Privacy and is actually an understatement made by a programmer who didn't want to be too optimistic about how secure it is. However, as it turns out, PGP is has actually proven itself to be extremely good. It's been around for many years, being maintained by the best coders in the world and it hasn't been cracked.


In this Instructable, I'll walk you through the simple process of setting up GPG and then installing a Firefox plugin that will make it easy to encrypt your Gmail.

The principle behind GPG encryption is easy. Anyone who wants to play creates a public key and a private key. Your public key is the part of the encryption that you make public. Your private key is the part of the encryption that you never share with anyone under any circumstance.

The two keys work together so that you need both to decrypt anything. To send an encrypted message to someone you lock the message with their public key and when they get it, they can unlock it with their private key. If they want to respond, then they encode the message with your public key and you can read it with your private key.

Of course, this only works so long as you can trust that you have been given the right public key and that you know who you are talking to. One of doing this is by having a key signing party with your close friends. You all show up at a given location at a given time and exchange public keys. Then you have a list of trusted public keys with which you can communicate. This is often referred to as a web of trust.

Like I said before, getting your email protected is a two-step process. First, we have to get GPG installed on our operating system. Getting Gmail set up is on the next step.

I got GPG working on Mac OS X without too much trouble. I used the instructions and downloads at http://macgpg.sourceforge.net/ and summarized the process below. If you're on OS X, open that link in another window and get ready. For other operating systems, you can check the links on http://www.gnupg.org/download/.

Now, start downloading and installing! I've adapted the information from the Mac GPG FAQ, so you can also go there for more details. Here are the things I downloaded (you should got to the downloads page and get the latest):

First, open the DMG for GPG that you downloaded and run the installer. I just used all the defaults. This is the actual encryption engine that everything else runs on.

Once the installation is complete, open a Terminal window and type gpg, then hit Return. My installation gave me a "Go ahead and type your message ..." which I think means that GPG was up and running, so I ctrl-C'd out of that and closed the Terminal window.

Next, I installed GPG Preferences. That put a GPG icon in my System Preferences pane; I didn't change anything.

Finally, I installed GPG Keychain Access. This was easy: just unzip the ZIP file and drag the application into your Applications folder.

By the way, you can also do all of this from the command line. Here's a great tutorial for that.

Next up: Set up Gmail and start sending seeekrit messages!



Then, I ran the app and it had me generate my two keys (one public, one private). I typed in my secret passphrases which, of course, I will never tell anyone.

The last step with my keys was to select my public key and export it to a text file. Once you do this, you can attach it or copy and paste the contents into an e-mail to send to you PGP/GPG wielding friends.











Before you can encrypt anything, you need to make sure that you open a Gmail account that by no means can be traced back to you. This means that you have to be liberal about giving them your real name and address when you sign up. You should also always use a TOR server.

Once you have done all that you need to install FireGPG into Firefox. Go to this link and click the link to download it to your computer. From here it should coach you through the process.

Restart Firefox, and now you have new buttons in your compose view for encrypting and signing messages. Now you can discuss your nefarious plans in private!



Encrypting your Gmail is just an example. Now that you have GPG installed, there are a whole bunch of programs you can use to encrypt and sign stuff. For example:

GPGDropThing - This is a simple program which lets you encrypt text to people whose public keys are on your keyring, and also allows you to decrypt messages that they have written. GPGDropThing is especially useful when writing encrypted mail to your friends as some clients don't have GPG support built in. So far only Apple Mail and Mulberry have GPG support. Your can encrypt text on your hard drive, this way, or even paste encrypted snippets into your IMs.

GPGMail - For encrypting your email going through Apple's Mail.app.



VIVA INDONESIA CODER TEAM
Get The Code and Fell The SOUL