id: aem-groovyconsole

info:
  name: AEM Groovy Console Discovery
  author: Dheerajmadhukar
  severity: critical
  description: An Adobe Experience Manager Groovy console was discovered. This can possibly lead to remote code execution.
  reference:
    - https://hackerone.com/reports/672243
    - https://twitter.com/XHackerx007/status/1435139576314671105
  classification:
    cpe: cpe:2.3:a:adobe:experience_manager_cloud_service:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: adobe
    product: experience_manager_cloud_service
    shodan-query: http.component:"Adobe Experience Manager"
  tags: aem,adobe,hackerone,misconfig

http:
  - method: GET
    path:
      - "{{BaseURL}}/groovyconsole"
      - "{{BaseURL}}/etc/groovyconsole.html"

    headers:
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
      Accept-Language: en-US,en;q=0.9,hi;q=0.8
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Groovy Console</title>"
          - "Run Script"
          - "Groovy Web Console"
        part: body
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100e9969c492d8d71b2549e909247548d094efced0689dc826c2db56832ac84d517022031bcb2a0a5f61dc0bff6f6e8d7a896c85e63d475ba1abbf88f850fb0a38f12a5:922c64590222798bb761d5b6d8e72950