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.001
    epss-percentile: 0.40139
    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

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: 4a0a0047304502203ccdb71fff9a5df61a3a988a74c504558a62aab20e47a587ed9499e02cf06e130221008ee594575fd03f101bfb98c81feb97f008c2c26a259bab06eb78c42981ce53a5:922c64590222798bb761d5b6d8e72950