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
COVID-19: Latest Security News & Commentary
Dark Reading Staff 7/9/2020
Omdia Research Launches Page on Dark Reading
Tim Wilson, Editor in Chief, Dark Reading 7/9/2020
Mobile App Fraud Jumped in Q1 as Attackers Pivot from Browsers
Jai Vijayan, Contributing Writer,  7/10/2020
Register for Dark Reading Newsletters
White Papers
Video
Cartoon
Current Issue
Special Report: Computing's New Normal, a Dark Reading Perspective
This special report examines how IT security organizations have adapted to the "new normal" of computing and what the long-term effects will be. Read it and get a unique set of perspectives on issues ranging from new threats & vulnerabilities as a result of remote working to how enterprise security strategy will be affected long term.
Flash Poll
The Threat from the Internetand What Your Organization Can Do About It
The Threat from the Internetand What Your Organization Can Do About It
This report describes some of the latest attacks and threats emanating from the Internet, as well as advice and tips on how your organization can mitigate those threats before they affect your business. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2019-20898
PUBLISHED: 2020-07-13
Affected versions of Atlassian Jira Server and Data Center allow remote attackers to access sensitive information without being authenticated in the Global permissions screen. The affected versions are before version 8.8.0.
CVE-2019-20899
PUBLISHED: 2020-07-13
The Gadget API in Atlassian Jira Server and Data Center in affected versions allows remote attackers to make Jira unresponsive via repeated requests to a certain endpoint in the Gadget API. The affected versions are before version 8.5.4, and from version 8.6.0 before 8.6.1.
CVE-2019-20900
PUBLISHED: 2020-07-13
Affected versions of Atlassian Jira Server and Data Center allow remote attackers to inject arbitrary HTML or JavaScript via a cross site scripting (XSS) vulnerability in the Add Field module. The affected versions are before version 8.7.0.
CVE-2019-20897
PUBLISHED: 2020-07-13
The avatar upload feature in affected versions of Atlassian Jira Server and Data Center allows remote attackers to achieve Denial of Service via a crafted PNG file. The affected versions are before version 8.5.4, from version 8.6.0 before 8.6.2, and from version 8.7.0 before 8.7.1.
CVE-2020-15105
PUBLISHED: 2020-07-10
Django Two-Factor Authentication before 1.12, stores the user's password in clear text in the user session (base64-encoded). The password is stored in the session when the user submits their username and password, and is removed once they complete authentication by entering a two-factor authenticati...