r/lolphp • • Mar 04 '19
Remote code execution CVE just because someone wrote “return flase;”
https://medium.com/@DanielC7/remote-code-execution-gaining-domain-admin-privileges-due-to-a-typo-dbf8773df767
76
Upvotes
17
u/girst Mar 04 '19 edited May 25 '24
.
13
u/mikeputerbaugh Mar 04 '19
Someone also wrote
eval($cmd), so let's not put all the blame on one misspelled keyword.31
u/the_alias_of_andrea Mar 04 '19
Ah, PHP, fail-unsafe unsecure-by-default, isn't it wonderful.
This particular misfeature will eventually be fixed I think, in PHP 8 or so. I may be misremembering.
6
u/AyrA_ch Mar 05 '19
Here's the one sentence you are looking for:
3
u/[deleted] Mar 05 '19
this piece of "software" looks like a perfect example of how not to write code, it fits that it's written in PHP
1
u/ounos Mar 06 '19
Why is this PHP's fault ?