目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2024-46377 PoC — Sourcecodester Best House Rental Management System 安全漏洞

来源
关联漏洞
标题: Sourcecodester Best House Rental Management System 安全漏洞 (CVE-2024-46377)
Description:SourceCodester Best House Rental Management System是SourceCodester公司的一个房屋租赁管理系统。 Sourcecodester Best House Rental Management System 1.0版本存在安全漏洞,该漏洞源于文件rental/admin_class.php的save_settings()函数中存在任意文件上传漏洞。
介绍
# CVE-2024-46377

# PoC for Arbitrary File Upload Vulnerability in Best House Rental Management System 1.0

## Overview

This Python script demonstrates how to exploit the arbitrary file upload vulnerability in **Best House Rental Management System 1.0**. The vulnerability allows an attacker to upload a malicious file (such as a PHP web shell) and execute arbitrary commands on the target server.

### Usage

1. Clone the repository and navigate into the directory:

   ```bash
   git clone https://github.com/yourusername/house-rental-poc.git
   cd house-rental-poc
   ```

    Run the exploit with the following parameters:

    bash

     ``` python exploit_house_rental.py <target_url> <file_upload_path> <session_cookie>```

    target_url: The URL of the vulnerable file upload page (e.g., http://<target-site>/rental/admin_class.php?view=save_settings)
    file_upload_path: The path where the uploaded files are stored (e.g., http://<target-site>/path/to/uploaded/files)
    session_cookie: The session cookie of the authenticated user

If successful, you will be able to execute commands on the target server by visiting:

bash

    http://<file_upload_path>/shell.php?cmd=whoami

    Test it by executing commands such as whoami or uname -a.

Example

 ``` python exploit_house_rental.py http://127.0.0.1/rental/admin_class.php?view=save_settings http://127.0.0.1/uploads/ SESSION_ID=123456789```
  
This code is released under the MIT License.
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →