6.5 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): LOW
- User interaction (UI): NONE
- Scope (S): UNCHANGED
- Confidentiality impact (C): HIGH
- Integrity impact (I): NONE
- Availability impact (A): NONE
by @LeSuisse Activity log
- Created suggestion
-
@LeSuisse
ignored
7 packages
- python312Packages.uptime-kuma-api
- python313Packages.uptime-kuma-api
- python314Packages.uptime-kuma-api
- gnomeExtensions.uptime-kuma-indicator
- python312Packages.uptime-kuma-monitor
- python313Packages.uptime-kuma-monitor
- python314Packages.uptime-kuma-monitor
- @LeSuisse accepted
- @LeSuisse published on GitHub
Uptime Kuma: SSTI in Notification Templates Allows Arbitrary File Read (Incomplete Fix for GHSA-vffh-c9pq-4crh)
Uptime Kuma is an open source, self-hosted monitoring tool. In versions 1.23.0 through 2.2.0, the fix from GHSA-vffh-c9pq-4crh doesn't fully work to preventServer-side Template Injection (SSTI). The three mitigations added to the Liquid engine (root, relativeReference, dynamicPartials) only block quoted paths. If a project uses an unquoted absolute path, attackers can still read any file on the server. The original fix in notification-provider.js only constrains the first two steps of LiquidJS's file resolution (via root, relativeReference, and dynamicPartials options), but the third step, the require.resolve() fallback in liquid.node.js has no containment check, allowing unquoted absolute paths like /etc/passwd to resolve successfully. Quoted paths happen to be blocked only because the literal quote characters cause require.resolve('"/etc/passwd"') to throw a MODULE_NOT_FOUND error, not because of any intentional security measure. This issue has been fixed in version 2.2.1.
References
-
https://github.com/louislam/uptime-kuma/security/advisories/GHSA-v832-4r73-wx5j x_refsource_CONFIRM
-
https://github.com/advisories/GHSA-vffh-c9pq-4crh x_refsource_MISC
-
https://github.com/louislam/uptime-kuma/releases/tag/2.2.1 x_refsource_MISC
Affected products
- ==>= 1.23.0, < 2.2.1
Matching in nixpkgs
Ignored packages (7)
pkgs.python312Packages.uptime-kuma-api
Python wrapper for the Uptime Kuma Socket.IO API
pkgs.python313Packages.uptime-kuma-api
Python wrapper for the Uptime Kuma Socket.IO API
pkgs.python314Packages.uptime-kuma-api
Python wrapper for the Uptime Kuma Socket.IO API
pkgs.gnomeExtensions.uptime-kuma-indicator
Displays the status of an Uptime Kuma instance in the panel.
pkgs.python312Packages.uptime-kuma-monitor
Python wrapper around UptimeKuma /metrics endpoint
pkgs.python313Packages.uptime-kuma-monitor
Python wrapper around UptimeKuma /metrics endpoint
pkgs.python314Packages.uptime-kuma-monitor
Python wrapper around UptimeKuma /metrics endpoint
Package maintainers
-
@JulienMalka Julien Malka <julien.malka@me.com>