id: aem-userinfo-servlet

info:
  name: AEM UserInfo Servlet Credentials Exposure
  author: DhiyaneshDk
  severity: info
  description: "Adobe Experience Manager UserInfoServlet is exposed which allows an attacker to bruteforce credentials. You can get valid usernames from jcr:createdBy, jcr:lastModifiedBy, cq:LastModifiedBy attributes of any JCR node."
  classification:
    cpe: cpe:2.3:a:adobe:experience_manager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: adobe
    product: experience_manager
    shodan-query: http.component:"Adobe Experience Manager"
  tags: aem,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/libs/cq/security/userinfo.json'

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - '"userID":'
          - '"userName":'
        condition: and

      - type: word
        part: header
        words:
          - 'application/json'
# digest: 4b0a0048304602210093473adda03338d0e73ca166a8dbd94af857c52fee0cf146238421361c0e28c80221009fe02cfa3810c8007578627e77d07651799dc1f296cf4bc23475db2312d2ad1c:922c64590222798bb761d5b6d8e72950