Skip to content

Bug: pre-auth device-signature verify allows CPU-amplification DoS without rate limit #77979

@fede-kamel

Description

@fede-kamel

Problem

The gateway's pre-auth device-signature verify path runs cryptographic verify work for every connect attempt, with no rate limit on the unauthenticated request stream. An attacker can amplify CPU use on the gateway by sending bogus signatures faster than legitimate clients, since each signature triggers expensive verify work before any auth bound is enforced.

Defense-in-depth fix: rate-limit pre-auth device-signature verify so an unauthenticated attacker cannot pin gateway CPU.

Tracking PR

Fix in #77492.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions