Directory Traversal in node-red-contrib-huemagic 3.0.0
A directory traversal vulnerability exists in node-red-contrib-huemagic 3.0.0 due to improper sanitization of user-supplied input in the res.sendFile API within hue-magic.js. An attacker can exploit this by sending requests containing encoded directory traversal sequences (e.g., ..%2F) to access arbitrary files on the server.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an attacker to read arbitrary files on the server, potentially exposing sensitive information such as configuration files, credentials, or other data outside the intended directory.
If you can’t patch tonight, do this now.
As an interim measure, restrict access to the affected API endpoints, use web server configuration to block requests containing traversal patterns, and monitor logs for suspicious activity until a patched version is deployed.
Patch, then assume compromise.
Upgrade node-red-contrib-huemagic to a version where input to res.sendFile is properly sanitized and directory traversal sequences are blocked. Ensure all user-supplied paths are validated and restricted to intended directories.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.