SQL Injection in ChurchCRM newCountName Parameter via EditEventTypes.php
Fix:see the vendor's fix instructions Instructions ↓
ChurchCRM · ChurchCRM
A time-based blind SQL injection flaw exists in the EditEventTypes functionality of ChurchCRM, version 5.13.0 and prior, where the newCountName parameter is concatenated directly into an SQL query without sanitization. An attacker with high-privilege authenticated access over the network, and no user interaction required, can run arbitrary SQL queries to read, modify, or delete database data.
Official description · CVE.org
A vulnerability exists in ChurchCRM 5.13.0 and prior that allows an attacker to execute arbitrary SQL queries by exploiting a time-based blind SQL Injection vulnerability in the EditEventTypes functionality. The newCountName parameter is directly concatenated into an SQL query without proper sanitization, allowing an attacker to manipulate database queries and execute arbitrary commands, potentially leading to data exfiltration, modification, or deletion.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 11 months after disclosure.
- Disclosedday 0
- First seen exploitedVulnCheck KEV evidence+11 mo
Affected versions and fixes
as published in the CVE recordChurchCRM ChurchCRM
Affected: ChurchCRM 5.13.0 and prior
Fix
To prevent SQL injection, use prepared statements with parameterised queries. Additionally, implement input validation to reject dangerous characters, apply the principle of least privilege to database users to minimise potential damage, and assign appropriate data types in PHP, such as converting newCountName to an integer if it represents a numeric value.
Attack pattern (CAPEC)
CAPEC-66 SQL Injection