what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Symantec Web Gateway 5.2.2 OS Command Injection

Symantec Web Gateway 5.2.2 OS Command Injection
Posted Oct 6, 2016
Authored by EgiX | Site karmainsecurity.com

Symantec Web Gateway versions 5.2.2 and below suffer from an OS command injection vulnerability in new_whitelist.php.

tags | exploit, web, php
advisories | CVE-2016-5313
SHA-256 | cdd7d3fa2ce47af05afd30d9d1babc8da234a3d22e201c7e7cdf0cff0bfcaed3

Symantec Web Gateway 5.2.2 OS Command Injection

Change Mirror Download
------------------------------------------------------------------------------------
Symantec Web Gateway <= 5.2.2 (new_whitelist.php) OS Command Injection
Vulnerability
------------------------------------------------------------------------------------


[-] Software Link:

https://www.symantec.com/


[-] Affected Versions:

Version 5.1.1.24, 5.2.1.80 and 5.2.2.118. Other versions might be affected.


[-] Vulnerability Description:

The vulnerable code is located in the /spywall/new_whitelist.php script:

141. $isNew = $_POST['isNew'];
142. $sid = $_POST['sid'];
143. $exceptions = array();
144. $last_modified = time();
145. /* validate input */
146.
147. if (!$sid && !isValidWhiteDomain($white_ip) &&
!isIpSubnet($white_ip)) {
148. $errors['white_ip'] = 'Please enter a valid domain or IP
address or IP/mask.';
149. }

The vulnerability exists because the validation checks may be bypassed
by setting the "sid" POST parameter to a
value different from zero. In this way, even though the "white_ip" POST
parameter (assigned to the $white_ip variable)
is not a valid domain or IP address, it will be passed to the
add_whitelist() function as its $url parameter:

329. function add_whitelist ($signature, $url, $whitelist,
$ignore_auth, $restoreConfig = 0) {
330. [...]
331. if (!isCiu()){
332. if ($restoreConfig) {
333. syscall("sudo /usr/local/bin/updateDB 2 1 $url
$whitelist $ignore_auth [...]
334. } else {
335. syscall("sudo /usr/local/bin/updateDB 2 1 $url
$whitelist $ignore_auth [...]
336. }
337. }

This can be exploited to inject and execute arbitrary OS commands with
the privileges of the "root" user on the appliance.
Successful exploitation of this vulnerability requires an user account
with read-write permissions (POLICY_LEVEL).


[-] Solution:

Update to version 5.2.5.


[-] Disclosure Timeline:

[09/07/2016] - Vendor notified
[11/07/2016] - Vendor response
[09/09/2016] - Vendor asks to confirm this is fixed in version 5.2.5
[15/09/2016] - Feedback sent to the vendor
[05/10/2016] - Publication of vendor"s advisory: https://goo.gl/aOJq5A
[06/10/2016] - Publication of this advisory


[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2016-5313 to this vulnerability.


[-] Credits:

Vulnerability discovered by Egidio Romano.


[-] Original Advisory:

http://karmainsecurity.com/KIS-2016-12




Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close