Skip to content

[security] - Use crypto/md5 in Credits sharding (not suitable for security purposes) #83

Open

Description

@shieldx-bot
  • Description: Import crypto/md5 in sharding mechanism; if used for security purposes (e.g. signing, tokenization) is not secure; if only hashing distributed keys is acceptable but better algorithms should be considered.
  • Location: services/shieldx-credits/credits/sharding_engine.go:5.
  • Recommendation: Confirm scope of use only for sharding (not secure); consider replacing with sha256/xxhash depending on requirements; clearly note in code.
  • Complete when: Audit code confirms not using md5 for security; update docs/comment; (if changed) benchmark is ok.

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