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

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: 4b0a00483046022100e9ed14c8c4f4f64434f401e06976f03a7f642137bfaf48a1cdc3cc0f5e9e0f9a022100d3e960ef3f171f94658b5830245394ca8197d6dd2105ea698b94e8ab78eb2ad6:922c64590222798bb761d5b6d8e72950