Closed
[Roadmap|里程碑]: 下载阶段禁用 TLS 校验且缺少完整性验证,可能导致供应链投毒(CWE-295 / CWE-494) #1377
P1GGYiiAdd on Apr 22Closed at Jul 2
Jun 4 Assign songle1 as responsible person
Jun 4 Assign DCGDDD as responsible person
Jun 8 Removed responsible person DCGDDD
Jun 30 Associated pull request
Jul 1 Associated pull request
wangzheng97
Jul 2 Comments:
Jul 2 Comments:
已移除 CANN 与第三方下载路径上的 --no-check-certificate(wget)与 --insecure(curl),恢复服务器证书校验,相关修改见关联PR


Jul 2 changed custom state from 进行中 to 已完成
Jul 2 Close issue
Jul 2 Added label: resolved
Jul 13 Change title to "[Roadmap|里程碑]: 下载阶段禁用 TLS 校验且缺少完整性验证,可能导致供应链投毒(CWE-295 / CWE-494)", originally titled "[Bug-Report|缺陷反馈]: 下载阶段禁用 TLS 校验且缺少完整性验证,可能导致供应链投毒(CWE-295 / CWE-494)".
Jul 13 Change title to "[Roadmap|里程碑]: 下载阶段禁用 TLS 校验且缺少完整性验证,可能导致供应链投毒(CWE-295 / CWE-494)", originally titled "[Bug-Report|缺陷反馈]: 下载阶段禁用 TLS 校验且缺少完整性验证,可能导致供应链投毒(CWE-295 / CWE-494)".
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
文件:
tools/prepare_env.sh# tools/prepare_env.sh: download_single_cann_package() wget --no-check-certificate --progress=bar:force -O "$target_file" "$resource_url" # Sink (line 623): if curl --insecure -L -# -o "$target_file" "$resource_url"; then # Source (line 66): CANN_TOOLKIT_URL_X86="https://ascend-cann.obs.cn-north-4.myhuaweicloud.com/pypto/cann/8.5.0_release/x86_64/Ascend-cann-toolkit_8.5.0_linux-x86_64.run" # Sink (line 739): if curl --insecure -L -O "$var_value"; then # Source (lines 63-64): JSON_URL="https://gitcode.com/cann-src-third-party/json/releases/download/v3.11.3/json-3.11.3.tar.gz" SECUREC_URL="https://gitcode.com/cann-src-third-party/libboundscheck/releases/download/v1.1.16/libboundscheck-v1.1.16.tar.gz"所以这个部分加上一些完整性校验较为合适。
Environment / 环境信息 (Mandatory / 必填)
无
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
无
Describe the expected behavior / 预期结果 (Mandatory / 必填)
缺乏完整性校验
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)