Skip to main content

Cloudflare API Token

Description​

General​

  • Documentation: https://api.cloudflare.com/
  • Summary: Cloudflare protects and accelerates websites, providing CDN services, DDoS mitigation, network security and DNS. Cloudflare's API exposes the entire Cloudflare infrastructure via a standardized programmatic interface : anything that can be done on cloudflare.com dashboard can be done using the API : that's the reason why Cloudflare credentials are highly sensitive. The API provides multiple ways to authenticate:
  • With an API token
  • With a CA Key
  • With a Global API Key associated to an email address.

Details for Cloudflare API Token​

  • Family: token

  • Category: cdn

  • Company: Cloudflare

  • High recall: False

  • Validity check available: True

  • Analyzer available: True

  • Revoker available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: True

  • Occurrences found for one million commits: 2.16

  • Prefixed: False

Details for Cloudflare API Token V2​

  • Family: token

  • Category: cdn

  • Company: Cloudflare

  • High recall: False

  • Validity check available: True

  • Analyzer available: True

  • Revoker available: True

  • On-premise instances exist: False

  • Only valid secrets raise an alert: True

  • Occurrences found for one million commits: 0.906

  • Prefixed: False

Secret Analyzer​

Analysis Method​

  • Provider allows scopes enumeration: False
  • Total network call count: 8
  • Total call count may vary: True

HTTP Calls​

Requests are designed to capture metadata and not to function effectively.

  • GET: /client/v4/accounts/***/tokens/verify
  • GET: /client/v4/accounts
  • GET: /client/v4/user/billing/profile
  • GET: /client/v4/user/tokens/verify
  • GET: /client/v4/user
  • GET: /client/v4/zones

Other Calls​

Non-HTTP queries or HTTP calls made through a third-party app (e.g., Python package). No other calls for this analyzer.

Revoker​

Auth Credentials​

Valid credentials needed to authenticate the request. No extra credentials needed for this revoker.

HTTP Calls​

List of calls performed by the revoker.

  • DELETE: /client/v4/accounts/{account_id}/tokens/{token_id}
  • DELETE: /client/v4/user/tokens/{token_id}
  • GET: /client/v4/accounts/{account_id}/tokens/verify
  • GET: /client/v4/user/tokens/verify

Revocation Mode​

Revocation is synchronous.