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/abraxas/gitea-user-keys-idor
Vulnerability AnalysisExploitationInformation GatheringWeb SecurityPenetration TestingAPI SecurityLabs & Practice
GitHub
abraxas/gitea-user-keys-idor

gitea-user-keys-idor

Proof-of-concept and lab for a Gitea IDOR (CWE-639) in GET /api/v1/user/keys/{id}, letting an authenticated read:user token enumerate other users' SSH and deploy keys.

View Repository
2626 days 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.

    905
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    881
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

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

    454
  • 5

    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.

    402
  • 6

    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.

    397

Explore all tools

Browse our collection of tools

View all tools →
Share

Abraxas Labs - gitea-user-keys-idor

abraxaslabs.tech  ·  github.com/abraxas  ·  @abraxas_null  ·  [email protected]  ·  gitea-user-keys-idor

Write-up: https://abraxaslabs.tech/research/gitea-user-keys-idor

gitea-user-keys-idor

Gitea 1.27.3 - Gitea

GET /api/v1/user/keys/{id} sits in the current-user group (reqToken, rejectPublicOnly). The handler still loads the row by numeric ID with no owner check. The same table holds user keys, deploy keys, and principals. GPG's sibling does it right: GetGPGKeyForUserByID(ctx, ctx.Doer.ID, id). Private fields are gated. The public key material, title, and fingerprint are not. IDs are sequential.

A read:user token walks 1, 2, 3 and inventories other people's SSH and deploy keys. Open registration makes that a new-account bug.

IDno CVE yet
CWECWE-639
CVSSHigh: 7.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
ProductGitea
Affectedthrough v1.27.3 (146cc3e)
Authauthenticated (read:user token)
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

What an attacker can do

Register (default open registration), mint a read:user token, walk /api/v1/user/keys/{id}. They get titles, fingerprints, and public key material for keys they do not own, including deploy keys. They do not get the private key. They do not get a shell. They inventory who has access to what.

The 1.27.3 key GHSA was username-scoped list plus individualPermsChecker. It was not this lookup.

Same tag leftover: git HTTP redirect SSRF.

How I found it

v1.27.3 closed the 2026 GHSA wave. I sat on that tag anyway and read the current-user key handler next to GPG. GPG 404s a foreign id. SSH does not.

seed.sh plants victim key title GHSA-GITEA-KEY-IDOR-WITNESS and an attacker key. Attacker's own list does not contain the witness. GET /user/keys/1 as the attacker does. GPG with a foreign id 404s. That is the whole argument.

Wrong turns already recorded: treating the attacker's own list as the leak (it is not - list is scoped, GET-by-id is not); a reverse shell. Theatre.

Client bugs look like product bugs. A helper that shadows http.client never sends a packet. .recv() on an HTTPResponse is not .read(). I mention that once because it cost time and looked, for a minute, like 1.27.3 had finished the job.

Lab

cd lab
./run.sh

Target only http://127.0.0.1:18101.

add-key user=victim status=201 title=GHSA-GITEA-KEY-IDOR-WITNESS id=1
add-key user=attacker status=201 id=2
attacker-list status=200 ids=[2] (no witness)
get id=1 status=200 snippet contains GHSA-GITEA-KEY-IDOR-WITNESS
SUCCESS Gitea #1 user/keys IDOR

The fix

404 unless key.OwnerID == ctx.Doer.ID (or site admin). Reject deploy/principal types. Match GPG.

References

  • github.com/go-gitea/gitea tag v1.27.3
  • GetPublicKey
  • Nearby patched (not this lookup): CVE-2026-60004 · CVE-2026-59774
  • Same tag: gitea-git-redir-ssrf
  • CWE-639

License

GNU Affero GPL v3.0. See LICENSE. Loopback lab only. No warranty.

Download Tool