Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Network Security

10/15/2019
09:35 AM
Larry Loeb
Larry Loeb
Larry Loeb
50%
50%

Don't Get Burned by Your Sophos Firewall

Researcher finds Sophos firewalls can allow net-based RCE without authentication.

A critical vulnerability in an Internet firewall appliance that is made by Sophos and may allow an unverified attacker to achieve root status (and thereby execute any sort of arbitrary command) has been detailed by Rob Mardisalu of TheBestVPN in a blog post.

The exploit, tracked as CVE-2019-17059, impacts Sophos's CyberoamOS Linux-based operating system. It can be triggered by sending specially crafted requests to the product's Web Admin or SSL VPN consoles. This "specially crafted request" is the methodology used by many SQL injection attacks.

Cyberoam-based devices are generally used as firewalls and SSL VPN gateways. This architectural position is very beneficial to an attacker, since internal networks can then be accessed by the attacker from a device that is usually trusted by default.

The blog says that Shodan (a search engine for Internet-connected devices) shows that there are more than 96,000 Internet-facing Cyberoam devices across the world. Most of these devices are installed in enterprises, universities and some in major banks. The posting says that both the configuration and SSLVPN interfaces have a servlet that handles the main operations for them. These operations are defined using a parameter named "mode".

Most of these are authenticated. But there are a few ops that can be accessed without authentication: "login" is one.

The problem that was found originates in the email antivirus/antispam module. The request mode for this endpoint (module, op) is 458. Now, the opcodes are mapped to their names in the Cyberoam database (internal database Postgres). By looking up 458, the name of this opcode is obtainable. The vulnerable opcode is named "sendmail".

Cyberoam does some preliminary validation checks on data in handling the opcode. When this first validation round is passed (or bypassed if it is not done at all) a new event code (363) will be sent to the backend. The bug that was discovered is in the code that handles the opcode in the backend.

After the variables are assigned, the opcode handler makes a call to EXECSH which then calls /bin/sh -c "ARGUMENTS". If the execution happens while using values that are controlled, remote command execution is simply done through the EXECSH call. Authentication is not required.

Sophos has issued an advisory on the RCE, where it says that a hot fix patch was issued in late September. The patched OS version is the upcoming CROS version 10.6.6 MR-6. Sophos also claims that 99% of affected appliances have already been patched, but that figure was not independently verified. Of course, any machines that were powered down or not facing the Internet would not have been patched. Fortunately, the patch is available through Sophos support independent of the full OS upgrade.

— Larry Loeb has written for many of the last century's major "dead tree" computer magazines, having been, among other things, a consulting editor for BYTE magazine and senior editor for the launch of WebWeek.

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Cloud Security Threats for 2021
Or Azarzar, CTO & Co-Founder of Lightspin,  12/3/2020
Why Vulnerable Code Is Shipped Knowingly
Chris Eng, Chief Research Officer, Veracode,  11/30/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win an Amazon Gift Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
2021 Top Enterprise IT Trends
We've identified the key trends that are poised to impact the IT landscape in 2021. Find out why they're important and how they will affect you today!
Flash Poll
Assessing Cybersecurity Risk in Todays Enterprises
Assessing Cybersecurity Risk in Todays Enterprises
COVID-19 has created a new IT paradigm in the enterprise and a new level of cybersecurity risk. This report offers a look at how enterprises are assessing and managing cyber-risk under the new normal.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2020-27772
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in coders/bmp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned int`. This would most likely lead to an impact to application availability, but could po...
CVE-2020-27773
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/gem-private.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned char` or division by zero. This would most likely lead to an impact to appli...
CVE-2020-28950
PUBLISHED: 2020-12-04
The installer of Kaspersky Anti-Ransomware Tool (KART) prior to KART 4.0 Patch C was vulnerable to a DLL hijacking attack that allowed an attacker to elevate privileges during installation process.
CVE-2020-27774
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/statistic.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of a too large shift for 64-bit type `ssize_t`. This would most likely lead to an impact to application availability, but co...
CVE-2020-27775
PUBLISHED: 2020-12-04
A flaw was found in ImageMagick in MagickCore/quantum.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type unsigned char. This would most likely lead to an impact to application availability, but c...