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

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: 4a0a0047304502210094658c769b69ded20f3d9d405d18f509797f8380136ffca6690de7bd153e35cf022066943fd174edb057e8db0cb5ce43717299b04c6eadae69ed71a21a5b7b1278bd:922c64590222798bb761d5b6d8e72950