New issue

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

后台任意文件删除漏洞 #2

Closed
360CodeSafe opened this Issue Jan 4, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@360CodeSafe
Copy link

360CodeSafe commented Jan 4, 2019

后台删除文件处由于没有对文件名做校验导致可以通过../进行回溯来删除任意文件夹,删除install文件(锁文件所在的文件夹)时,可以重装系统
在Appminialipaylist.php文件中,params是受控制的:
default
进入delete方法中,当不是zip结尾时会认为是文件夹
default
跟进FileUtil.php文件UnlinkDir方法中
default
方法中只对是不是文件夹做了校验,最后进入了rmdir方法中

点击删除
default
抓包修改
default

成功删除
default

@gongfuxiang gongfuxiang self-assigned this Jan 5, 2019

@gongfuxiang

This comment has been minimized.

Copy link
Owner

gongfuxiang commented Jan 5, 2019

已修复

@gongfuxiang gongfuxiang closed this Jan 5, 2019

@attritionorg

This comment has been minimized.

Copy link

attritionorg commented Jan 10, 2019

@gongfuxiang can you link to the fixing commit please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment