Advisory

GHSA-m5q5-8mfw-p2hr

Also known as: CVE-2023-37266, GO-2023-1931

Summary

CasaOS contains weak JWT secrets

Details

Impact

Unauthenticated attackers can craft arbitrary JWTs and access features that usually require authentication and execute arbitrary commands as root on CasaOS instances.

Patches

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

Workarounds

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.

References

  • 705bf1f
  • https://www.sonarsource.com/blog/security-vulnerabilities-in-casaos/

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-07-17 14:40 UTC
Modified
2024-12-12 22:30 UTC

Affected packages and fixes

github.com/IceWhaleTech/CasaOS

Go · All systems

Affected

  • introduced 0, fixed 0.4.4 (semver)

Fixed versions

0.4.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences