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

修正XSS注入漏洞:处理noTrustHost时目标host为html字符串问题,对html字符串进行转义 #586

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suninx
Copy link

@suninx suninx commented Aug 29, 2024

复现步骤:

  1. application.properties 中trust.host 指定一个host,如10.0.0.1 2.使用如下文件地址访问:
    picturesPreview?url=aHR0cDovLzxpbWcgc3JjPTEgb25lcnJvcj1hbGVydCgxKT4vMS5qcGc= 【该base64解码为
    3.复现情况:预览该文件浏览器将会弹出alert(1);

复现步骤:
1. application.properties 中trust.host 指定一个host,如10.0.0.1
2.使用如下文件地址访问:
picturesPreview?url=aHR0cDovLzxpbWcgc3JjPTEgb25lcnJvcj1hbGVydCgxKT4vMS5qcGc=
【该base64解码为<img src=1 onerror=alert(1)>】
3.复现情况:预览该文件浏览器将会弹出alert(1);
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

Successfully merging this pull request may close these issues.

1 participant