CVE-2012-1225 in Dolibarrinfo

Summary

by MITRE

Multiple SQL injection vulnerabilities in Dolibarr CMS 3.2.0 Alpha and earlier allow remote authenticated users to execute arbitrary SQL commands via the (1) memberslist parameter (aka Member List) in list.php or (2) rowid parameter to adherents/fiche.php.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 01/02/2025

The vulnerability CVE-2012-1225 represents a critical SQL injection flaw discovered in Dolibarr CMS versions 3.2.0 Alpha and earlier, exposing organizations to significant remote execution risks. This vulnerability affects the core database interaction mechanisms within the content management system, specifically targeting two distinct parameter handling pathways that process user input without proper sanitization. The affected parameters include the memberslist parameter within the list.php script and the rowid parameter in the adherents/fiche.php endpoint, both of which serve as entry points for malicious SQL command injection attacks.

The technical exploitation of this vulnerability stems from inadequate input validation and parameter sanitization within the Dolibarr application framework. When authenticated users submit malicious input through the specified parameters, the application fails to properly escape or filter the input before incorporating it into SQL query constructs. This allows attackers to manipulate the database query execution flow and potentially execute arbitrary SQL commands on the underlying database server. The vulnerability manifests as a direct consequence of improper data handling practices that violate fundamental secure coding principles and security best practices established by industry standards.

From an operational impact perspective, this vulnerability enables authenticated attackers to gain unauthorized access to sensitive organizational data stored within the Dolibarr database. The remote execution capability means that attackers do not require physical access to the system, making the vulnerability particularly dangerous in environments where user accounts might be compromised or where privileged access is granted to untrusted users. Successful exploitation could result in data theft, data modification, privilege escalation, or even complete system compromise depending on the database permissions and the attacker's level of access. The vulnerability affects the integrity and confidentiality of organizational information managed through the CMS platform.

Organizations should implement immediate mitigation strategies including upgrading to patched versions of Dolibarr CMS where available, as the vulnerability was addressed in subsequent releases. Input validation and parameter sanitization measures should be strengthened throughout the application codebase, with particular attention to all database query construction processes. The implementation of prepared statements and parameterized queries should be enforced to prevent similar vulnerabilities from occurring in the future. Additionally, access controls should be reviewed and strengthened to minimize the potential impact of compromised accounts. This vulnerability aligns with CWE-89 which classifies SQL injection as a persistent security weakness, and corresponds to ATT&CK technique T1071.004 for application layer protocol manipulation, emphasizing the need for comprehensive defensive measures against database injection attacks.

The remediation approach should encompass both immediate patching and long-term code quality improvements to prevent recurrence of similar vulnerabilities. Security monitoring should be enhanced to detect anomalous database query patterns that might indicate exploitation attempts, while regular security assessments should be conducted to identify additional injection points within the application architecture. Organizations should also consider implementing database activity monitoring solutions that can detect and alert on suspicious SQL command executions, providing an additional layer of defense against unauthorized database access attempts.

Reservation

02/20/2012

Disclosure

02/21/2012

Moderation

accepted

Entry

VDB-60277

CPE

ready

Exploit

Download

EPSS

0.00755

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!