Skip to content

[security] - Locator token issuance open to unauthenticated clients #99

@shieldx-bot

Description

@shieldx-bot
  • Description: The Locator service (services/shieldx-gateway/locator/main.go) exposes /issue without any authentication. Anyone can POST arbitrary tenant/scope data to mint valid locator tokens signed with the service key, bypassing downstream authorization.
  • Location: handleIssue and Run in services/shieldx-gateway/locator/main.go (no auth middleware before handler).
  • Recommendation: Gate /issue behind strong auth (mTLS + admission secret/JWT), enforce tenant allowlists, and log/alert on issuance. Consider separating public introspection from privileged issuance endpoints.
  • Done when: Unauthenticated issuance attempts fail, token minting restricted to authorized callers, and coverage tests verify the control path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededsecuritysystem security vulnerabilities

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions