https://github.com/monke443/cve-2023-40028
Arbitrary file read in Ghost-CMS allows an attacker to upload a malicious ZIP file with a symlink.
https://github.com/monke443/cve-2023-40028
cve cve-2023-40028 exploit ghost-cms github pentesting security vulnerability
Last synced: about 21 hours ago
JSON representation
Arbitrary file read in Ghost-CMS allows an attacker to upload a malicious ZIP file with a symlink.
- Host: GitHub
- URL: https://github.com/monke443/cve-2023-40028
- Owner: monke443
- Created: 2024-12-21T01:53:47.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-21T02:51:43.000Z (5 months ago)
- Last Synced: 2025-03-31T13:18:00.408Z (about 1 month ago)
- Topics: cve, cve-2023-40028, exploit, ghost-cms, github, pentesting, security, vulnerability
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CVE-2023-4002 Ghost-Arbitrary-File-Read (< 5.59.1)
A vulnerability in Ghost CMS (CVE-2023-40028) that allows an authenticated attacker to read arbitrary files from the server. By leveraging the symlink functionality within a ZIP file, the exploit bypasses restrictions in Ghost CMS's import mechanism to access sensitive files on the system.
# Requirements
[!] Valid credentials required
Python 3.7+
Dependencies: requests, argparse, and standard Python libraries.# Usage
`python3 exploit.py --user [email protected] --password Strongpassword123! --url http://example.com`
--user : The username/email for the target Ghost CMS.
--password : The password for the target Ghost CMS.
--url : The URL of the target Ghost CMS (e.g., http://website.com).1) Login: The script authenticates with the Ghost CMS admin API and retrieves a session cookie.
2) Interactive Shell: Once logged in, the script prompts for a file path to read form the server.# Shell Example:

# References
[CVE-2023-40028 ~1](https://nvd.nist.gov/vuln/detail/CVE-2023-40028).[CVE-2023-40028 ~2](https://www.recordedfuture.com/vulnerability-database/CVE-2023-40028).
Disclaimer
This script is for educational purposes.