Disclosure Date: 18 June 2025
CVE ID: CVE-2025-26198
Severity: CRITICAL (CVSS 9.8)
A critical SQL Injection vulnerability exists in CloudClassroom-PHP-Project v1.0, specifically within the loginlinkadmin.php endpoint. The application directly incorporates unsanitized user inputs into SQL queries, allowing unauthenticated attackers to bypass authentication and gain full administrative access.
This issue has been assigned the identifier CVE-2025-26198. At the time of public disclosure, no official patch was available.
- Vendor: Independent (mathurvishal)
- Project: CloudClassroom-PHP-Project
- Version: v1.0
- File:
loginlinkadmin.php - Vulnerable Endpoint:
http://localhost/CloudClassroom-PHP-Project-master/loginlinkadmin.php
The admin login mechanism uses unsanitized input directly in SQL queries without any input validation or prepared statements:
$query = "SELECT * FROM admin WHERE username='$username' AND password='$password'";This allows for injection payloads such as:
Username: ' OR '1'='1
Password: [any value]This bypasses authentication logic by evaluating to a true condition, thereby granting access to the admin dashboard.
| CWE ID | Title |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
| Score | Severity | Vector String |
|---|---|---|
| 9.8 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
A successful exploitation could result in:
- β Full authentication bypass
- π Unauthorized access to privileged admin features
- π οΈ Potential data leakage or manipulation using
UNION-based SQL injection β οΈ Full compromise of the backend database
git clone https://github.com/mathurvishal/CloudClassroom-PHP-Project.gitUse XAMPP/LAMP to deploy the project and navigate to:
http://localhost/CloudClassroom-PHP-Project-master/loginlinkadmin.php
Enter the following credentials in the login form:
- Username:
' OR '1'='1 - Password:
[any value]
You will be logged in as the first admin user, verifying successful SQL injection.
- β
Replace dynamic SQL queries with prepared statements (
mysqli_prepare()or PDO). - π Perform input validation and sanitization for all user inputs.
- π§± Deploy a Web Application Firewall (WAF) to block known SQL injection patterns.
- π‘οΈ Conduct regular code audits and penetration testing for early detection.
| Event | Date |
|---|---|
| Vulnerability Discovered | 14 April 2025 |
| Public Disclosure | 18 June 2025 |
| Patch Available | β Not available as of disclosure |
This vulnerability was discovered and responsibly disclosed by:
Tansique Dasari
π GitHub
βοΈ tansique.d@gmail.com
- OWASP - SQL Injection
- PortSwigger - SQL Injection
- CloudClassroom GitHub Repository
- CVE-2025-26198 on CVE.org
π¬ This advisory is published independently due to lack of vendor response.