Thinkphp 5.1.41 and 5.0.24 has a code logic error which causes file upload getshell.
thinkphp thinkphp 5.0.24
thinkphp thinkphp 5.1.41