Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
789
Star
1.6K
Fork
348
开源中国
/
Gitee Feedback
Code
Issues
3443
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【安全相关】gitee pages域名跨站窃取信息的问题
Done
#I6PNL6
运维工单
popcorner
Opened this issue
2023-03-23 18:24
### 问题描述 网站的Cookie具备跨站原则,相同根域名下的Cookie是可以共享获取的。 还有其他的一些涉及跨站的js API也具备此项能力。 在同一个域名下,站点之间默认是无法做到隔离的。 按照国际规范,当一个域名被用于开放服务的时候,应当将这个域名加入公认的“公共后缀列表”。 国际主流浏览器均承认此列表,加入列表后的域名,下面的子站点之间将不再共享信息,杜绝了通过技术手段跨站窃取其他站点信息的可能性。 而经过查询:https://publicsuffix.org/list/public_suffix_list.dat gitee的域名(gitee.io)并未申请加入此列表,因此存在跨站窃取信息的风险。 而国际主流的类似服务,如github.io,vercel.dev,pages.dev 等均具备此项加固措施。 因此,建议向国际组织提交gitee.io这个域名(方法:https://publicsuffix.org/submit/ ),避免可能存在的安全风险。 ### 重现步骤 ### 期望效果 ### 实际效果 ### 参考资料 官方介绍:https://publicsuffix.org/learn/ mozilla: https://wiki.mozilla.org/Public_Suffix_List chrome: https://web.dev/same-site-same-origin/
### 问题描述 网站的Cookie具备跨站原则,相同根域名下的Cookie是可以共享获取的。 还有其他的一些涉及跨站的js API也具备此项能力。 在同一个域名下,站点之间默认是无法做到隔离的。 按照国际规范,当一个域名被用于开放服务的时候,应当将这个域名加入公认的“公共后缀列表”。 国际主流浏览器均承认此列表,加入列表后的域名,下面的子站点之间将不再共享信息,杜绝了通过技术手段跨站窃取其他站点信息的可能性。 而经过查询:https://publicsuffix.org/list/public_suffix_list.dat gitee的域名(gitee.io)并未申请加入此列表,因此存在跨站窃取信息的风险。 而国际主流的类似服务,如github.io,vercel.dev,pages.dev 等均具备此项加固措施。 因此,建议向国际组织提交gitee.io这个域名(方法:https://publicsuffix.org/submit/ ),避免可能存在的安全风险。 ### 重现步骤 ### 期望效果 ### 实际效果 ### 参考资料 官方介绍:https://publicsuffix.org/learn/ mozilla: https://wiki.mozilla.org/Public_Suffix_List chrome: https://web.dev/same-site-same-origin/
Comments (
2
)
Sign in
to comment
Status
Done
新建
Doing
Done
挂起
Canceled
Assignees
Not set
李明华
l-mh
Assignee
Collaborator
+Assign
+Mention
atompi
atompi
Assignee
Collaborator
+Assign
+Mention
Labels
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
Ruby
1
https://gitee.com/oschina/git-osc.git
git@gitee.com:oschina/git-osc.git
oschina
git-osc
Gitee Feedback
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register