You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Security phrase generator uses non-CSPRNG (array_rand) in Phrase::generate() #12783
Phrase::generate() builds the anti-phishing security phrase shown in magic-URL / email-OTP flows using array_rand(), which is not cryptographically secure (PHP docs: "This function does not generate cryptographically secure values, and must not be used for cryptographic purposes.").
Hi! I'd like to contribute this fix by replacing array_rand() with random_int() for the anti-phishing phrase generation. Could you please assign this issue to me? Thanks!
Activity
Swaraj234 commentedon Jul 4, 2026
Hi! I'd like to contribute this fix by replacing array_rand() with random_int() for the anti-phishing phrase generation. Could you please assign this issue to me? Thanks!