Skip to content

[securit] - CDEFNET accepts any bearer token #98

Open

Description

@shieldx-bot
  • Description: services/shieldx-sandbox/cdefnet/api.go authenticate() only checks that the Authorization header has a Bearer prefix and length >=32; it never verifies against a secret or signature. Attackers can craft arbitrary tokens and ingest/query threat intel under forged tenants.
  • Location: services/shieldx-sandbox/cdefnet/api.go (functions authenticate, submitIOCHandler, queryIOCHandler).
  • Recommendation: Integrate with real authentication (shared secret, JWT, or mTLS), bind tenants to validated identity, and reject unsigned tokens. Add unit tests exercising invalid/forged tokens.
  • Done when: Forged tokens return 401, tenant identity maps to a trusted issuer, and tests enforce signature verification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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