Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
CVE-2025-69413-PoC — CVE-2025-69413 — Gitea API user enumeration PoC via auth error differentiation | Kitploit
Outils/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

Voir le dépôt
21 oct. 2026Pas encore vérifié
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

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

Télécharger l’outil

Outils similaires

  • hashcat

    L'utilitaire de récupération de mots de passe le plus rapide et le plus avancé au monde

  • john

    John the Ripper jumbo - craqueur de mots de passe hors ligne avancé, qui prend en charge des centaines de types de hachage et de chiffrement, et s'exécute sur de nombreux systèmes d'exploitation, CPU, GPU et même certains FPGA.

  • thc-hydra

    hydra

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    739
  • 3

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    585
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    550
  • 5

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    409

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →