Seriousm4x UpSnap
UpSnap vulnerable to Remote Code Execution via IP Field Template Injection in wake_cmd/shutdown_cmd
UpSnap is a wake on lan web app. Versions prior to 5.4.0 have an OS command injection vulnerability in the UpSnap’s device management functionality due to the presence of unsafe shell command template interpolation using the ip and the mac fields. User-controlled values can be inserted into the wake_cmd and shutdown_cmd templates and executed via /bin/sh -c (Linux) or cmd /C (Windows) without sanitization, resulting in an authenticated Remote Code Execution (RCE). A low-privileged user with permission to create or edit devices can execute arbitrary operating system commands on the UpSnap hosted server. Version 5.4.0 patches the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.4.0
Fixed in 5.4.0
Mitigation
Upgrade UpSnap to 5.4.0 or later.
References
- Vendor advisory github.com/seriousm4x/UpSnap/security/advisori…
- Release notes github.com/seriousm4x/UpSnap/releases/tag/5.4.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.