Adds exploit module for ChurchCRM authenticated RCE (CVE-2025-68109)#21095
Merged
bwatters-r7 merged 12 commits intorapid7:masterfrom Apr 15, 2026
Merged
Conversation
This commit contain the initialisation of the module file including a description, all the target and options that this module will need.
I added a check function that check if the server is accessible and vulnerable. I added also a build_payload function that build the php file that will be executed by the vulnerable host.
bwatters-r7
reviewed
Mar 26, 2026
| 'Platform' => ['linux', 'php'], | ||
| 'Targets' => [ | ||
| [ | ||
| 'Linux/unix Command (CmdStager)', |
Contributor
There was a problem hiding this comment.
I'm curious why CmdStager is used here?
CmdStager is useful if you don't have access to curl/wget, but if you do have access to curl/wget, fetch payloads are significantly simpler.
Contributor
Author
There was a problem hiding this comment.
I went with CmdStager for compatibility concerns, aiming to make the module more flexible regardless of the available binaries on the target.
bwatters-r7
reviewed
Apr 9, 2026
Contributor
|
…rce.md Co-authored-by: Brendan <bwatters@rapid7.com>
Contributor
Release NotesAdds a new exploit module for CVE-2025-68109, targeting a file upload vulnerability inside ChurchCRM leading to an RCE. This module will work on version 6.2.0 of ChurchCRM and earlier. |
bwatters-r7
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new exploit module for CVE-2025-68109, targeting a file upload vulnerability inside ChurchCRM leading to an RCE. This module will work on version 6.2.0 of ChurchCRM and earlier.
The vulnerability exists within the database restore functionality. Due to lack of input validation, an attacker can inject arbitrary files. Using this vulnerability in order to upload a
.htaccessfile, an attacker will be able to upload an accessible PHP file that will be interpreted. This metasploit module exploits the vulnerability in order to upload a payload.Module Details
modules/exploits/multi/http/churchcrm_db_restore_rce.rbdocumentation/modules/exploits/multi/http/churchcrm_db_restore_rce.mdVerification
msfconsoleuse exploit/multi/http/churchcrm_db_restore_rceset RHOSTS <TARGET_IP>set LHOST <YOUR_IP>set target 0for Linux systemset target 1for PHP (In-Memory)set target 2for PHP (Fetch)set payload <PAYLOAD>set PASSWORD <PASSWORD>set USERNAME <USERNAME>checkrunid,shell, ...)./tmpor in/var/www/html/churchcrm/tmp_attach/ChurchCRMBackups.Scenario
References