id: aem-wcm-suggestions-servlet

info:
  name: AEM WCM Suggestions Servlet
  author: DhiyaneshDk
  severity: low
  description: AEM WCM Suggestions Servlet is exposed.
  reference:
    - https://speakerdeck.com/0ang3el/hunting-for-security-bugs-in-aem-webapps?slide=96
  metadata:
    max-request: 1
    shodan-query: http.component:"Adobe Experience Manager"
  tags: aem,misconfig,intrusive

http:
  - method: GET
    path:
      - '{{BaseURL}}/bin/wcm/contentfinder/connector/suggestions.json;%0aOJh.css?query_term=path%3a/&pre={{randstr}}'

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

      - type: word
        words:
          - '{{randstr}}'
          - '"results":'
          - '"suggestions":'
        condition: and
# digest: 4a0a00473045022066404027a614e666099fdf2af3b65770f4e47c45d1d7e16da04135448bed2ed1022100cf4f3c01c5f812793f7fd2987600a01ebed54f9850349fab00c5d9b06fe4c91e:922c64590222798bb761d5b6d8e72950