Closed
ebtablesu命令具备读写任意文件的风险 #22
answer_9030Add on  14 days agoClosed at  7 days ago
answer_9030
14 days ago Create

一、漏洞信息

漏洞编号: 暂无

漏洞归属组件: ebtables

漏洞归属的版本:2.0.11

CVSS V3.0分值:暂无

漏洞简述:
ebtablesu通过“/tmp/ebtables-v2.0.11/ebtablesd_pipe”管道文件与ebtablesd服务进行通信;
但是ebtablesu命令在打开“/tmp/ebtables-v2.0.11/ebtablesd_pipe”管道文件时,未判断文件是否是软链接;
如果在ebtablesu命令执行之前,攻击者创建了一个软链接文件“/tmp/ebtables-v2.0.11/ebtablesd_pipe”
并将其链接到其他文件,执行ebtablesu命令时 会修改目标文件的内容,造成目标文件被写坏的风险;

漏洞公开时间:暂无

漏洞创建时间:暂无

漏洞详情参考链接:暂无

漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/doc/md/manual.md

二、漏洞分析结构反馈

影响性分析说明:如果攻击者将“/tmp/ebtables-v2.0.11/ebtablesd_pipe”链接到其他文件,会造成任意文件被非法读写的风险;

openEuler评分:

受影响版本排查(受影响/不受影响):ebtables-2.0.11

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP4

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP4

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
14 days ago Assign MrRlu、sunsuwan、answer_9030、Apricity_HW、robert-xingwang as responsible person
openeuler-ci-botopeneuler-ci-botCollaborators
14 days ago Added label: sig/Networking
openeuler-ci-bot
openeuler-ci-botCollaborators
14 days ago Comments:

Welcome To openEuler Community

Hey @answer_9030 , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Networking ,
and any of the maintainers: @Apricity_HW, @MrRlu, @robert-xingwang, @sunsuwan ,
and any of the committers: @jiangheng12138, @zhongxuan2 .

likedislike
Aanswer_9030
14 days ago Associated pull request
answer_9030
14 days ago Comments:

攻击者可以为任意文件创建软链接,软链接的名称与“/tmp/ebtables-v2.0.11/ebtablesd_pipe”同名;
后续执行ebtablesu命令时,读写“/tmp/ebtables-v2.0.11/ebtablesd_pipe”文件 则会读写目标文件;造成文件非法读写问题;
image.png

likedislike
Xxh
9 days ago Associated pull request
10 event messages are collapsed here。 See more
openeuler-ci-botopeneuler-ci-botCollaborators
7 days ago Removed responsible person sunsuwan、answer_9030、Apricity_HW、robert-xingwang
openeuler-ci-bot
openeuler-ci-botCollaborators
7 days ago Comments:

以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP4:
  3. openEuler-24.03-LTS-SP1:
  4. openEuler-24.03-LTS-SP3:
  5. openEuler-24.03-LTS-SP4:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP4:
  3. openEuler-24.03-LTS-SP1:
  4. openEuler-24.03-LTS-SP3:
  5. openEuler-24.03-LTS-SP4:

缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
7 days ago Added label: DEFECT/UNFIXED
SSPYFAMILYCollaborators
7 days ago changed custom state from 待办的 to 已完成
SSPYFAMILYCollaborators
7 days ago Close issue
openeuler-ci-botopeneuler-ci-botCollaborators
7 days ago Removed label: DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-botCollaborators
7 days ago Comments:

@MrRlu 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
7 days ago Comments:

@MrRlu 未对受影响版本排查/abi变化进行分析

likedislike