Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE issues in mt_rand() #237

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

D3adMyst3
Copy link

It is advised to use random_bytes() or openssl_random_pseudo_bytes()

mt_rand() uses predictable seeds and allows remote attackers to predict security strings and bypass intended restrictions via a brute force attack.
Copy link
Owner

@changeweb changeweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This factory files are just for Seeding purpose which is mostly used for testing the software with fake data. When using the software in production, it is recommended not to use any seed except generating master user which is instructed in readme.md file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants