Security issues within the mobile device realm continue to be a problem. This time there was an attack on Facebook’s Instagram photo-sharing service that could allow a hacker to seize control of a victim’s account.
The attack, developed by security researcher Carlos Reventlov, revolves around a vulnerability within Instagram. He notified Instagram of the problem Nov. 11, but the company has not fixed the issue so far.
The vulnerability is in the 3.1.2 version of Instagram’s application, released Oct. 23, for the iPhone.
Reventlov found while some sensitive activities, such as logging in and editing profile data, end up encrypted when goes over to Instagram, other data ends up sent in plain-text. He tested the two attacks on an iPhone 4 running iOS 6, where he first found the problem.
“When the victim starts the Instagram app, a plain-text cookie is sent to the Instagram server,” Reventlov said. “Once the attacker gets the cookie he is able to craft special HTTP requests for getting data and deleting photos.”
An attacker can intercept the plain-text cookie by using a man-in-the-middle attack as long as the hacker is on the same LAN (local area network) as the victim. Once the he grabs the cookie, the hacker can delete or download photos or access the photos of another person who is friends with the victim.
The Danish security company Secunia verified the attack and issued an advisory.
Reventlov continued to study the potential of the vulnerability and found the cookie issue could also allow the hacker to take over the victim’s account. Again, the attacker has to be on the same LAN as the victim.
The compromise uses a method called ARP (Address Resolution Protocol) spoofing, where the web traffic of the victim’s mobile device is channeled through the attacker’s computer. Reventlov said it is then possible to intercept the plain-text cookie.
By using another tool to modify the headers of a web browser during transmission to Instagram’s servers, it is possible to then sign in as the victim and change the victim’s email address, resulting in a compromised account. The fix for Instagram is easy: The site should use always use HTTPS for API requests that have sensitive data, Reventlov said.
“I’ve found that many iPhone apps are vulnerable to such things but not too many are high-profile apps like Instagram,” Reventlov said.