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

CVE-2025-13209: bestfeng oa_git_free XXE Vulnerability

CVE-2025-13209 is an XML external entity vulnerability in bestfeng oa_git_free affecting versions up to 9.5, exploitable remotely through the updateWriteBack function. This article covers technical details, impact analysis, and mitigation strategies.

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-13209 Overview

CVE-2025-13209 is an XML External Entity (XXE) vulnerability affecting bestfeng oa_git_free versions up to 9.5. The flaw resides in the updateWriteBack function within yimioa-oa9.5\server\c-flow\src\main\java\com\cloudweb\oa\controller\WorkflowPredefineController.java. Attackers can manipulate the writeProp argument to trigger external entity resolution during XML parsing. The vulnerability is remotely exploitable and requires low-level authentication. Public exploit details have been released, increasing the practical risk to exposed instances. The weakness is classified under CWE-610: Externally Controlled Reference to a Resource in Another Sphere.

Critical Impact

Remote authenticated attackers can abuse the writeProp parameter to perform XXE attacks against the WorkflowPredefineController, enabling potential disclosure of local files and limited server-side request forgery against internal resources.

Affected Products

  • bestfeng oa_git_free version 9.0
  • bestfeng oa_git_free versions up to and including 9.5
  • Component: WorkflowPredefineController.java within the yimioa-oa9.5 server c-flow module

Discovery Timeline

  • 2025-11-15 - CVE-2025-13209 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2025-13209

Vulnerability Analysis

The vulnerability exists in the updateWriteBack method of the WorkflowPredefineController class in the bestfeng oa_git_free workflow module. The method processes the writeProp request argument as XML content without disabling external entity resolution in the underlying XML parser. When an authenticated attacker submits a crafted XML payload referencing an external DTD or entity, the parser dereferences it during processing. This behavior aligns with [CWE-610], where the application resolves resources outside the intended trust boundary. The resulting XXE condition can lead to limited confidentiality, integrity, and availability impacts on the application. Because the exploit has been publicly disclosed, defenders should assume opportunistic scanning for vulnerable endpoints.

Root Cause

The root cause is an insecurely configured XML parser used to deserialize the writeProp parameter. The parser does not disable DOCTYPE declarations, external general entities, or external parameter entities. Java XML APIs such as DocumentBuilderFactory, SAXParserFactory, and XMLInputFactory resolve external entities by default unless explicitly hardened. The updateWriteBack handler trusts attacker-controlled XML, which allows entity references to point to arbitrary local or network resources.

Attack Vector

An attacker with low-privilege application credentials sends an HTTP request to the workflow predefine endpoint handled by updateWriteBack. The request body or form parameter writeProp contains an XML document declaring an external entity, typically through a <!DOCTYPE> block referencing a SYSTEM resource such as a local file path or internal HTTP URL. When the server parses the payload, it dereferences the entity and may embed its contents in the response, trigger outbound requests to attacker-controlled infrastructure, or probe internal network resources. The attack is network-reachable and does not require user interaction. Technical write-ups are available in the public GitHub XXE advisory and the VulDB entry #332528.

Detection Methods for CVE-2025-13209

Indicators of Compromise

  • HTTP requests to the workflow predefine endpoint containing a writeProp parameter with <!DOCTYPE or <!ENTITY declarations.
  • Outbound DNS or HTTP traffic from the application server to unexpected external hosts shortly after workflow API calls.
  • Application logs showing XML parser errors or file-read exceptions originating from WorkflowPredefineController.updateWriteBack.
  • Access attempts to sensitive local files such as /etc/passwd, C:\Windows\win.ini, or application configuration files reflected in response bodies.

Detection Strategies

  • Inspect web server and WAF logs for XML payloads containing SYSTEM, PUBLIC, or file:// URI schemes submitted to workflow endpoints.
  • Deploy signatures that match XXE patterns in POST bodies targeting the c-flow controller path.
  • Correlate authenticated workflow API activity with anomalous outbound network connections from the application server tier.

Monitoring Recommendations

  • Enable verbose logging on the XML parser layer to capture entity resolution attempts.
  • Monitor egress traffic from application servers for connections to non-approved destinations, especially on ports 80, 443, and 53.
  • Alert on repeated 500-series responses from the updateWriteBack endpoint, which may indicate exploitation attempts or parser failures.

How to Mitigate CVE-2025-13209

Immediate Actions Required

  • Restrict network access to the oa_git_free application to trusted users and management networks until a fix is applied.
  • Audit application accounts and rotate credentials for any user with workflow privileges.
  • Review recent application logs for suspicious XML payloads submitted to the WorkflowPredefineController.
  • Deploy WAF rules that block requests containing <!DOCTYPE or <!ENTITY in the writeProp parameter.

Patch Information

At the time of publication, no official vendor patch is referenced in the NVD advisory. Administrators should monitor the bestfeng project repository and the VulDB CTI entry for updates. Until a vendor-supplied patch is available, remediate by hardening XML parsing in the updateWriteBack method to disable DOCTYPE declarations and external entity resolution.

Workarounds

  • Configure the XML parser used in updateWriteBack to set FEATURE_SECURE_PROCESSING to true and disable http://apache.org/xml/features/disallow-doctype-decl to reject DTDs entirely.
  • Place the application behind a reverse proxy that strips or rejects XML payloads containing external entity references.
  • Apply egress filtering on the application server to prevent outbound requests to arbitrary hosts, limiting XXE data exfiltration and SSRF pivoting.
  • Remove or restrict the workflow predefine functionality for low-privilege users where business requirements permit.
bash
# Example Java hardening pattern for the vulnerable parser
# DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
# dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
# dbf.setFeature("http://xml.org/sax/features/external-general-entities", false);
# dbf.setFeature("http://xml.org/sax/features/external-parameter-entities", false);
# dbf.setXIncludeAware(false);
# dbf.setExpandEntityReferences(false);

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.