id: apple-app-site-association

info:
  name: Apple app site association for harvesting end points
  author: panch0r3d
  severity: info
  metadata:
    max-request: 3
  tags: miscellaneous,misc,apple

http:
  - method: GET
    path:
      - "{{BaseURL}}/.well-known/apple-app-site-association"
      - "{{BaseURL}}/well-known/apple-app-site-association"
      - "{{BaseURL}}/apple-app-site-association"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'applinks'
          - 'appID'
          - 'paths'
        condition: and

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

      - type: status
        status:
          - 200

    extractors:
      - type: json
        json:
          - .applinks.details[].appID
# digest: 4b0a00483046022100c8aac412bbeedac333a74b23f370c2654318e462344b2b2cd93d2c2fa35510ff022100e7f61d2e89e1baee8db7f4742ca594aff8d815fc1686188fc826d2d70a2aa58b:922c64590222798bb761d5b6d8e72950