Summary
ILIAS contains a SQL injection vulnerability in the Study Programme members list Name and Status filters. An authenticated user with permission to view members in an organizational unit may be able to manipulate database queries, potentially gaining administrative control.
Affected context
The issue affects ILIAS versions before 9.25, 10.13, and 11.6. It occurs in ilPRGAssignmentFilter::toConditions() when processing the Name and Status filters in the Study Programme members list; deployments are at risk when user-supplied filter values are incorporated into SQL without safe parameterization.
Exploit preconditions
- Attack surface: Study Programme members list filtering
- Required access: An authenticated account with OrgUnit permission to view members
- Trigger point: Applying the Name or Status filter
- Why exploitation is possible: Filter values may escape SQL
LIKEliterals and affect the structure of the resulting query, including through stacked statements.
Why this happens
The underlying issue is SQL injection, mapped to CWE-89. The filter-building logic does not sufficiently separate user-controlled filter values from SQL syntax. When values are assembled into a query without parameter binding and appropriate handling of LIKE patterns, input can alter the query's intended structure.
Potential impact
- An attacker could read or modify database information beyond their intended permissions.
- An attacker may be able to alter account credentials, including the root password hash.
- Successful exploitation could lead to administrative control of the ILIAS instance.
General mitigation guidance
Defensive approaches focus on keeping user-controlled data separate from SQL syntax and limiting the consequences of database access.
- Use parameterized queries for filter values rather than constructing SQL through string concatenation.
- Handle
LIKEpattern characters safely while preserving the intended search behavior. - Apply strict validation to filter inputs and use secure-by-default query-building abstractions.
- Restrict database account privileges to the minimum required by the application.
- Review authorization boundaries for member-list access and sensitive account-management operations.
How teams detect issues like this
- Use static analysis to identify SQL statements built through concatenation or interpolation of request-derived filter values.
- Review query-building code for correct parameter binding, especially around
LIKEclauses and filter helpers. - Enforce code-review or CI policies that flag raw SQL construction from user-controlled values.
- Monitor application and database logs for unusual filter activity or unexpected changes to privileged account records.

