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

关于项目存在FreeMarker模板注入实现远程命令执行问题 #26

Open
Firebasky opened this issue Nov 8, 2021 · 0 comments
Open

Comments

@Firebasky
Copy link

您好,该项目中可能存在FreeMarker模板注入实现远程命令执行问题的风险。

在项目后台存在模板管理功能,并且可以任意修改模板。
image

image

成功修改了数据库中的模板数据。

之后前台访问url/sitemap.xml,成功触发命令执行

image

解决办法j
建议对修改的模块的地方进行过滤处理。
image

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

1 participant