Skip to content
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
QiAnXinCodeSafe opened this issue Jan 4, 2019 · 3 comments
Closed

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

QiAnXinCodeSafe opened this issue Jan 4, 2019 · 3 comments
Assignees

Comments

@QiAnXinCodeSafe
Copy link

QiAnXinCodeSafe 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
Copy link
Owner

已修复

@attritionorg
Copy link

@gongfuxiang can you link to the fixing commit please?

@OS-WS
Copy link

OS-WS commented Jan 19, 2021

Hi, can you link to the fixing commit please?

thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants