Lucene search

K
attackerkbAttackerKBAKB:B3B3DA42-859E-48BF-B67E-3A4E5F266E97
HistoryMay 21, 2012 - 12:00 a.m.

CVE-2012-0297 Symantec Web Gateway Vulnerability

2012-05-2100:00:00
attackerkb.com
9

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

The management GUI in Symantec Web Gateway 5.0.x before 5.0.3 does not properly restrict access to application scripts, which allows remote attackers to execute arbitrary code by (1) injecting crafted data or (2) including crafted data.

Recent assessments:

wchen-r7 at September 12, 2019 6:07pm UTC reported:

—\” >> logging”);
exec(“echo \“route >> logging\” >> networkScript”);
echo “executing script<br />”;
exec(“./networkScript”);
?>
&lt;/body&gt;
&lt;/html&gt;

Analysis of the command injection

echo “ifconfig eth0 netmask “. \(HTTP_POST_VARS[“subnet”] ." ". \)HTTP_POST_VARS[“ip”] .“;” >> networkScript

“;” + payload.encoded + “;#”

**/spywall/network.php**

```php
&lt;?php

require_once('includes/spywall_api.php');
/*
$wan = 'eth0';
$lan = 'eth1';
$management = 'eth2';
$mon = 'eth3';
$savename = '';

$model = exec('cat /tmp/appliancemodel');
if ($model == '007' || $model == '009') {
	// different ethernet device numbers for these models
	$management = 'eth0';
	$mon = 'eth3';
	$wan = 'eth5';
	$lan = 'eth6';
}
*/
$portMap = getPortMap();
$management = $portMap['mgmt'];
$mon = $portMap['monitor'];
$wan = $portMap['wan'];
$lan = $portMap['lan'];

$device = '';
if ($_POST['name'] == 'lan') {
	$device = $lan;
	$savename = 'LAN';
} else if ($_POST['name'] == 'wan') {
	$device = $wan;
	$savename = 'WAN';
} else if ($_POST['name'] == 'monitor') {
	$device = $mon;
	$savename = 'MON';
} else {
	$device = $management;
	$savename = 'MAN';
}

if (strlen($device)) {
	// set autonegotiation, duplex (if it isn't set to unknown),
	// and speed (if it isn't set to unknown)
	exec("sudo /sbin/ethtool -s $device autoneg ". $_POST['auto'] .((isset($_POST['duplex']) && $_POST['duplex'] != 'unknown')?(" duplex ". $_POST['duplex']):'') .((isset($_POST['speed']) && $_POST['speed'] != 'unknown')?(" speed ". $_POST['speed']):''));

        exec("sudo /bin/rm -f /home/admin/autoconfig". $savename);
	// save info to autoconfig file
	exec("echo \"/sbin/ethtool -s $device autoneg ". $_POST['auto'] .((isset($_POST['duplex']) && $_POST['duplex'] != 'unknown')?(" duplex ". $_POST['duplex']):'') .((isset($_POST['speed']) && $_POST['speed'] != 'unknown')?(" speed ". $_POST['speed']):'') ."\" &gt; /home/admin/autoconfig". $savename);
//	echo "\"/sbin/ethtool -s $device autoneg ". $_POST['auto'] .(($_POST['duplex'] != 'unknown')?(" duplex ". $_POST['duplex']):'') .(($_POST['speed'] != 'unknown')?(" speed ". $_POST['speed']):'') ."\" &gt; /home/admin/autoconfig". $savename;
	sleep(5);	// we sleep because otherwise we get back before the changes take effect
}

?&gt;
&lt;script language="javascript"&gt; window.location="admin_advanced.php";&lt;/script&gt;

Assessed Attacker Value: 0
Assessed Attacker Value: 0Assessed Attacker Value: 0

10 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

Related for AKB:B3B3DA42-859E-48BF-B67E-3A4E5F266E97