id: linkedin-secret-key

info:
  name: LinkedIn Secret Key
  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|secret|key).?(?:key|oauth|sec|secret)?.{0,2}\s{0,20}.{0,2}\s{0,20}.{0,2}\b([a-z0-9]{16})\b
# digest: 4a0a00473045022024356cf7e4f5b8675330549d79aa0923bddc0e71277721685c873d513a038a20022100c2078588dabf05c3708030ccbe568f710511659d03d149036e92381f374e8840:922c64590222798bb761d5b6d8e72950