CVE-2023-22582

9.0 CRITICAL

📋 TL;DR

This vulnerability allows attackers to inject malicious scripts into the Danfoss AK-EM100 web applications, which are then reflected back to users' browsers. It affects users of Danfoss AK-EM100 devices with vulnerable web interfaces, potentially leading to session hijacking or credential theft.

💻 Affected Systems

Products:
  • Danfoss AK-EM100
Versions: Specific versions not detailed in references; assume all versions prior to patched release.
Operating Systems: Embedded systems running the web application
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability is in the web interface; default configurations likely expose it.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal user credentials, hijack sessions, or redirect users to malicious sites, compromising device control and sensitive data.

🟠

Likely Case

Attackers may trick users into clicking malicious links, leading to session theft or unauthorized actions on the web interface.

🟢

If Mitigated

With input validation and output encoding, the risk is reduced to minimal, preventing script execution.

🌐 Internet-Facing: HIGH, as web applications exposed to the internet are directly accessible to attackers.
🏢 Internal Only: MEDIUM, as internal networks may have limited exposure but still vulnerable to insider threats or compromised devices.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Reflected XSS typically requires user interaction but is easy to exploit with crafted URLs.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not specified in references; check vendor advisory for details.

Vendor Advisory: https://divd.nl/cves/CVE-2023-22582

Restart Required: Yes

Instructions:

1. Check vendor advisory for patch details. 2. Download and apply the patch from Danfoss. 3. Restart the AK-EM100 device to apply changes.

🔧 Temporary Workarounds

Input Validation and Output Encoding

all

Implement server-side input validation and encode output to prevent script injection.

N/A for direct commands; requires code changes in web application.

Web Application Firewall (WAF)

all

Deploy a WAF to filter malicious requests and block XSS payloads.

N/A; configure WAF rules to detect and block XSS patterns.

🧯 If You Can't Patch

  • Restrict network access to the web interface using firewalls or VLANs to limit exposure.
  • Educate users to avoid clicking on untrusted links and implement browser security policies.

🔍 How to Verify

Check if Vulnerable:

Test the web interface by injecting a simple script payload (e.g., <script>alert('test')</script>) into input fields and check if it executes.

Check Version:

Check the device web interface or documentation for firmware version; no standard command provided.

Verify Fix Applied:

After patching, repeat the test to ensure script payloads are sanitized and do not execute.

📡 Detection & Monitoring

Log Indicators:

  • Log entries showing suspicious input patterns like script tags or encoded payloads in HTTP requests.

Network Indicators:

  • Unusual HTTP requests with XSS payloads to the AK-EM100 web interface.

SIEM Query:

Example: source="ak-em100" AND (http_request CONTAINS "<script>" OR http_request CONTAINS "javascript:")

🔗 References

📤 Share & Export