id: CVE-2021-41826

info:
  name: PlaceOS 1.2109.1 - Open Redirection
  author: geeknik
  severity: medium
  description: PlaceOS Authentication Service before 1.29.10.0 allows app/controllers/auth/sessions_controller.rb open redirect.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to phishing attacks or the theft of sensitive information.
  remediation: |
    Apply the latest security patch or update to PlaceOS 1.2109.2 or higher to fix the open redirection vulnerability.
  reference:
    - https://github.com/PlaceOS/auth/issues/36
    - https://www.exploit-db.com/exploits/50359
    - https://nvd.nist.gov/vuln/detail/CVE-2021-41826
    - http://packetstormsecurity.com/files/164345/PlaceOS-1.2109.1-Open-Redirection.html
    - 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-2021-41826
    cwe-id: CWE-601
    epss-score: 0.11872
    epss-percentile: 0.95562
    cpe: cpe:2.3:a:place:placeos_authentication:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: place
    product: placeos_authentication
  tags: cve2021,cve,redirect,edb,packetstorm,placeos,place,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/auth/logout?continue=//interact.sh"

    matchers-condition: and
    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'

      - type: status
        status:
          - 302
          - 301
        condition: or
# digest: 4a0a00473045022100bbc12946130548106bcb6cca4a7abda4cdab6f6eb1d31b1ea37195abf2bddf24022015dc9980eb557eb5722de24c07ecb9d36e1db0a72ccca5b116d176b9131d7343:922c64590222798bb761d5b6d8e72950