Skip to content
This repository was archived by the owner on Apr 5, 2026. It is now read-only.
This repository was archived by the owner on Apr 5, 2026. It is now read-only.

User Story: Replace insecure ID generation in src/javascript/shared/utils.js #88

Description

@aliAljaffer

As a developer
I want to replace insecure random ID generation in src/javascript/shared/utils.js with a cryptographically secure method
So that identifiers (e.g., session IDs, tokens) are not predictable and cannot be exploited

Acceptance Criteria

  • Replace uses of Math.random()-based ID generation with crypto.randomBytes (Node) or other secure random APIs.

Details
The utils file comments indicate "Insecure random ID generation". Using non-crypto random for IDs is unsafe for security-sensitive contexts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggy-fileFiles that are intentionally buggy or brokenneeds-reviewNeeds human reviewsecuritySecurity related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions