Thinkphp 5.1.41 and 5.0.24 has a code logic error which causes file upload getshell.
CWE-434, CWE-434