Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-52691-APT-PoC — An enhanced proof-of-concept exploit for CVE-2025-52691 (SmarterMail Arbitrary File Upload RCE) with APT-level features like stealth obfuscation, persistence, exfiltration, and interactive mode. For educational and authorized testing only. Credits to the original PoC by yt2w/CVE-2025-52691. | Kitploit
Tools/GitHubGitHub/deathshotxd/cve-2025-52691-apt-poc
Persistence MechanismsExploitationWeb Application ExploitationData ExfiltrationPost-ExploitationPenetration TestingLearning & EducationRed TeamingPayload Development
GitHubdeathshotxd/cve-2025-52691-apt-poc

CVE-2025-52691-APT-PoC

View Repository
334222 days agoNot yet reviewed

About

An enhanced proof-of-concept exploit for CVE-2025-52691 (SmarterMail Arbitrary File Upload RCE) with APT-level features like stealth obfuscation, persistence, exfiltration, and interactive mode. For educational and authorized testing only. Credits to the original PoC by yt2w/CVE-2025-52691.

Share

CVE-2025-52691 APT PoC - a mail envelope crossing an upload trust boundary into a SmarterMail webroot and a persisted command channel

Python 3.8 or later CVE-2025-52691 SmarterMail upload chain MIT license GitHub stars

Unauthenticated upload. Operator-grade follow-through.
A SmarterMail proof of concept with stealth, persistence, exfiltration, and cleanup paths.

This is an enhanced proof-of-concept for CVE-2025-52691, the unauthenticated arbitrary file upload in SmarterTools SmarterMail that can lead to remote code execution. The core path is unchanged: enumerate upload endpoints, drop an obfuscated ASPX web shell, and execute commands through it. The operator layer adds randomized request behavior, proxy support, a scheduled-task persistence path, file exfiltration, interactive command execution, and cleanup.

Authorized use only. This tool exists for education, defensive validation, and approved penetration testing. Running it against a system without explicit written permission is illegal in most jurisdictions. The author assumes no liability for misuse.

Chain at a glance

StageWhat happensArtifact or flag
1. ReachNormalizes the target URL and checks for an HTTP 200 response.target URL
2. UploadTries five upload endpoints with multipart, raw, and JSON bodies.<random>.aspx
3. VerifyRequests the generated shell path and confirms command output.?auth=<password>
4. OperateRuns PowerShell commands, opens an interactive shell, or pulls a file.-c, --interactive, --exfil
5. PersistCreates a daily scheduled task as SYSTEM.--persistence
6. CleanRemoves the uploaded shell and its access path.--cleanup

The persistence stage ships with a placeholder payload URL. Replace it in exploit-poc.py before using that path in an authorized lab.

Features

Core exploit

  • Uploads an obfuscated, password-protected ASPX web shell to the target web root.
  • Tries multipart, raw, and JSON upload bodies across five common endpoints.
  • Verifies the shell by executing a command and parsing the response.
  • Detects the target version when the login page exposes it.
  • Runs PowerShell commands through the shell with base64-encoded input.

Stealth

  • Randomizes the user agent on every request.
  • Adds a randomized delay between requests to soften rate-limit signatures.
  • Generates a random eight-character shell name and a random 16-character password per run.
  • Supports an HTTP proxy for interception or traffic separation.

Operator

  • Interactive command mode for repeated execution.
  • File exfiltration through base64 encoding.
  • Scheduled-task persistence with a randomized task name.
  • Batch processing from a target file.
  • Configurable log levels from DEBUG to ERROR.
  • SSL verification on by default, with an explicit --no-verify opt-out.

Safety

  • --check-only confirms reachability without uploading anything.
  • --cleanup removes the uploaded shell after the operation.
  • Clear warnings and secure defaults are part of the interface.

Requirements

  • Python 3.8 or later.
  • requests.
python3 -m pip install requests

No other third-party packages are required.

Quick start

git clone https://github.com/DeathShotXD/CVE-2025-52691-APT-PoC.git
cd CVE-2025-52691-APT-PoC
python3 -m pip install requests

# Confirm the lab target is reachable before doing anything else.
python3 exploit-poc.py https://lab.example.com --check-only

Then, only against a system you own or are authorized to test:

python3 exploit-poc.py https://lab.example.com -c "whoami"

Usage

python3 exploit-poc.py <target_url> [options]

<target_url> is the base URL of the SmarterMail server, for example https://mail.example.com.

Options

FlagDescription
--targets-file <file>Read one target URL per line and process them in sequence.
-c, --command <cmd>Run a command through the uploaded shell after verification.
-t, --timeout <seconds>Request timeout in seconds. Default: 30.
--proxy <url>Route requests through an HTTP proxy, for example http://127.0.0.1:8080.
--no-verifyDisable SSL certificate verification.
--check-onlyCheck reachability and exit without uploading.
--persistenceCreate a daily scheduled task as SYSTEM. Replace the placeholder payload URL first.
--exfil <remote:local>Read a remote file through the shell and write it locally.
--interactiveEnter an interactive command prompt after verification.
--cleanupRemove the uploaded shell after the operation.
--log-level <level>DEBUG, INFO, WARNING, or ERROR. Default: INFO.

Examples

Basic lab run:

python3 exploit-poc.py https://mail.lab.internal

Execute a command:

python3 exploit-poc.py https://mail.lab.internal -c "systeminfo"

Route through Burp and request persistence:

python3 exploit-poc.py https://mail.lab.internal \
  --proxy http://127.0.0.1:8080 \
  --persistence

Interactive session with cleanup:

python3 exploit-poc.py https://mail.lab.internal --interactive --cleanup

Batch mode:

python3 exploit-poc.py --targets-file targets.txt

Exfiltrate a file from a Windows host:

python3 exploit-poc.py https://mail.lab.internal \
  --exfil "C:\Windows\Temp\proof.txt:proof.txt"

Output

A successful run prints the shell path, the access URL with its per-run password, the command output, and the status of persistence, exfiltration, or cleanup. Logs go to the console at the selected level.

Detection and mitigation

Defenders can look for the behaviors this tool depends on:

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    668
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    496
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    394
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    339
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    254

Explore all tools

Browse our collection of tools

View all tools →