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

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    739
  • 3

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    585
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    550
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    409

探索所有工具

浏览我们的工具集合

查看所有工具 →