You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚫ Critical (CWE-89: Improper Neutralization of Special Elements used in an SQL Command)
A CVE will be assigned once the ChurchCRM team reviews the issue (CVE-2025-1133)
Authorization Required:
Administrator access required to view EditEventAttendees.php.
Description:
A vulnerability exists in ChurchCRM that allows an attacker to execute arbitrary SQL queries by exploiting a boolean-based blind SQL Injection vulnerability in the EditEventAttendees functionality. The EID parameter is directly concatenated into an SQL query without proper sanitization, making it susceptible to SQL injection attacks. An attacker can manipulate the query, potentially leading to data exfiltration, modification, or deletion.
Exploiting the SQL Injection
Affected Asset:
http://<CHURCH_CRM>/EditEventAttendees.php
Vulnerable Source Code:
$EventID = $_POST['EID']; // from ListEvents button=Attendees$sSQL = 'SELECT person_id, per_LastName FROM event_attend JOIN person_per ON person_per.per_id = event_attend.person_id WHERE event_id = ' . $EventID . ' ORDER by per_LastName, per_FirstName';
Vulnerability: The $EventID parameter is directly inserted into an SQL query without escaping or proper datatype specification, making it vulnerable to SQL Injection.
Steps to Reproduce:
Navigate to the EditEventAttendees.php endpoint: http://<CHURCH_CRM>/EditEventAttendees.php
Intercept the request using a tool like Burp Suite or manually craft a request.
Modify the EID parameter with the following SQL Injection payload:
1AND5302=5302
Observe the response or potential changes in the query execution indicating that SQL Injection is possible.
The request results in a successful response, confirming the SQL Injection vulnerability.
Automated Exploitation POC - Banner
---
Parameter: EID (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: EID=3 AND 5302=5302&Action=Attendees
---
[06:02:11] [INFO] the back-end DBMS is MySQL
[06:02:11] [INFO] fetching banner
[06:02:11] [INFO] retrieved: 22
[06:02:32] [INFO] retrieved: 11.6.2-MariaDB-ubu2404
web server operating system: Linux Debian
web application technology: Apache 2.4.62, PHP 8.4.3
back-end DBMS: MySQL >= 5.0.0 (MariaDB fork)
banner: '11.6.2-MariaDB-ubu2404'
Impact:
Data Exfiltration: Attackers can dump the database and retrieve sensitive data, such as user credentials and event information.
Database Manipulation: Attackers can modify, delete, or corrupt important data.
Remote Code Execution (RCE) Possibility: Depending on the database configuration, this vulnerability could lead to RCE by leveraging database functions to execute OS-level commands.
Recommended Fix:
Use prepared statements (parameterized queries) to prevent SQL Injection.
Implement input validation to reject dangerous characters.
Apply principle of least privilege to database users to limit damage from SQL Injection.
Sanitize and validate the $EventID variable before using it in the SQL query. Ensure it is an integer or properly escaped.
Environment:
Application: ChurchCRM 5.13.0
Tested on: Provided Docker in release
The text was updated successfully, but these errors were encountered:
Severity:
⚫ Critical (CWE-89: Improper Neutralization of Special Elements used in an SQL Command)
Authorization Required:
EditEventAttendees.php
.Description:
A vulnerability exists in ChurchCRM that allows an attacker to execute arbitrary SQL queries by exploiting a boolean-based blind SQL Injection vulnerability in the
EditEventAttendees
functionality. TheEID
parameter is directly concatenated into an SQL query without proper sanitization, making it susceptible to SQL injection attacks. An attacker can manipulate the query, potentially leading to data exfiltration, modification, or deletion.Exploiting the SQL Injection
Affected Asset:
http://<CHURCH_CRM>/EditEventAttendees.php
Vulnerable Source Code:
$EventID
parameter is directly inserted into an SQL query without escaping or proper datatype specification, making it vulnerable to SQL Injection.Steps to Reproduce:
EditEventAttendees.php
endpoint:http://<CHURCH_CRM>/EditEventAttendees.php
EID
parameter with the following SQL Injection payload:Proof of Concept (PoC):
Exploiting Boolean-Based Blind SQL Injection
Observed Response:
Automated Exploitation POC - Banner
Impact:
Recommended Fix:
$EventID
variable before using it in the SQL query. Ensure it is an integer or properly escaped.Environment:
The text was updated successfully, but these errors were encountered: