Symantec Web Gateway upload_file() Remote Code Execution (SYM12-006) (intrusive check)

high Nessus Plugin ID 59210

Synopsis

A web security application hosted on the remote web server has a remote code execution vulnerability.

Description

The remote web server is hosting a version of Symantec Web Gateway with a code execution vulnerability. The upload_file() function of util_functions.php allows PHP files to be uploaded to a directory where the web server can execute them. This function is used by multiple PHP scripts that can be requested without authentication. A remote, unauthenticated attacker could exploit this to execute arbitrary code.
Achieving root command execution is trivial.

Solution

Upgrade to Symantec Web Gateway 5.0.3 or later.

See Also

https://www.tenable.com/security/research/tra-2012-03

https://www.zerodayinitiative.com/advisories/ZDI-12-091/

https://www.securityfocus.com/archive/1/523065/30/0/threaded

http://www.nessus.org/u?5b5929ae

Plugin Details

Severity: High

ID: 59210

File Name: symantec_web_gateway_upload_file_rce.nasl

Version: 1.18

Type: remote

Family: CGI abuses

Published: 5/21/2012

Updated: 1/19/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.2

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:symantec:web_gateway

Required KB Items: www/symantec_web_gateway

Exploit Available: true

Exploit Ease: No exploit is required

Patch Publication Date: 5/17/2012

Vulnerability Publication Date: 5/17/2012

Exploitable With

Core Impact

Metasploit (Symantec Web Gateway 5.0.2.8 Arbitrary PHP File Upload Vulnerability)

Elliot (Symantec Web Gateway 5.0.2 File Upload)

Reference Information

CVE: CVE-2012-0299

BID: 53443