in reply to Re^8: Our perl/xs/c app is 30% slower with 64bit 5.24.0, than with 32bit 5.8.9. Why?
in thread Our perl/xs/c app is 30% slower with 64bit 5.24.0, than with 32bit 5.8.9. Why?
On the security list, someone posted (1) a short perl program which created a hash with 28 shortish random word keys (i.e. those matching /a-z{2,12}/), and then printed those keys to stdout in unsorted order; (2) a C program, which given as input that list of keys, in 785 CPU seconds was able to completely determine the random hash seed of that perl process.
Okay. Is there any chance of laying my hands on the sources for the C program?
I'd be a whole lot more impressed if the keys were a set of real (or at least realistic) headers, say something like this:
How can an external party cause a server to generate a set of headers that are carefully crafted to induce the pathological behaviour that is the apparent root of the perceived problem?
I'm just not seeing the threat landscape where such a combination of requirements will exist. And even if they did, they would be so few and far between, and on such small websites -- single servers with a single permanent perl process are basically confined to schools, charities and mom*pop stores -- that no hacker is ever going to waste their time trying to find them, much less exploit them.
In any case, my comment about "unnecessary" was little more than a footnote in my suggestion above that the OP could try reverting his 5.24 perl to using the 5.8.9 hashing mechanism to see if that was the source of his performance issue. If it isn't, one more thing to ignore. If it turned out it was, he could decide if his application was even remotely vulnerable to the "security concern" and choose to revert or not as he saw fit.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Our perl/xs/c app is 30% slower with 64bit 5.24.0, than with 32bit 5.8.9. Why?
by dave_the_m (Monsignor) on Dec 22, 2016 at 16:34 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2016 at 18:00 UTC | |
by dave_the_m (Monsignor) on Dec 22, 2016 at 19:54 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2016 at 02:06 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2016 at 21:29 UTC | |
by dave_the_m (Monsignor) on Dec 22, 2016 at 22:14 UTC | |
|