Vulnerabilities / Threats
11/30/2012
09:15 AM
Connect Directly
RSS
E-Mail
50%
50%

iPhone, iPad Email Attack Could Compromise Routers

Legitimate-looking email messages opened on iPhone, iPad or OS X systems can be used by hackers to gain control of routers, reports security researcher.

Routers from at least three different manufacturers are vulnerable to being compromised by an email sent to any Apple devices using the network.

Security researcher Bogdan Calin identified the cross-site request forgery (CSRF) vulnerability after noticing that by default, all Apple devices are set to load remote images -- meaning images that haven't been sent with the email. "A malicious user can send you an email with an embedded 1x1 pixel image with the background color of your email client, so it is not visible," he said in a blog post. "The email client will load this image from a remote server."

Instead of setting the image to load from a remote server, however, an attacker could instead make the email perform an HTTP GET request that points to the URL for the router's administrative interface. Because numerous routers ship with default usernames and passwords, and many users fail to change those settings, the email could also authenticate to the administrative interface and alter the router's configuration, for example to change its DNS settings.

Thanks to the exploit, an attacker could change the router's DNS settings to point to an attacker-controlled server, enabling them to run a clickjacking scam -- redirecting users' search requests to sites of the attackers' own choosing -- as well as to eavesdrop on all Internet traffic flowing to or from the router.

[ Alleged Stratfor hacker's sentence may be more severe than a murderer's. Should LulzSec Suspect Face Life In Prison? ]

"To increase the chances of this attack succeeding, I can send multiple images in the email; one with the default username and password for the router and others with most common passwords," said Calin, who's a Web application security researcher at Acunetix. Using iFrames, the attack commands can also be executed in the correct order, for example first authenticating to the router, and then changing settings.

Calin said he's demonstrated the attack against two types of Asus routers (RT-N16 and RT-N56U), as well as the Arcor EasyBox A600 and routers from TP-Link. But many more types of routers are likely vulnerable. "Any router that accepts configuration changes from GET parameters and doesn't protect against CSRF should be vulnerable to this simple attack," he said. "I can also confirm that this attack works on iPhone, iPad and Mac's default mail client," but the attack could likely be extended to other operating systems and email clients.

This type of attack could also be adapted to target Gmail users. Although Gmail doesn't load remote images by default -- users must click a button to do so -- if remote images from a sender are downloaded once, Gmail will automatically download them from the same sender in the future. "So using such attack against a Gmail user is also very simple: send a plain text email that will intrigue the victim to reply and once he or she replies, send an email with a tracking image," Calin said.

Thankfully, the fix for this vulnerability is simple: Don't use default usernames on routers, and always set a strong, unique password on every router to make it less susceptible to brute-force password attacks.

Another option is to disable the automatic loading of remote images. For an iPhone or iPad, doing this requires navigating to the "Settings" menu, then selecting "Mail, Contacts, Calendars," and locating "Load Remote Images" in the mail settings. "You need to disable this option to protect yourself against this attack," said Calin. "However by disabling this option, if somebody sends you an email with an embedded image you will not be able to see it."

Comment  | 
Print  | 
More Insights
Register for Dark Reading Newsletters
White Papers
Cartoon
Current Issue
Dark Reading Must Reads - September 25, 2014
Dark Reading's new Must Reads is a compendium of our best recent coverage of identity and access management. Learn about access control in the age of HTML5, how to improve authentication, why Active Directory is dead, and more.
Flash Poll
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2003-1598
Published: 2014-10-01
SQL injection vulnerability in log.header.php in WordPress 0.7 and earlier allows remote attackers to execute arbitrary SQL commands via the posts variable.

CVE-2011-4624
Published: 2014-10-01
Cross-site scripting (XSS) vulnerability in facebook.php in the GRAND FlAGallery plugin (flash-album-gallery) before 1.57 for WordPress allows remote attackers to inject arbitrary web script or HTML via the i parameter.

CVE-2012-0811
Published: 2014-10-01
Multiple SQL injection vulnerabilities in Postfix Admin (aka postfixadmin) before 2.3.5 allow remote authenticated users to execute arbitrary SQL commands via (1) the pw parameter to the pacrypt function, when mysql_encrypt is configured, or (2) unspecified vectors that are used in backup files gene...

CVE-2012-5485
Published: 2014-09-30
registerConfiglet.py in Plone before 4.2.3 and 4.3 before beta 1 allows remote attackers to execute Python code via unspecified vectors, related to the admin interface.

CVE-2012-5486
Published: 2014-09-30
ZPublisher.HTTPRequest._scrubHeader in Zope 2 before 2.13.19, as used in Plone before 4.3 beta 1, allows remote attackers to inject arbitrary HTTP headers via a linefeed (LF) character.

Best of the Web
Dark Reading Radio
Archived Dark Reading Radio
Chris Hadnagy, who hosts the annual Social Engineering Capture the Flag Contest at DEF CON, will discuss the latest trends attackers are using.