id: CVE-2022-0692

info:
  name: Rudloff alltube prior to 3.0.1 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: An open redirect vulnerability exists in Rudloff/alltube that could let an attacker construct a URL within the application that causes redirection to an arbitrary external domain via Packagist in versions prior to 3.0.1.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to potential phishing attacks or the download of malware.
  remediation: |
    Upgrade to version 3.0.1 or later to fix the open redirect vulnerability.
  reference:
    - https://huntr.dev/bounties/4fb39400-e08b-47af-8c1f-5093c9a51203/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-0692
    - https://huntr.dev/bounties/4fb39400-e08b-47af-8c1f-5093c9a51203
    - https://github.com/rudloff/alltube/commit/bc14b6e45c766c05757fb607ef8d444cbbfba71a
    - https://github.com/ARPSyndicate/cvemon
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2022-0692
    cwe-id: CWE-601
    epss-score: 0.03378
    epss-percentile: 0.87215
    cpe: cpe:2.3:a:alltube_project:alltube:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: alltube_project
    product: alltube
  tags: cve,cve2022,huntr,redirect,rudloff,alltube,alltube_project,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php/interact.sh'

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?:\/\/|\/\/|\/\\\\|\/\\)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh\/?(\/|[^.].*)?$' # https://regex101.com/r/L403F0/1
# digest: 4a0a00473045022100983499ef92bfd3fe55ab085625bf5bdf09fe3d6d714cf35a243dce6c44039fa902201b804f96880a471a72d4f5dbf1e0becad98af201f631efaa53e0078359c7687f:922c64590222798bb761d5b6d8e72950