We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
后台删除文件处由于没有对文件名做校验导致可以通过../进行回溯来删除任意文件夹,删除install文件(锁文件所在的文件夹)时,可以重装系统 在Appminialipaylist.php文件中,params是受控制的: 进入delete方法中,当不是zip结尾时会认为是文件夹 跟进FileUtil.php文件UnlinkDir方法中 方法中只对是不是文件夹做了校验,最后进入了rmdir方法中
点击删除 抓包修改
成功删除
The text was updated successfully, but these errors were encountered:
已修复
Sorry, something went wrong.
@gongfuxiang can you link to the fixing commit please?
Hi, can you link to the fixing commit please?
thanks in advance!
gongfuxiang
No branches or pull requests
后台删除文件处由于没有对文件名做校验导致可以通过../进行回溯来删除任意文件夹,删除install文件(锁文件所在的文件夹)时,可以重装系统
![default](https://user-images.githubusercontent.com/39950310/50682006-6766f080-1048-11e9-9440-cb5f72912efb.png)
![default](https://user-images.githubusercontent.com/39950310/50682083-a432e780-1048-11e9-9ff2-6802ac2172df.png)
![default](https://user-images.githubusercontent.com/39950310/50682117-c75d9700-1048-11e9-9ff4-43a6cd60bd92.png)
在Appminialipaylist.php文件中,params是受控制的:
进入delete方法中,当不是zip结尾时会认为是文件夹
跟进FileUtil.php文件UnlinkDir方法中
方法中只对是不是文件夹做了校验,最后进入了rmdir方法中
点击删除
![default](https://user-images.githubusercontent.com/39950310/50682479-ead51180-1049-11e9-86a3-5b713720fc15.png)
![default](https://user-images.githubusercontent.com/39950310/50682525-1821bf80-104a-11e9-87da-0cffcf19d39a.png)
抓包修改
成功删除
![default](https://user-images.githubusercontent.com/39950310/50682494-f9232d80-1049-11e9-8360-25830d81c620.png)
The text was updated successfully, but these errors were encountered: