Critical OpenSMTPD Bug Opens Linux and OpenBSD Mail Servers to Hackers

Cybersecurity researchers have discovered a new critical vulnerability (CVE-2020-7247) in the OpenSMTPD email server that could allow remote attackers to take complete control over BSD and many Linux based servers.

OpenSMTPD is an open-source implementation of the server-side SMTP protocol that was initially developed as part of the OpenBSD project but now comes pre-installed on many UNIX-based systems.

According to Qualys Research Labs, who discovered this vulnerability, the issue resides in the OpenSMTPD’s sender address validation function, called smtp_mailaddr(), which can be exploited to execute arbitrary shell commands with elevated root privileges on a vulnerable server just by sending specially crafted SMTP messages to it.

The flaw affects OpenBSD version 6.6 and works against the default configuration for both, the locally enabled interface as well as remotely if the daemon has been enabled to listen on all interfaces and accepts external mail.

“Exploitation of the vulnerability had some limitations in terms of local part length (max 64 characters is allowed) and characters to be escaped (‘$’, ‘|’),” the researchers said in an advisory.

“Qualys researchers were able to overcome these limitations using a technique from the Morris Worm (one of the first computer worms distributed via the Internet, and the first to gain significant mainstream media attention) by executing the body of the mail as a shell script in Sendmail.”

Additionally, the researchers have also released a proof-of-concept exploit code demonstrating the OpenSMTPD vulnerability.

Qualys responsibly reported the flaw to OpenSMTPD developers, who earlier today released OpenSMTPD version 6.6.2p1 with a patch and also pushed an update for OpenBSD users.

Sysadmins running servers with a vulnerable version of the email software are advised to apply the patch as soon as possible.

You May Also Like

One thought on “Critical OpenSMTPD Bug Opens Linux and OpenBSD Mail Servers to Hackers

  1. Many thanks to you for sharing most of these wonderful articles. In addition, the perfect travel and medical insurance strategy can often reduce those problems that come with vacationing abroad. A medical crisis can rapidly become too expensive and that’s certain to quickly place a financial weight on the family finances. Having in place the ideal travel insurance program prior to leaving is worth the time and effort. Cheers

Leave a Reply

Your email address will not be published. Required fields are marked *


Unique Visitors
» 29,668 Today
» 42,130 Yesterday
» 133,486 This Week
» 585,628 This Month
» 3,278,915 This Year
» 19,514,010 Total (since 2019-12-11)
» Record: 205,757 (2023-08-13)
Counter by DarkWeb.Solutions