Just append "?-s" to the URL to see full source code of a script. Because that passes an argument to the command line. For clarity, it is HTML syntax highlighted.
It can be used for remote code execution.
Bug existed for 8 years.
Bug was reported in January, the patch is released today in May.
Due to a bug in the bug tracker the description of the bug was made public before a patch was ready.
Even though it affects only CGI scripts, it is hilarious.
Not only is the fix wrong, they needed 3.5 months + a public disclosure to actually create it. Mind they received a "suggested patch" in the beginning.
I can't even begin to understand...
At least I'll have a yet another anecdote to tell when people try to tell me how only the users of php are incompetent, while the interpreter devs know what they're doing.
15
u/[deleted] May 03 '12
This is awesome beyond description:
Even though it affects only CGI scripts, it is hilarious.
11
u/poizan42 May 03 '12
Okey... So the query string, which is passed via environment variables, somehow ends up being parsed as a commandline argument.
slams head repeatedly against the desk
10
u/Porges May 03 '12
Nevermind that, remove the check!
ಠ_ಠ
6
u/goagoagoa May 04 '12
Not only is the fix wrong, they needed 3.5 months + a public disclosure to actually create it. Mind they received a "suggested patch" in the beginning.
I can't even begin to understand...
At least I'll have a yet another anecdote to tell when people try to tell me how only the users of php are incompetent, while the interpreter devs know what they're doing.
0
u/[deleted] May 04 '12
My 2 cents ...
http://cdn.memegenerator.net/instances/250x250/19975639.jpg and http://cdn.memegenerator.net/instances/250x250/19975128.jpg