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