Unknown
CVE-2012-0297 Symantec Web Gateway Vulnerability
CVE ID
AttackerKB requires a CVE ID in order to pull vulnerability data and references from the CVE list and the National Vulnerability Database. If available, please supply below:
Add References:
Unknown
(1 user assessed)Unknown
(1 user assessed)Unknown
Unknown
Unknown
CVE-2012-0297 Symantec Web Gateway Vulnerability
MITRE ATT&CK
Collection
Command and Control
Credential Access
Defense Evasion
Discovery
Execution
Exfiltration
Impact
Initial Access
Lateral Movement
Persistence
Privilege Escalation
Topic Tags
Description
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.
Add Assessment
Technical Analysis
—\” >> logging”);
exec(“echo \“route >> logging\” >> networkScript”);
echo “executing script<br/>
”;
exec(“./networkScript”);
?>
</body>
</html>
Analysis of the command injection
echo “ifconfig eth0 netmask “. \(HTTP_POST_VARS["subnet"] ." ". \)HTTP_POST_VARS[“ip”] .“;” >> networkScript
“;” + payload.encoded + “;#”
**/spywall/network.php** ```php <?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']):'') ."\" > /home/admin/autoconfig". $savename); // echo "\"/sbin/ethtool -s $device autoneg ". $_POST['auto'] .(($_POST['duplex'] != 'unknown')?(" duplex ". $_POST['duplex']):'') .(($_POST['speed'] != 'unknown')?(" speed ". $_POST['speed']):'') ."\" > /home/admin/autoconfig". $savename; sleep(5); // we sleep because otherwise we get back before the changes take effect } ?> <script language="javascript"> window.location="admin_advanced.php";</script>
Would you also like to delete your Exploited in the Wild Report?
Delete Assessment Only Delete Assessment and Exploited in the Wild ReportCVSS V3 Severity and Metrics
General Information
Vendors
References
Additional Info
Technical Analysis
Report as Emergent Threat Response
Report as Zero-day Exploit
Report as Exploited in the Wild
CVE ID
AttackerKB requires a CVE ID in order to pull vulnerability data and references from the CVE list and the National Vulnerability Database. If available, please supply below: