Groundhogg <= 4.9.3 - Authenticated (Sales Representative+) Arbitrary File Deletion via CSV Import 'copy_file' Field Mapping
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
Description
The Groundhogg — CRM, Newsletters, and Marketing Automation plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the copy_file function in all versions up to, and including, 4.9.3 This makes it possible for authenticated attackers, with Sales Representative-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). This is exploitable by any user holding the plugin-defined import_contacts capability, which is granted by default to the plugin's custom Sales Representative role.
Text from CVE List
Affected versions 1
- Groundhogg — CRM, Newsletters, and Marketing Automationaffected: all versions through 4.9.3CVE List
References 12
- github.com/groundhoggwp/groundhogg/commit/e319e4a849bfbb07cccfbac8558ad6bf07a7fdc0Fixvia CVE List
- wordfence.com/threat-intel/vulnerabilities/id/fb5100ac-cfe6-4e91-9349-6e8efa850147?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/classes/traits/file-box.php#L94Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/classes/traits/file-box.php#L85Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/utils/files.php#L323Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/functions.php#L2872Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/functions.php#L8045Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/background/import-contacts.php#L200Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/admin/tools/tools-page.php#L575Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/admin/tools/tools-page.php#L602Referencevia CVE List
- plugins.trac.wordpress.org/browser/groundhogg/tags/4.9.3/includes/main-roles.php#L583Referencevia CVE List
- plugins.trac.wordpress.org/changeset/3744461/groundhogg/trunk/includes/classes/traits/file-box.phpReferencevia CVE List