Skip to content
Easy Php Cms Issues 2

Easy Php Cms Issues 2

github.com • November 30, 2026

A SQL injection vulnerability was found in the 'log.php' file of the 'easy-php-cms' project. The attacker injects malicious code from the parameter "mail" and uses it directly in SQL queries without appropriate sanitization or validation. This allows attackers to forge input values, thereby manipulating SQL queries and performing unauthorized operations.

Attackers can exploit this SQL injection vulnerability to achieve unauthorized database access, sensitive data leakage, data tampering, comprehensive system control, and even service interruption, posing a serious threat to system security and business continuity.

During the security review of "easy-php-cms", a critical SQL injection vulnerability was discovered in the "log.php" file. This vulnerability stems from insufficient user input validation of the 'mail' parameter, allowing attackers to inject malicious SQL queries. The parameter is directly concatenated into a SQL SELECT statement without any escaping or parameterized query. Therefore, attackers can gain unauthorized access to databases, modify or delete data, and access sensitive information. Immediate remedial measures are needed to ensure system security and protect data integrity.

No login or authorization is required to exploit this vulnerability

Vulnerability details and POC

Error-based injection

Vulnerability location:

Verified result (sqlmap output excerpt):

current database: 'dinamic-site'

Use prepared statements and parameter binding: Preparing statements can prevent SQL injection as they separate SQL code from user input data. When using prepare statements, the value entered by the user is treated as pure data and will not be interpreted as SQL code. Input validation and filtering: Strictly validate and filter user input data to ensure it conforms to the expected format. Minimize database user permissions: Ensure that the account used to connect to the database has the minimum necessary permissions. Avoid using accounts with advanced permissions (such as 'root' or 'admin') for daily operations. Regular security audits: Regularly conduct code and system security audits to promptly identify and fix potential security vulnerabilities.

Extracted Entities

Attack Types (2)

CWE Weaknesses (1)

Tools (1)