id: linkedin-client-id

info:
  name: LinkedIn Client ID
  author: DhiyaneshDK
  severity: info
  reference:
    - https://github.com/praetorian-inc/noseyparker/blob/main/crates/noseyparker/data/default/builtin/rules/linkedin.yml
    - https://docs.microsoft.com/en-us/linkedin/shared/api-guide/best-practices/secure-applications
  metadata:
    verified: true
    max-request: 1
  tags: linkedin,exposure,tokens,vuln

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

    extractors:
      - type: regex
        part: body
        regex:
          - (?i)linkedin.?(?:api|app|application|client|consumer|customer)?.?(?:id|identifier|key).{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{12,14})\b
# digest: 4a0a0047304502202c22073d6e80c038798e8bc2dd7624f2a73ce569e0ec3da26dbce73304c35848022100eaca3f1208e67c6f847603f6564b907deee502815cc4f0dfc9d8bc79125fae64:922c64590222798bb761d5b6d8e72950