Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Ghost-5.58-Arbitrary-File-Read-CVE-2023-40028 — CVE-2023-40028 affects Ghost, an open source content management system, where versions prior to 5.59.1 allow authenticated users to upload files that are symlinks. This can be exploited to perform an arbitrary file read of any file on the host operating system. | Kitploit
Tools/GitHubGitHub/0xdtc/ghost-5.58-arbitrary-file-read-cve-2023-40028
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed Teaming
GitHub0xdtc/ghost-5.58-arbitrary-file-read-cve-2023-40028

Ghost-5.58-Arbitrary-File-Read-CVE-2023-40028

CVE-2023-40028 affects Ghost, an open source content management system, where versions prior to 5.59.1 allow authenticated users to upload files that are symlinks. This can be exploited to perform an arbitrary file read of any file on the host operating system.

View Repository
132431 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    647
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    421
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    389
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    333
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    331

Explore all tools

Browse our collection of tools

View all tools →
Share

Ghost Arbitrary File Read Exploit (CVE-2023-40028)

Overview

This script exploits a vulnerability in Ghost CMS (CVE-2023-40028) to read arbitrary files from the server. By leveraging a symlink in an uploaded ZIP file, an attacker can gain unauthorized access to sensitive files on the system.


Features

  1. Automates login to the Ghost CMS admin API.
  2. Crafts a malicious ZIP payload with a symlink to the target file.
  3. Exploits the Ghost CMS import functionality to upload and extract the payload.
  4. Fetches and displays the contents of the target file.

Requirements

  • Access to the target Ghost CMS instance (credentials required).
  • curl, zip, and basic Linux utilities installed on the attacker's system.

Usage

./cve-2023-40028 -u <username> -p <password> -h <host_url>

Arguments

  • -u <username>: The admin username for the target Ghost CMS.
  • -p <password>: The admin password for the target Ghost CMS.
  • -h <host_url>: The URL of the target Ghost CMS (e.g., http://127.0.0.1).

Example Usage

./cve-2023-40028 -u admin -p admin123 -h http://127.0.0.1
  1. Login: The script logs in to the Ghost CMS admin API and generates a session cookie.

  2. Interactive File Reading: After successful login, you’ll enter an interactive shell:

    WELCOME TO THE CVE-2023-40028 SHELL
    Enter the file path to read (or type 'exit' to quit): 
    
  3. Input File Path: Provide the absolute path of the file you want to read (e.g., /etc/passwd).

  4. Receive File Content: The file's content will be fetched and displayed:

    File content:
    root:x:0:0:root:/root:/bin/bash
    ...
    
  5. Exit the Shell: Type exit to terminate the session.


Workflow

  1. Create Login Session:

    • Authenticates using the provided username and password.
    • Stores the session cookie.
  2. Generate Malicious Payload:

    • Creates a symlink in a ZIP file pointing to the target file.
    • Uses mktemp to generate a temporary working directory.
  3. Upload Payload:

    • Uploads the ZIP file to the Ghost CMS database import endpoint.
  4. Read the File:

    • Accesses the symlinked file through the extracted path.
  5. Cleanup:

    • Deletes the temporary payload and ZIP file after each request.

Disclaimer

This script is for educational and authorized penetration testing purposes only. Misuse of this script to target systems without explicit permission is illegal and unethical.


References

  • CVE-2023-40028
  • Ghost CMS Documentation

Let me know if you need further details or adjustments! 🚀

Download Tool