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

[Bug] Siyuan upload interface is blocked by the firewall #7617

Open
ssqzr opened this issue Jan 1, 2025 · 4 comments
Open

[Bug] Siyuan upload interface is blocked by the firewall #7617

ssqzr opened this issue Jan 1, 2025 · 4 comments
Assignees

Comments

@ssqzr
Copy link

ssqzr commented Jan 1, 2025

Contact Information

[email protected]

1Panel Version

v1.10.22-lts

Problem Description

1Panel 拦截思源笔记的上传接口。

Steps to Reproduce

在1Panel部署思源笔记。

在某个网页上右键复制图片。

在思源笔记编辑页面粘贴图片,页面报错,提示:“请求携带恶意参数 已被拦截。”

The expected correct result

可以正常粘贴图片上传。

Related log output

No response

Additional Information

经过初步排查,关闭 “SQL 注入防御” 和 “XSS防御”可以解决问题。操作如下:

高级功能 --> WAF --> 网站设置 --> (切换到思源的网站) --> 默认规则 --> 其他 --> SQL 注入防御 和 XSS防御 --> 关闭。

如果不是通过页面右键复制图片,而是复制文件系统里的图片或者文件都是可以上传的。

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Bug] 思源上传接口被防火墙拦截 [Bug] Siyuan upload interface is blocked by the firewall Jan 1, 2025
@zhengkunwang223
Copy link
Member

感谢反馈,我们先测试一下

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for the feedback, let’s test it first

@zhengkunwang223
Copy link
Member

经过测试 因为请求结构体中包含 xss 特征 所以被拦截
V2 版本我们会针对思源笔记单独出规则

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


After testing, the request structure was intercepted because it contained xss features.
We will issue separate rules for Siyuan Notes in the V2 version

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

No branches or pull requests

3 participants