Skip to content

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