NewsPHP Session IDs Are Guessable

PHP Session IDs Are Guessable content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

PHP Session IDs are supposed to random and impossible for a hacker to guess, but that’s not the case says security expert Andreas Bogk.

Bogk “warns that, despite recent PHP improvements, the session IDs of users who are logged into PHP applications remain guessable,” The H reported.

The problem is that PHP developers are seeding their random generator with a call to the “gettimeofday” function.

Upon examination of the PHP source code, Bogk said, “What we immediately notice is the lack of non-predictable entropy sources in the initial seeding.”

Bogk recommends that the PHP developers brush up on their cryptography knowledge and read Bruce Schneier.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories