id: wechat-corpsecret-key

info:
  name: Enterprise WeChat Corpsecret Key
  author: N0el4kls
  severity: info
  reference:
    - https://xz.aliyun.com/t/11092
  metadata:
    verified: true
    max-request: 1
  tags: wechat,exposure,tencent,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)corpsecret\s*[:=]\s*["']?([a-z0-9\-]+)["']?
# digest: 4b0a00483046022100a5231279310f860c45f34b474d7466fe0dd29048ef3640ec573b5ec066234428022100f4ebd42be74db5335a32ffdecde6c0713d723a98fd0802d22a123b16efead459:922c64590222798bb761d5b6d8e72950