Rapid7 Vulnerability & Exploit Database

Netgear R7000 backup.cgi Heap Overflow RCE

Back to Search

Netgear R7000 backup.cgi Heap Overflow RCE

Disclosed
04/21/2021
Created
07/29/2021

Description

This module exploits a heap buffer overflow in the genie.cgi?backup.cgi page of Netgear R7000 routers running firmware version 1.0.11.116. Successful exploitation results in unauthenticated attackers gaining code execution as the root user. The exploit utilizes these privileges to enable the telnet server which allows attackers to connect to the target and execute commands as the admin user from within a BusyBox shell. Users can connect to this telnet server by running the command "telnet *target IP*".

Author(s)

  • colorlight2019
  • SSD Disclosure
  • Grant Willcox (tekwizz123)

Platform

Linux

Architectures

armle

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/http/netgear_r7000_backup_cgi_heap_overflow_rce
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > show actions
    ...actions...
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > set ACTION < action-name >
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > show options
    ...show and set options...
msf auxiliary(netgear_r7000_backup_cgi_heap_overflow_rce) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;