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.23963
    epss-percentile: 0.9611
    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: 490a00463044022015af268f619ef2b7eead173788a595a3c7514e9b9bf0788a4a950b2a926f68d602200d36b83143bb799a976509b196ee9374b5c24fd853bdace6ae69f97bdafe5d5a:922c64590222798bb761d5b6d8e72950