{"vuid":"VU#777024","idnumber":"777024","name":"Netgear Management System NMS300 contains arbitrary file upload and path traversal vulnerabilities","keywords":["netgear","nms300","arbitrary upload","code execution","path traversal"],"overview":"Netgear Management System NMS300, version 1.5.0.11 and earlier, is vulnerable to arbitrary file upload, which may be leveraged by unauthenticated users to execute arbitrary code with SYSTEM privileges. A directory traversal vulnerability enables authenticated users to download arbitrary files.","clean_desc":"Netgear Management System NMS300 is a configuration, monitoring, and diagnostics utility for managing SNMP networked devices via a web interface. CWE-434: Unrestricted Upload of File with Dangerous Type - CVE-2016-1524 Default installations of NMS300 operate two Java servlets, http://<IP>:8080/fileUpload.do and http://<IP>:8080/lib-1.0/external/flash/fileUpload.do, that can be accessed by unauthenticated users. By sending a specially crafted POST request to the servlets, an attacker can upload arbitrary files that will then be accessible from the NMS300 server's root directory as http://<IP>:8080/null<filename>. The NMS300 server runs with SYSTEM privileges. CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') - CVE-2016-1525 NMS300 contains a directory traversal vulnerability. An authenticated attacker can manipulate the realName parameter of a crafted POST request sent to http://<IP>:8080/data/config/image.do?method=add to load an arbitrary local file from the server host to a predictable location in the web service. The file can then be downloaded from http://<IP>:8080/data/config/image.do?method=export&imageId=<ID>, where <ID> is a count that increments by one every time a file is uploaded in this manner. For more information, refer to Pedro Ribeiro's disclosure. The CVSS score describes CVE-2016-1524.","impact":"An unauthenticated attacker on the network can upload arbitrary files to the server's root web directory, leading to data creation and arbitrary code execution with SYSTEM privileges. An authenticated attacker on the network can access any file on the server host.","resolution":"The CERT/CC is currently unaware of a practical solution to this problem and recommends the following workaround.","workarounds":"Restrict access Enable firewall rules to restrict untrusted sources from accessing the web management interface.","sysaffected":"","thanks":"Thanks to Pedro Ribeiro (pedrib@gmail.com) of Agile Information Security for reporting this vulnerability.","author":"This document was written by Joel Land.","public":["http://downloadcenter.netgear.com/en/product/NMS300#","https://cwe.mitre.org/data/definitions/434.html","https://cwe.mitre.org/data/definitions/22.html","http://seclists.org/fulldisclosure/2016/Feb/30"],"cveids":["CVE-2016-1524","CVE-2016-1525"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2015-11-24T20:30:10Z","publicdate":"2016-02-03T00:00:00Z","datefirstpublished":"2016-02-03T18:40:49Z","dateupdated":"2016-02-04T17:43:47Z","revision":22,"vrda_d1_directreport":"1","vrda_d1_population":"2","vrda_d1_impact":"4","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"A","cvss_accesscomplexity":"L","cvss_authentication":null,"cvss_confidentialityimpact":"C","cvss_integrityimpact":"C","cvss_availabilityimpact":"C","cvss_exploitablity":null,"cvss_remediationlevel":"U","cvss_reportconfidence":"C","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"M","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"8.3","cvss_basevector":"AV:A/AC:L/Au:N/C:C/I:C/A:C","cvss_temporalscore":"7.5","cvss_environmentalscore":"5.622622822656","cvss_environmentalvector":"CDP:ND/TD:M/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}