This module exploits a stack buffer overflow in the Cisco RV series routers SSL VPN functionality. The default SSL VPN configuration is exploitable, with no authentication required and works over the Internet! The stack is executable and no ASLR is in place, which makes exploitation easier. Successful execution of this module results in a reverse root shell. A custom payload is used as Metasploit does not have ARMLE null free shellcode. This vulnerability was presented by the Flashback Team in Pwn2Own Austin 2021 and OffensiveCon 2022. For more information check the referenced advisory. This module has been tested in firmware versions 1.0.03.15 and above and works with around 65% reliability. The service restarts automatically so you can keep trying until you pwn it. Only the RV340 router was tested, but other RV series routers should work out of the box.
Exploit database
Vulnerability
CVE-2022-20699
Cisco Small Business RV Series Routers Vulnerabilities
Vulnerability details
- Score
- 10.0
- Severity
- critical
CVSS 3.1 · cisco
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HDescription
Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers could allow an attacker to do any of the following: Execute arbitrary code Elevate privileges Execute arbitrary commands Bypass authentication and authorization protections Fetch and run unsigned software Cause denial of service (DoS) For more information about these vulnerabilities, see the Details section of this advisory.
CVE ProgramExploit source choices
4 sourcesCisco RV340 SSL VPN Unauthenticated Remote Code Execution
2022-02-02cisco_rv340_sslvpn.rb
audiobahn/cve-2022-20699
Cisco Anyconnect VPN unauth RCE (rwx stack)
2022-02-072 files · 239 stars
cvedb/awesome-cve-repo
cvedb/awesome-cve-repo source repository
2023-03-237 files · 9 stars
cvedb/top
cvedb/top source repository
2023-03-1911 files · 2 stars