Description
Open OnDemand is an open-source high-performance computing portal. Prior to 4.1.6 and 4.2.3, apps/dashboard/config/initializers/session_store.rb stores dashboard sessions by default in a predictable /var/tmp/<username> directory, or in another location configured by an administrator, but omits PUN user directory ownership and mode 0700 validation. A local attacker can pre-create another user's directory, read the victim's session identifier and CSRF token after login, or stage a predetermined session identifier. ActiveSupport file-store deserialization of attacker-controlled cache data may also occur in the victim's context, enabling file modification or code execution with the victim's privileges. This issue is fixed in versions 4.1.6 and 4.2.3.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
OSC ondemand
< 4.1.6affected>= 4.2.0, < 4.2.3affected
References
- https://github.com/OSC/ondemand/security/advisories/GHSA-wqv4-4vj3-rgh5 ↗
- https://github.com/OSC/ondemand/pull/5558 ↗
- https://github.com/OSC/ondemand/commit/1b0c550921edeb40beaf6c7dcbe2b0fc3a40ec3c ↗
- https://github.com/OSC/ondemand/commit/79265f593aac10ef797cd3293ec3c8b7a2572339 ↗
- https://github.com/OSC/ondemand/releases/tag/v4.1.6 ↗
- https://github.com/OSC/ondemand/releases/tag/v4.2.3 ↗