CloudClassroom-PHP SQL Injection Vulnerability Leading to Remote Code Execution

Vulnerability

A SQL injection vulnerability has been identified in CloudClassroom-PHP Project version 1.0. The issue arises in the 'viewid' parameter, allowing attackers to manipulate SQL queries and potentially execute arbitrary code on the server.

Impact

Exploitation of this vulnerability allows for SQL injection, which can be used to execute arbitrary SQL commands. In this case, the vulnerability was exploited to upload a malicious PHP file to the server, which was then used to execute system commands, confirming remote code execution on the target system.

Reproduction

To reproduce this vulnerability, navigate to the affected URL and modify the 'viewid' parameter by appending a single quote. This action will trigger an SQL error, indicating a potential SQL injection vulnerability. After confirming the vulnerability, it can be exploited using SQLmap to upload a malicious PHP file to the server. Once the file is uploaded, system commands can be executed via the PHP file, achieving remote code execution.

Added: Jul 25, 2025, 3:57 PM
Updated: Jul 25, 2025, 3:57 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
8.7
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.