{"id":"CVE-2025-65103","aliases":["CVE-2025-65103","GHSA-2jm2-2p35-rp3j"],"related":[],"kind":"vulnerability","state":"published","title":"OpenSTAManager has an authenticated SQL Injection vulnerability in API via 'display' parameter","summary":"OpenSTAManager is an open source management software for technical assistance and invoicing. Prior to version 2.9.5, an authenticated SQL Injection vulnerability in the API allows any user, regardless of permission level, to execute arbitrary SQL queries. By manipulating the display parameter in an API request, an attacker can exfiltrate, modify, or delete any data in the database, leading to a full system compromise. This issue has been patched in version 2.9.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenSTAManager is an open source management software for technical assistance and invoicing. Prior to version 2.9.5, an authenticated SQL Injection vulnerability in the API allows any user, regardless of permission level, to execute arbitrary SQL queries. By manipulating the display parameter in an API request, an attacker can exfiltrate, modify, or delete any data in the database, leading to a full system compromise. This issue has been patched in version 2.9.5.","source":"cvelist"},{"lang":"en","text":"### Summary\nAn authenticated SQL Injection vulnerability in the API allows any user, regardless of permission level, to execute arbitrary SQL queries. By manipulating the `display` parameter in an API request, an attacker can exfiltrate, modify, or delete any data in the database, leading to a full system compromise.\n\n### Details\nThe vulnerability is located in the `retrieve()` method within `src/API/Manager.php`.\n\nUser input from the `display` GET parameter is processed without proper validation. The code strips the surrounding brackets `[]`, splits the string by commas, and then passes each resulting element directly into the `selectRaw()` function of the query builder.\n\n```php\n// User input from 'display' is taken without sanitization.\n$select = !empty($request['display']) ? explode(',', substr((string) $request['display'], 1, -1)) : null;\n\n// ...\n\n// The unsanitized input is passed directly to `selectRaw()`.\nforeach ($select as $s) {\n    $query->selectRaw($s);\n}\n```\n\nSince `selectRaw()` is designed to execute raw SQL expressions, it executes any malicious SQL code provided in the `display` parameter.\n\n### PoC\n1.  Log in to an OpenSTAManager instance as any user.\n2.  Navigate to the user's profile page to obtain their personal API Token.\n3.  Use this API token to send a specially crafted GET request to the API endpoint.\n\n**Time-Based Blind Injection Test:**\n\nReplace `<your_host>`, `<your_token>`, and `<resource_name>` with your actual values. `anagrafiche` is a valid resource.\n\n```bash\ncurl \"http://<your_host>/openstamanager/api?token=<your_token>&resource=anagrafiche&display=[1,SLEEP(5)]\"\n```\n\nThe server will delay its response by approximately 5 seconds, confirming the `SLEEP(5)` command was executed by the database.\n\n### Impact\nThis is a critical SQL Injection vulnerability. Any authenticated user, even those with the lowest privileges, can exploit this vulnerability to:\n\n*   **Exfiltrate all data** from the database (e.g., user credentials, customer information, invoices, internal data).\n*   **Modify or delete data**, compromising data integrity.\n*   Potentially achieve further system compromise, depending on the database user's privileges and system configuration.","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. Versiones anteriores a la versión 2.9.5, una vulnerabilidad de inyección SQL autenticada en la API permite a cualquier usuario, independientemente de su nivel de permisos, ejecutar consultas SQL arbitrarias. Al manipular el parámetro 'display' en una solicitud de API, un atacante puede exfiltrar, modificar o eliminar cualquier dato en la base de datos, lo que lleva a un compromiso total del sistema. Este problema ha sido parcheado en la versión 2.9.5.","source":"nvd"}],"published":"2025-11-19T19:09:09.209Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 2.9.5","status":"affected"}],"vendor":"devcode-it","product":"openstamanager","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.9.5"}],"ecosystem":"Packagist","package":"devcode-it/openstamanager","purl":"pkg:composer/devcode-it/openstamanager","source":"ghsa"}],"references":[{"url":"https://github.com/devcode-it/openstamanager/security/advisories/GHSA-2jm2-2p35-rp3j","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65103","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/devcode-it/openstamanager","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-11-19T19:59:37.339Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65103","url":"https://www.cve.org/CVERecord?id=CVE-2025-65103","licence":"CVE Terms of Use","modified":"2025-11-19T20:31:35.423Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2jm2-2p35-rp3j","url":"https://github.com/advisories/GHSA-2jm2-2p35-rp3j","licence":"CC-BY-4.0","modified":"2025-11-20T13:27:54.749Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65103","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65103","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:07.849Z","epss":{"score":0.0037,"percentile":0.3293,"date":"2026-12-01T12:00:22.000Z"}}