Skip to main content
Vulnerability Database/CVE-2025-34265

CVE-2025-34265: Advantech Wise-deviceon Server XSS Flaw

CVE-2025-34265 is a stored cross-site scripting vulnerability in Advantech Wise-deviceon Server that lets attackers inject malicious scripts through rule fields. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-34265 Overview

CVE-2025-34265 is a stored cross-site scripting (XSS) vulnerability in Advantech WISE-DeviceOn Server versions prior to 5.4. The flaw resides in the /rmm/v1/rule-engines endpoint, where authenticated users can create or update agent rules. The min, max, and unit fields are persisted and later rendered in rule listings and detail views without HTML sanitization. An attacker with valid credentials can inject JavaScript that executes in the browser context of any user who views the affected rule. Successful exploitation can lead to session compromise and unauthorized actions performed as the victim user. The weakness is tracked as CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Authenticated attackers can hijack administrator sessions and perform unauthorized actions on managed Internet of Things (IoT) devices through persistent script injection.

Affected Products

  • Advantech WISE-DeviceOn Server versions prior to 5.4
  • Deployments exposing the /rmm/v1/rule-engines endpoint to authenticated users
  • Browser-based management consoles rendering stored rule content

Discovery Timeline

  • 2025-12-05 - CVE-2025-34265 published to the National Vulnerability Database (NVD)
  • 2026-10-18 - Last updated in NVD database

Technical Details for CVE-2025-34265

Vulnerability Analysis

WISE-DeviceOn Server is Advantech's remote device management platform for industrial IoT fleets. The rule engine subsystem allows operators to define threshold conditions on agent telemetry such as temperature or voltage bounds. The server accepts min, max, and unit values through the /rmm/v1/rule-engines API and stores them without validating or encoding script-bearing characters. When another operator opens the rules list or inspects an individual rule, the application writes those stored values directly into the HTML response. Any embedded <script> payload executes under the origin of the management console. The attack requires authentication but only low privileges, since standard operators can author rules.

Root Cause

The root cause is missing output encoding on fields intended to carry short numeric or textual metadata. The server trusts client-submitted content and the frontend renders it as HTML rather than text. No contextual escaping is applied prior to insertion into the Document Object Model (DOM).

Attack Vector

An authenticated attacker submits a crafted rule containing JavaScript in the min, max, or unit field via the rule-engines API. The payload persists in the server database. When a higher-privileged user later views the rule, the script runs in that user's browser session, allowing cookie theft, API calls on behalf of the victim, or modification of managed agents.

// No verified proof-of-concept code is published for CVE-2025-34265.
// See the VulnCheck advisory and Advantech security advisory for technical details.

Detection Methods for CVE-2025-34265

Indicators of Compromise

  • Rule records in WISE-DeviceOn whose min, max, or unit fields contain HTML tags, angle brackets, or JavaScript keywords such as <script>, onerror=, or javascript:
  • Unexpected outbound HTTP requests from administrator browsers to attacker-controlled domains shortly after viewing the rules console
  • Rule creation or modification events in audit logs originating from low-privilege accounts

Detection Strategies

  • Query the rule-engines data store for non-numeric characters in fields that should contain numeric thresholds or short unit strings
  • Inspect HTTP request bodies to /rmm/v1/rule-engines for payloads containing script tags, event handler attributes, or encoded script delimiters
  • Correlate rule write operations with subsequent anomalous session activity from administrator accounts

Monitoring Recommendations

  • Enable verbose audit logging on the WISE-DeviceOn API tier and forward events to a central Security Information and Event Management (SIEM) platform
  • Monitor administrative sessions for unusual API calls that follow a page view of the rules dashboard
  • Alert on any modification to rule fields by accounts that do not routinely author rules

How to Mitigate CVE-2025-34265

Immediate Actions Required

  • Upgrade WISE-DeviceOn Server to version 5.4 or later per the Advantech security advisory
  • Audit existing rule records and remove any entries containing HTML or script content in the min, max, or unit fields
  • Restrict rule-engine write permissions to a minimal set of trusted operators until patching completes

Patch Information

Advantech addressed the issue in WISE-DeviceOn Server 5.4. Patch guidance and download instructions are published in the Advantech Security Advisory. Additional context is available in the VulnCheck Advisory on XSS and the DeviceOn Documentation Resource.

Workarounds

  • Place the management console behind a reverse proxy that strips HTML metacharacters from /rmm/v1/rule-engines request bodies
  • Enforce a strict Content Security Policy (CSP) on the WISE-DeviceOn web interface to block inline script execution
  • Require multi-factor authentication for all accounts with rule-authoring privileges to limit abuse of compromised credentials
bash
# Example reverse-proxy filter to reject rule payloads containing angle brackets
# nginx snippet - adapt to your environment
location /rmm/v1/rule-engines {
    if ($request_body ~* "[<>]|javascript:|onerror=") {
        return 400;
    }
    proxy_pass http://wise_deviceon_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.