HexBrain

Browse / CVEs / CVE-2021-41826

CVE-2021-41826· place / placeos authentication· CWE-601

PlaceOS 1.2109.1 - Open Redirection

mediumseverity
6.1CVSS score
12.1%likelihood of exploitation, next 30 days
96%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Apply the latest security patch or update to PlaceOS 1.2109.2 or higher to fix the open redirection vulnerability.

How to confirm it

Send: GET {{BaseURL}}/auth/logout?continue=//interact.sh
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?://|//)(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$/ AND status 302 or 301

Run it with nuclei: nuclei -id CVE-2021-41826 -u <target>. This check is not marked as verified by its authors.

The full check
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.12056
    epss-percentile: 0.96175
    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,vkev

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

References

Use this check only on systems you are authorised to test. Where the data comes from