Feeds

Man knows when you're signed in to GMail, Twitter, Digg

Porn and warez logins ahoy!

Boost IT visibility and business value

A UK-based web developer has figured out a simple way to tell if visitors to his site are logged in to Gmail, Facebook, Twitter, Digg and thousands of other websites.

One method developed by Mike Cardwell of Nottingham makes use of status codes returned by many sites, which differ depending on whether a user is logged in or not. By embedding a small piece of JavaScript that contains a link to one of the sites he's curious about, he can immediately tell if a visitor is logged in. The method works reliably for Twitter, Facebook and Digg when visitors are browsing with Firefox, Safari or Chrome.

It doesn't work when visitors are using Internet Explorer or Opera.

The exploit works by identifying the HTTP status code that's returned when the visitor's browser encounters the link in Cardwell's script. A 200 code, indicating the request was successfully fulfilled, indicates the person isn't logged in, while 404, 500 and other error codes indicate the opposite.

“This can be an awkward problem to avoid if you're developing a website,” Cardwell writes here. “Some of these requests could be stopped by doing referrer checks; reject all external referrers for content only accessible when logged in.

Detecting whether a visitor is logged in to Gmail requires a different script that generates a hidden image stored in Cardwell's mail folder that's configured to be viewable to everyone. Cardwell said he reported his finding to Google and was told it was “expected behaviour.”

“You may not care that I can tell you're logged into GMail, but would you care if I could tell you're logged into one or more porn or warez sites?” Cardwell asks rhetorically. “Perhaps http://oppressive-regime.example.org/ would like to collect a list of their users who are logged into http://controversial-website.example.com/?” ®

Gartner critical capabilities for enterprise endpoint backup

More from The Register

next story
Microsoft: We plan to CLEAN UP this here Windows Store town
Paid-for apps that provide free downloads? Really
Snowden on NSA's MonsterMind TERROR: It may trigger cyberwar
Plus: Syria's internet going down? That was a US cock-up
Who needs hackers? 'Password1' opens a third of all biz doors
GPU-powered pen test yields more bad news about defences and passwords
e-Borders fiasco: Brits stung for £224m after US IT giant sues UK govt
Defeat to Raytheon branded 'catastrophic result'
Hear ye, young cyber warriors of the realm: GCHQ wants you
Get involved, get a job and then never discuss work ever again
Chinese hackers spied on investigators of Flight MH370 - report
Classified data on flight's disappearance pinched
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
prev story

Whitepapers

Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
7 Elements of Radically Simple OS Migration
Avoid the typical headaches of OS migration during your next project by learning about 7 elements of radically simple OS migration.
BYOD's dark side: Data protection
An endpoint data protection solution that adds value to the user and the organization so it can protect itself from data loss as well as leverage corporate data.
Consolidation: The Foundation for IT Business Transformation
In this whitepaper learn how effective consolidation of IT and business resources can enable multiple, meaningful business benefits.
High Performance for All
While HPC is not new, it has traditionally been seen as a specialist area – is it now geared up to meet more mainstream requirements?