CVE-2017-10842: baserCMS SQL Injection vulnerability
Summary
CVE-2017-10842: baserCMS SQL Injection vulnerability. Affects baserproject/basercms across 2 version ranges.
< 3.0.15
>= 4.0.0, < 4.0.6
Fixed in 3.0.15 or 4.0.6, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
baserCMS is an open-source content management system (CMS) developed by baserproject. It is written in PHP and provides a platform for creating and managing websites. The vulnerability identified as CVE-2017-10842 affects baserCMS versions 3.0.14 and earlier, as well as 4.0.5 and earlier. This vulnerability allows remote attackers to execute arbitrary SQL commands through unspecified vectors.
Vulnerability Detail
The SQL injection vulnerability in baserCMS allows attackers to manipulate SQL queries and potentially gain unauthorized access to the underlying database. By injecting malicious SQL code, an attacker can bypass authentication mechanisms, extract sensitive information, modify or delete data, or even execute arbitrary commands on the server. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of the affected baserCMS installations.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 3.0.153.0.15composer require baserproject/basercms:3.0.15 -
>= 4.0.0, < 4.0.64.0.6composer require baserproject/basercms:4.0.6
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
If upgrading to a secure version is not immediately feasible, a temporary workaround is to implement input validation and parameterized queries in the application code. By validating user input and using prepared statements or parameterized queries, the risk of SQL injection can be significantly reduced. Here is an example of using parameterized queries in PHP:
$pdo = new PDO('mysql:host=localhost;dbname=mydatabase', 'username', 'password');
$stmt = $pdo->prepare('SELECT * FROM users WHERE username = :username');
$stmt->bindParam(':username', $username);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
Conclusion
The baserCMS SQL injection vulnerability (CVE-2017-10842) poses a critical risk to the security of affected installations. It is crucial to upgrade to the latest secure version or implement the recommended workarounds to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for baserproject/basercms →
FAQ
baserCMS is an open-source content management system (CMS) developed by baserproject. It provides a platform for creating and managing websites.
The vulnerability affects baserCMS versions 3.0.14 and earlier, as well as 4.0.5 and earlier.
The SQL injection vulnerability allows remote attackers to execute arbitrary SQL commands, potentially leading to unauthorized access, data manipulation, or even command execution on the server.
To fix this vulnerability, it is recommended to upgrade baserCMS to version 3.0.15 or later (for version 3.x) or version 4.0.6 or later (for version 4.x).
A temporary workaround is to implement input validation and parameterized queries in the application code to mitigate the risk of SQL injection.
Related vulnerabilities
Recent vulnerabilities recorded for baserproject/basercms.