id: tianqing-info-leak

info:
  name: Tianqing Info Leak
  author: ritikchaddha
  severity: medium
  description: Information exposed in Tianqing.
  reference:
    - https://mp.weixin.qq.com/s/wH5luLISE_G381W2ssv93g
  metadata:
    max-request: 1
  tags: tianqing,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/dbstat/gettablessize"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "schema_name"
          - "table_name"
          - "table_size"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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