Vulnerabilities could trigger payload in emails upon receiving or opening

Posted by   Virus Bulletin on   May 7, 2013

Flaws in IBM Notes and Exim/Dovecot easy to mitigate.

Two recently discovered vulnerabilities in mail processing software could give an attacker access to a targeted system without the need for any links to be clicked or attachments to be opened.

When email security experts talk about "malicious emails", they usually mean emails with malware attached, or emails that link to websites hosting malware. Both are commonly seen in today's spam, and are also regularly used in targeted attacks.

In fact, the term "malicious email" is something of a misnomer here: there is nothing malicious about the emails themselves, and the simple action of a mail server accepting these emails, or a user viewing them in an email client, won't cause any harm. As a consequence, only static analysis of the attachment and URL tend to be performed by security software, thus making it important for the files and URLs to be scanned when they are accessed.

However, two recently discovered vulnerabilities demonstrate that in some cases the emails themselves can actually be malicious.

The first case concerns IBM Notes (formerly Lotus Notes), whose mail client accepts JavaScript tags and embedded Java applets inside HTML email. While JavaScript has become an essential part of the web, it is not supposed to be used in HTML emails. Doing so would allow for various social engineering tricks; JavaScript is also commonly used both to enable and obfuscate web-based attacks.

As most such attacks ultimately exploit vulnerabilities in Java, allowing Java applets to run inside an email client is inadvisable - especially for a client, like Notes, that usually has access to various internal databases. IBM has promised to come up with a fix, and in the meantime, an advisory already offers two ways in which these vulnerabilities can be mitigated.

Another vulnerability, in a default configuration for Dovecot and Exim, could allow for remote code execution using specially crafted emails and wouldn't even need the emails to be opened by the recipient.

Exim is a popular mail-transfer agent and Dovecot is an IMAP/POP3 server, with the two commonly used together on Unix-based systems. So commonly, in fact, that Dovecot provides a default configuration file for Exim to make the two packages work together. Researchers at RedTeam Pentesting have discovered a vulnerability in this configuration that could allow for remote code execution.

To exploit this vulnerability, an attacker would merely have to embed the commands in the SMTP envelope's From address, which would then be executed on the server running Exim. The vulnerability can easily be fixed by making a small configuration change in Exim. It is unclear how many mail servers use this particular setting, but the Immunity blog does some back-of-the-envelope calculations to suggest there might be quite a few of them.

It is good to keep in mind that both cases are exceptional and easy to mitigate: there is currently little reason for end-users to fear that merely viewing or receiving an email can be dangerous. There is no evidence in either case that the vulnerabilities have been exploited in-the-wild. Still, they are a reminder of the fact that in email the sender has some control over what happens - and that in some cases this could have unwanted consequences.

Posted on 07 May 2013 by Martijn Grooten

twitter.png
fb.png
linkedin.png
hackernews.png
reddit.png

 

Latest posts:

VBSpam tests to be executed under the AMTSO framework

VB is excited to announce that, starting from the Q3 test, all VBSpam tests of email security products will be executed under the AMTSO framework.

In memoriam: Prof. Ross Anderson

We were very sorry to learn of the passing of Professor Ross Anderson a few days ago.

In memoriam: Dr Alan Solomon

We were very sorry to learn of the passing of industry pioneer Dr Alan Solomon earlier this week.

New paper: Nexus Android banking botnet – compromising C&C panels and dissecting mobile AppInjects

In a new paper, researchers Aditya K Sood and Rohit Bansal provide details of a security vulnerability in the Nexus Android botnet C&C panel that was exploited in order to gather threat intelligence, and present a model of mobile AppInjects.

New paper: Collector-stealer: a Russian origin credential and information extractor

In a new paper, F5 researchers Aditya K Sood and Rohit Chaturvedi present a 360 analysis of Collector-stealer, a Russian-origin credential and information extractor.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.