Authored by Valentin Lobstein

DerbyNet 9.0 suffers from a remote SQL injection vulnerability in ajax/

advisories | CVE-2024-30928

CVE ID: CVE-2024-30928

An SQL Injection vulnerability has been discovered in DerbyNet version 9.0, particularly within the `ajax/` file. This vulnerability allows remote attackers to execute arbitrary code and disclose sensitive information by exploiting the unvalidated `classids` parameter used in constructing SQL queries. This parameter is not properly sanitized before being included in the SQL statement, leading to a critical risk of SQL Injection.

Vulnerability Type: SQL Injection

Vendor of Product: DerbyNet - Available on GitHub:

Affected Product Code Base: DerbyNet - v9.0

Affected Component: ajax/

Attack Type: Remote

- Code execution: True
- Information Disclosure: True

Attack Vectors:
The vulnerability is primarily exploited by manipulating the `classids` parameter in the user's request to the `ajax/` file. The lack of adequate input validation allows attackers to inject malicious SQL code through this parameter. Example attack vectors include:

- Direct exploitation:
- ``

- Boolean-based blind SQL Injection:
- Payload: ` AND 4365=4365 AND (6880=6880`

- UNION query SQL Injection:
- Payload: ` UNION ALL SELECT NULL,NULL,CHAR(113,107,120,122,113)||CHAR(79,97,117,85,112,79,82,85,75,114,65,66,118,100,117,107,79,118,111,104,67,105,87,86,72,110,107,119,113,86,106,107,115,100,110,109,98,77,85,115)||CHAR(113,118,120,120,113),NULL,NULL,NULL,NULL,NULL-- rDzQ`

These vectors demonstrate how an attacker could manipulate SQL queries to potentially access or manipulate database information unauthorizedly.

Discoverer: Valentin Lobstein

- Official website:
- Source code on GitHub: