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

mod_security bug with random numbers generation #781

Closed
batata004 opened this issue Oct 3, 2014 · 2 comments
Closed

mod_security bug with random numbers generation #781

batata004 opened this issue Oct 3, 2014 · 2 comments
Assignees
Milestone

Comments

@batata004
Copy link

I finally could create a way to reproduce the bug that I am having. When 2 or more users call a page at the same second modsecurity generates the same random number (using rand() function from php) to all users.

Here is a demonstration of the bug:

http://quemfazsite.com.br/em_criacao/modelo9/teste.php

Opening this page 2 iframes will load and each one should be generating random numbers independetly of each other but both frames are generating the same random numbers! The very simple source code can be seen at:

http://pastebin.com/8ELAnmdp

If this is not the right place to post this kind of bug please tell me the right place. This is my first contribution and I dont know too much about this community.

@batata004
Copy link
Author

hey zimmerle any idea what should I do? Do you believe there is another place to publish this bug? If there is please tell me so I can do it and help the community trying to find the solutino to this bug.

@zimmerle
Copy link
Contributor

Hi @gilperon the current mainline code contains the fix for that issue. The fix was provided by @micha137. Thank you for the report and thanks @micha137 for the fix [#838] ;)

It will be release as of v2.9.1. The release date is not defined yet.

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

No branches or pull requests

2 participants