Skip to content

[Security] Deprecate query string token authentication #2148

@ugedogle

Description

@ugedogle

Issue

Hook endpoints accept auth tokens via URL query parameter (extractHookToken in hooks.js). This means tokens appear in:

  • Server access logs
  • Browser history
  • Referrer headers
  • Network monitoring tools

Impact

Token leakage via logs and caching.

Suggested Fix

  1. Log deprecation warning when tokens provided via query param
  2. Document header-only auth (Bearer/X-Clawdbot-Token) as the secure method
  3. Plan removal in future major version

Found by

Automated security review (Nova/Claude)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions