id: aem-login-status

info:
  name: AEM Login Status
  author: DhiyaneshDk
  severity: info
  description: LoginStatusServlet is exposed, it allows to bruteforce credentials.
  reference:
    - https://www.slideshare.net/0ang3el/hunting-for-security-bugs-in-aem-webapps-129262212
    - https://github.com/thomashartm/burp-aem-scanner/blob/master/src/main/java/burp/actions/dispatcher/LoginStatusServletExposed.java
  classification:
    cpe: cpe:2.3:a:adobe:experience_manager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 3
    vendor: adobe
    product: experience_manager
    shodan-query: http.component:"Adobe Experience Manager"
  tags: aem,adobe,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/system/sling/loginstatus'
      - '{{BaseURL}}/system/sling/loginstatus.css'
      - '{{BaseURL}}///system///sling///loginstatus'

    stop-at-first-match: true

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

      - type: word
        words:
          - 'CREDENTIAL_CHALLENGE'
# digest: 4a0a00473045022013b7e50c3ececd18f857eeb89dd4dcae0331e197e5dca2d538c970fbc1a31e2802210096dd14defbce9644b66be76a994b6d20db8d106baa9bd43d968b802f153cdfac:922c64590222798bb761d5b6d8e72950