POC详情: 9e4c631ef379f5c993d4ec83d72e2279c1413710

来源
关联漏洞
标题: Ghost Foundation Ghost 后置链接漏洞 (CVE-2023-40028)
描述:Ghost Foundation Ghost是Ghost开源的一款用 JavaScript 编写的个人博客系统。 Ghost 5.59.1 版本之前存在后置链接漏洞,该漏洞源于允许经过身份验证的用户上传符号链接文件。攻击者利用该漏洞可以读取任意文件。
描述
CVE-2023-40028 is a security vulnerability affecting Ghost CMS versions prior to 5.59.1.
介绍
# CVE-2023-40028: Ghost CMS Symlink Exploitation (PoC)

## Overview

This repository contains a **Proof-of-Concept (PoC)** script designed to demonstrate the exploitation of **CVE-2023-40028**, a Local File Inclusion (LFI) vulnerability affecting **Ghost CMS versions prior to 5.59.1**. The vulnerability allows authenticated users to upload files that are symbolic links (symlinks), enabling attackers to access arbitrary files on the host system.

This PoC script will show how an attacker can upload a crafted zip file containing a symlink pointing to sensitive system files, potentially leading to information disclosure.

> **Disclaimer:**  
> This script is for educational and research purposes only. It is the user's responsibility to ensure they have permission to test the targeted systems. Unauthorized access to systems is illegal and unethical. Always obtain explicit permission before testing systems for vulnerabilities.

## Vulnerability Details

- **CVE ID**: CVE-2023-40028
- **Vulnerability Type**: Local File Inclusion (LFI)
- **Affected Product**: Ghost CMS (versions prior to 5.59.1)
- **Impact**: Attackers can upload symbolic link files to access sensitive system files on the server.
- **Fix**: Ghost CMS released version 5.59.1 to address this vulnerability.

### CVE-2023-40028 Summary:
The vulnerability exists due to improper handling of file uploads in Ghost CMS. Authenticated users can upload symbolic link files, which can be used to access sensitive files outside of the CMS’s intended directories.

## Prerequisites

Before using this PoC script, ensure you meet the following requirements:

- A running instance of **Ghost CMS** prior to version 5.59.1.
- An authenticated admin account for the Ghost CMS instance you are targeting.
- Python 3.x installed on your local system.
- Required Python libraries:
  - `requests`
  - `argparse`
  - `json`
  - `os`
  - `shutil`
  - `time`

You can install the required libraries using pip:
```bash
pip install requests
文件快照

[4.0K] /data/pocs/9e4c631ef379f5c993d4ec83d72e2279c1413710 ├── [3.5K] exploit.py ├── [ 34K] LICENSE └── [2.0K] README.md 0 directories, 3 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。