cbcvebase.
CVE-2021-25864
published 2021-01-26

CVE-2021-25864: node-red-contrib-huemagic 3.0.0 is affected by hue/assets/..%2F Directory Traversal.in the res.sendFile API, used in file hue-magic.js, to fetch an arbitrary…

PriorityP179high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
9.33%
94.8th percentile
node-red-contrib-huemagic 3.0.0 is affected by hue/assets/..%2F Directory Traversal.in the res.sendFile API, used in file hue-magic.js, to fetch an arbitrary file.

Affected

1 ranges
VendorProductVersion rangeFixed in
dgtlhuemagic

Detection & IOCsextracted from sources · hover to see the quote

url/hue/assets/..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2fpasswd
pathhue/assets/..%2F
filenamehue-magic.js
  • Send a GET request with a URL-encoded directory traversal payload via the /hue/assets/ endpoint to attempt to read /etc/passwd. A successful exploit returns HTTP 200 with content matching 'root:.*:0:0:'.
  • Shodan/FOFA/Google dorks can be used to identify exposed Node-RED instances that may be running the vulnerable huemagic plugin.
  • The vulnerability exists in the res.sendFile API call within hue-magic.js; look for unsanitized file path parameters passed to this function in Node-RED huemagic 3.0.0.
  • ·The traversal payload uses URL-encoded forward slashes (%2F) to bypass path sanitization; detection rules must account for both encoded and decoded variants of the traversal sequence.

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:P/I:N/A:N
vulncheck7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.