You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
working directory [/Applications/SiYuan.app/Contents/Resources]
read only [false]
container [std]
database [ver=20220501]
workspace directory [/Users/test/Documents/siyuan/zhishiku/siyuan]
I 2024/06/27 18:19:33 conf.go:124: loaded conf [/Users/test/Documents/siyuan/zhishiku/siyuan/conf/conf.json]
I 2024/06/27 18:19:33 conf.go:435: OpenAI API enabled
userAgent=SiYuan/3.0.17 std/darwin
baseURL=https://api.huiyan-ai.cn/v1
timeout=30s
proxy=
model=gpt-4o
maxTokens=0
temperature=1.0
maxContexts=7
I 2024/06/27 18:19:33 conf.go:490: user has disabled [Google Analytics]
I 2024/06/27 18:19:33 runtime.go:123: use network proxy [system]
I 2024/06/27 18:19:33 serve.go:116: kernel [pid=85941] http server [127.0.0.1:56413] is booting
I 2024/06/27 18:19:33 blocktree.go:513: read block tree [6.5 MB] to [/Users/test/Documents/siyuan/zhishiku/siyuan/temp/blocktree], elapsed [0.21s]
I 2024/06/27 18:19:33 conf.go:850: database size [142.33 MB], tree/block count [667/24206]
I 2024/06/27 18:19:33 working.go:192: kernel booted
I 2024/06/27 18:19:33 box.go:77: auto stat [trees=667, blocks=24206, dataSize=283.4 MB, assetsSize=249.03 MB]
I 2024/06/27 18:19:33 disk.go:33: disk usage [total=994.67 GB, used=709.96 GB, free=284.72 GB]
I 2024/06/27 18:19:34 serve.go:129: reverse proxy server [127.0.0.1:6806] is booting
I 2024/06/27 18:19:41 pandoc.go:132: built-in pandoc [ver=3.1.1, bin=/Users/test/Documents/siyuan/zhishiku/siyuan/temp/pandoc/bin/pandoc]
I 2024/06/27 18:19:41 conf.go:1095: pandoc initialized, set pandoc bin to [/Users/test/Documents/siyuan/zhishiku/siyuan/temp/pandoc/bin/pandoc]
More information
No response
The text was updated successfully, but these errors were encountered:
思源笔记存在xss漏洞
Is there an existing issue for this?
Can the issue be reproduced with the default theme (daylight/midnight)?
Could the issue be due to extensions?
Describe the problem
漏洞触发点位于软件的全局搜索功能,输入payload:
<iframe src="" onload=alert()></iframe>
,可以触发xss可以利用file协议读取本地文件,payload:
<iframe src="file:/etc/passwd"></iframe>
,Expected result
Screenshot or screen recording presentation
No response
Version environment
Log file
I 2024/06/27 18:19:33 conf.go:124: loaded conf [/Users/test/Documents/siyuan/zhishiku/siyuan/conf/conf.json]
I 2024/06/27 18:19:33 conf.go:435: OpenAI API enabled
userAgent=SiYuan/3.0.17 std/darwin
baseURL=https://api.huiyan-ai.cn/v1
timeout=30s
proxy=
model=gpt-4o
maxTokens=0
temperature=1.0
maxContexts=7
I 2024/06/27 18:19:33 conf.go:490: user has disabled [Google Analytics]
I 2024/06/27 18:19:33 runtime.go:123: use network proxy [system]
I 2024/06/27 18:19:33 serve.go:116: kernel [pid=85941] http server [127.0.0.1:56413] is booting
I 2024/06/27 18:19:33 blocktree.go:513: read block tree [6.5 MB] to [/Users/test/Documents/siyuan/zhishiku/siyuan/temp/blocktree], elapsed [0.21s]
I 2024/06/27 18:19:33 conf.go:850: database size [142.33 MB], tree/block count [667/24206]
I 2024/06/27 18:19:33 working.go:192: kernel booted
I 2024/06/27 18:19:33 box.go:77: auto stat [trees=667, blocks=24206, dataSize=283.4 MB, assetsSize=249.03 MB]
I 2024/06/27 18:19:33 disk.go:33: disk usage [total=994.67 GB, used=709.96 GB, free=284.72 GB]
I 2024/06/27 18:19:34 serve.go:129: reverse proxy server [127.0.0.1:6806] is booting
I 2024/06/27 18:19:41 pandoc.go:132: built-in pandoc [ver=3.1.1, bin=/Users/test/Documents/siyuan/zhishiku/siyuan/temp/pandoc/bin/pandoc]
I 2024/06/27 18:19:41 conf.go:1095: pandoc initialized, set pandoc bin to [/Users/test/Documents/siyuan/zhishiku/siyuan/temp/pandoc/bin/pandoc]
More information
No response
The text was updated successfully, but these errors were encountered: