Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-48311 PoC — HP Deskjet 2540 跨站脚本漏洞

Source
Associated Vulnerability
Title:HP Deskjet 2540 跨站脚本漏洞 (CVE-2022-48311)
Description:HP Deskjet 2540是美国惠普(HP)公司的一款打印机。 HP Deskjet 2540 Printer series CEP1FN1418BR版本存在跨站脚本漏洞,该漏洞源于存在跨站脚本(XSS),允许经过身份验证的攻击者通过HTTP配置页面将他们自己的脚本注入页面。
Description
HP Deskjet 2540 series printer Firmware Version CEP1FN1418BR and Product Model Number A9U23B HTTP configuration page Cross Site Scripting (XSS) Vulnerability
Readme
# CVE-2022-48311
HP Deskjet 2540 series printer Firmware Version CEP1FN1418BR and Product Model Number A9U23B HTTP configuration page Cross Site Scripting (XSS) Vulnerability
## Description
Cross Site Scripting (XSS) in HP Deskjet 2540 series printer Firmware Version CEP1FN1418BR and Product Model Number A9U23B allows authenticated attacker to inject their own script into the page via HTTP configuration page.
## Additional Information
Remediation uses appropriate response headers. To prevent XSS in HTTP responses that are not intended to contain any HTML or JavaScript. Using the Content-Type and X-Content-Type-Options headers ensures that browsers interpret the responses in the way intended.
## Vulnerability Type
Cross Site Scripting (XSS)
## Vendor of Product
HP
## Affected Product Code Base
HP Deskjet Ink Advantage 2540 All-in-One Printer series - Firmware Version CEP1FN1418BR and Product Model Number A9U23B
## Affected Component
HP Deskjet 2540 series printer HTTP configuration page.
## Attack Type
Local
## Impact Code execution
true
## Impact Information Disclosure
true
## CVE Impact Other
Disclosure of the user's session cookie, allowing an attacker to hijack the user's session and take over the account.
## Attack Vectors
To exploit the vulnerability, the attacker must be authenticated.
## Discoverer
Jiraput Thamsongkrah
## Proof of Concept
![Alt text](https://github.com/swzhouu/CVE-2022-48311/blob/main/XSS%20Vulnerability%20in%20HP%20Deskjet%202540%20series%20printer%20HTTP%20configuration%20page.png)
File Snapshot

[4.0K] /data/pocs/adee35004c32e83ba6cbeb5fc09ab80a390afd6e ├── [1.5K] README.md └── [ 62K] XSS Vulnerability in HP Deskjet 2540 series printer HTTP configuration page.png 0 directories, 2 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.