LinkedIn cookie vulnerable, claims researcher
The user is gone but the session lingers on
Fresh from an IPO in which its bankers sent millions to pre-float insiders by low-balling its price, LinkedIn has been accused of slack security by Indian security Rishi Narang.
Narang, who published his analysis of LinkedIn cookie handling here, identified two cookie handling problems: an SSL cookie is used without having its “secure” flag set, and cookies are available after the end of authenticated sessions.
In the first case, all cookies, including JSESSIONID and LEO_AUTH_TOKEN, are held in plain text. Since “these cookies appear to contain session information”, these cookies could be captured over an established LinkedIn session.
Session expiration is, perhaps, a more serious problem. Since the cookies remain on a machine after a session is ended, a malicious user could use someone else’s cookies to re-establish a connection to their account (an obvious example being accessing a workmate’s computer).
When Narang identified this flaw, the cookies were set to persist for a year rather than being deleted at the termination of a session. “As a result, in just 15 minutes, I was successfully able to access multiple active accounts that belong to individuals from different global locations,” he wrote.
Narang says that the cookie can only be forced to expire if a user changes the LinkedIn password, logs out, and logs in with the new password.
LinkedIn has responded that it is addressing the cookie lifetime, which it will reduce to 90 days, and recommends using encrypted WiFi networks or VPNs for access. Its response, in full and unedited, goes like this:
“Whether you are on LinkedIn or any other site, it's always a good idea to choose trusted and encrypted wifi networks or VPNs whenever possible.
“If one isn't available, we already support SSL for logins and other sensitive web pages. Now, we are accelerating our existing plans to extend that SSL support across the entire site on an opt-in basis. And, we are going to reduce the lifespan of the cookies in question from 12 months to 90 days.
“LinkedIn takes the privacy and security of our members seriously, while also looking to deliver a great site experience, and we believe these two changes will allow us to strike that balance.” ®
Sponsored: Network DDoS protection