id: tongda-session-disclosure

info:
  name: Tongda User Session Disclosure
  author: ritikchaddha
  severity: medium
  description: Tongda User session exposed.
  reference:
    - https://mp.weixin.qq.com/s/llyGEBRo0t-C7xOLMDYfFQ
  metadata:
    max-request: 1
  tags: tongda,disclosure

http:
  - method: POST
    path:
      - "{{BaseURL}}/general/userinfo.php?UID=1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"dept_name":"'
          - '"online_flag":'
        condition: and

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

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