OpenSTAManager has a SQL Injection in Scadenzario Print Template
Date: 2026-02
Affected: composer/devcode-it/openstamanager
Attack vector: sql-injection
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2025-69216
CWE: CWE-89

### Summary An **authenticated SQL Injection vulnerability** in OpenSTAManager's Scadenzario (Payment Schedule) print template allows any authenticated user to extract sensitive data from the database, including admin credentials, customer information, and financial records. The vulnerability enables complete database read access through error-based SQL injection techniques. ### Details The vulnerability exists in `templates/scadenzario/init.php` at **line 46**, where the `id_anagrafica` parameter is directly concatenated into an SQL query without proper sanitization: **Vulnerable Code:** ```php if (get('id_anagrafica') && get('id_anagrafica') != 'null') { $module_query = str_replace('1=1', '1=1 AND `co_scadenziario`.`idanagrafica`="'.get('id_anagrafica').'"', $module_query); $id_anagrafica = get('id_anagrafica'); } ``` The `get()` function retrieves user input from GET/POST parameters without validation. The parameter value is directly embedded into the SQL query string using string concatenation instead of using the application's `prepare()` sanitization function, enabling SQL Injection attacks. **Root Cause:** - Missing use of `prepare()` function for input sanitization - Direct string concatenation in SQL query construction - No input validation or type checking **Affected Endpoint:** ``` /pdfgen.php?ptype=scadenzario&id_anagrafica=[INJECTION_PAYLOAD] ``` **Affected Files:** - `templates/scadenzario/init.php` (line 46) - **Primary vulnerability** - `templat


Mitigations:

Architectural layers (MAESTRO):