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
Flash Poll
Current Issue
Cartoon
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2014-3541
Published: 2014-07-29
The Repositories component in Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote attackers to conduct PHP object injection attacks and execute arbitrary code via serialized data associated with an add-on.

CVE-2014-3542
Published: 2014-07-29
mod/lti/service.php in Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote attackers to read arbitrary files via an XML external entity declaration in conjunction with an entity reference, related to an XML External Entity (XXE) is...

CVE-2014-3543
Published: 2014-07-29
mod/imscp/locallib.php in Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote attackers to read arbitrary files via a package with a manifest file containing an XML external entity declaration in conjunction with an entity referenc...

CVE-2014-3544
Published: 2014-07-29
Cross-site scripting (XSS) vulnerability in user/profile.php in Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to inject arbitrary web script or HTML via the Skype ID profile field.

CVE-2014-3545
Published: 2014-07-29
Moodle through 2.3.11, 2.4.x before 2.4.11, 2.5.x before 2.5.7, 2.6.x before 2.6.4, and 2.7.x before 2.7.1 allows remote authenticated users to execute arbitrary code via a calculated question in a quiz.

Best of the Web
Dark Reading Radio