Summary
VoAPI list endpoints can be vulnerable to SQL injection when authenticated users supply crafted column names as search filter keys. Successful exploitation may expose the JWT signing secret, allowing an attacker to forge a manager token and gain access to management APIs.
Affected context
The issue affects VoAPI versions 1.0.0 through 1.2.0. It occurs in list endpoints, such as GET /api/log, when search filter keys derived from user input are incorporated into SQL queries without appropriate validation or safe query construction.
Exploit preconditions
- Attack surface: VoAPI list endpoints that accept
search[...]filters - Required access: An authenticated account able to make requests to an affected endpoint
- Trigger point: Processing a crafted column name supplied as a search filter key
- Why exploitation is possible: User-controlled identifiers may influence SQL query construction, potentially exposing sensitive database values such as the JWT signing secret
Why this happens
The underlying issue is SQL injection, mapped to CWE-89: Improper Neutralization of Special Elements used in an SQL Command. The vulnerable pattern is allowing untrusted input to influence SQL structure, such as column identifiers, rather than constraining it to known-safe values. Parameterized queries protect values, while identifiers generally require explicit allowlisting or safe query-builder support.
Potential impact
- An attacker may read sensitive data from the database, including the HS256 JWT signing secret.
- A stolen signing secret could allow an attacker to forge tokens with elevated roles.
- Forged manager credentials could enable takeover of the
/api/m/*management API. - Database confidentiality and application integrity could be compromised.
General mitigation guidance
Defensive approaches focus on keeping untrusted input out of SQL structure and limiting the consequences of credential exposure.
- Use parameterized queries for user-supplied values.
- Map accepted filter keys to a fixed allowlist of database columns; reject unknown identifiers.
- Prefer query-building APIs that safely handle identifiers and filter conditions.
- Restrict database-account permissions to the minimum required for application operation.
- Protect signing secrets with appropriate access controls and support rotation, while avoiding reliance on secret protection as the sole SQL injection defense.
- Apply least privilege to management roles and validate authorization on every management operation.
How teams detect issues like this
- Use static analysis to identify query construction that incorporates request parameters, especially filter keys or column identifiers.
- Review list endpoints and query-builder calls for missing allowlists or unsafe string concatenation.
- Enforce code-review and CI policies that require safe query patterns for database access.
- Monitor for unusual filter keys, unexpected database errors, suspicious reads of sensitive option records, and anomalous use of manager-level APIs.
- Automated security review tools may help flag potentially unsafe query construction.

