登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
9月17日,Gitee Xtreme 极智AI重磅发布,来Gitee直播间一起探索AI时代的软件研发新模式
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
3
Star
0
Fork
10
src-openEuler
/
aws-sdk-java
代码
Issues
2
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
CVE-2022-31159
已挂起
#I5HDOF
CVE和安全问题
openeuler-ci-bot
拥有者
创建于
2022-07-16 06:26
一、漏洞信息 漏洞编号:[CVE-2022-31159](https://nvd.nist.gov/vuln/detail/CVE-2022-31159) 漏洞归属组件:[aws-sdk-java](https://gitee.com/src-openeuler/aws-sdk-java) 漏洞归属的版本:1.11.3 CVSS V3.0分值: BaseScore:6.5 Medium Vector:CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 漏洞简述: The AWS SDK for Java enables Java developers to work with Amazon Web Services. A partial-path traversal issue exists within the `downloadDirectory` method in the AWS S3 TransferManager component of the AWS SDK for Java v1 prior to version 1.12.261. Applications using the SDK control the `destinationDirectory` argument, but S3 object keys are determined by the application that uploaded the objects. The `downloadDirectory` method allows the caller to pass a filesystem object in the object key but contained an issue in the validation logic for the key name. A knowledgeable actor could bypass the validation logic by including a UNIX double-dot in the bucket key. Under certain conditions, this could permit them to retrieve a directory from their S3 bucket that is one level up in the filesystem from their working directory. This issue’s scope is limited to directories whose name prefix matches the destinationDirectory. E.g. for destination directory`/tmp/foo`, the actor can cause a download to `/tmp/foo-bar`, but not `/tmp/bar`. If `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` is used to download an untrusted buckets contents, the contents of that bucket can be written outside of the intended destination directory. Version 1.12.261 contains a patch for this issue. As a workaround, when calling `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`, pass a `KeyFilter` that forbids `S3ObjectSummary` objects that `getKey` method return a string containing the substring `..` . 漏洞公开时间:2022-07-16 02:15 漏洞创建时间:2022-07-16 06:26:47 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-31159 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: AWS SDK for Java 使 Java 开发人员能够使用 Amazon Web Services。在版本 1.12.261 之前的 AWS SDK for Java v1 的 AWS S3 TransferManager 组件中的“downloadDirectory”方法中存在部分路径遍历问题。使用 SDK 的应用程序控制 `destinationDirectory` 参数,但 S3 对象键由上传对象的应用程序确定。`downloadDirectory` 方法允许调用者在对象键中传递文件系统对象,但在键名的验证逻辑中包含问题。知识渊博的参与者可以通过在存储桶键中包含一个 UNIX 双点来绕过验证逻辑。在某些情况下,这可能允许他们从 S3 存储桶中检索一个目录,该目录在其工作目录的文件系统中上一级。此问题的范围仅限于名称前缀与destinationDirectory 匹配的目录。例如,对于目标目录`/tmp/foo`,参与者可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。演员可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。演员可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。 openEuler评分: 6.5 Vector:CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 受影响版本排查(受影响/不受影响): 1.master(1.11.3):受影响 2.openEuler-20.03-LTS-SP1(1.11.3):受影响 3.openEuler-20.03-LTS-SP3(1.11.3):受影响 4.openEuler-22.03-LTS-Next(1.11.3):受影响 5.openEuler-22.03-LTS(1.11.3):受影响 6.openEuler-22.09:受影响 修复是否涉及abi变化(是/否): 1.master(1.11.3):否 2.openEuler-20.03-LTS-SP1(1.11.3):否 3.openEuler-20.03-LTS-SP3(1.11.3):否 4.openEuler-22.03-LTS-Next(1.11.3):否 5.openEuler-22.03-LTS(1.11.3):否 6.openEuler-22.09:否
一、漏洞信息 漏洞编号:[CVE-2022-31159](https://nvd.nist.gov/vuln/detail/CVE-2022-31159) 漏洞归属组件:[aws-sdk-java](https://gitee.com/src-openeuler/aws-sdk-java) 漏洞归属的版本:1.11.3 CVSS V3.0分值: BaseScore:6.5 Medium Vector:CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 漏洞简述: The AWS SDK for Java enables Java developers to work with Amazon Web Services. A partial-path traversal issue exists within the `downloadDirectory` method in the AWS S3 TransferManager component of the AWS SDK for Java v1 prior to version 1.12.261. Applications using the SDK control the `destinationDirectory` argument, but S3 object keys are determined by the application that uploaded the objects. The `downloadDirectory` method allows the caller to pass a filesystem object in the object key but contained an issue in the validation logic for the key name. A knowledgeable actor could bypass the validation logic by including a UNIX double-dot in the bucket key. Under certain conditions, this could permit them to retrieve a directory from their S3 bucket that is one level up in the filesystem from their working directory. This issue’s scope is limited to directories whose name prefix matches the destinationDirectory. E.g. for destination directory`/tmp/foo`, the actor can cause a download to `/tmp/foo-bar`, but not `/tmp/bar`. If `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` is used to download an untrusted buckets contents, the contents of that bucket can be written outside of the intended destination directory. Version 1.12.261 contains a patch for this issue. As a workaround, when calling `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`, pass a `KeyFilter` that forbids `S3ObjectSummary` objects that `getKey` method return a string containing the substring `..` . 漏洞公开时间:2022-07-16 02:15 漏洞创建时间:2022-07-16 06:26:47 漏洞详情参考链接: https://nvd.nist.gov/vuln/detail/CVE-2022-31159 漏洞分析指导链接: https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md 漏洞数据来源: 其它 漏洞补丁信息: <details> <summary>详情</summary> 无 </details> 二、漏洞分析结构反馈 影响性分析说明: AWS SDK for Java 使 Java 开发人员能够使用 Amazon Web Services。在版本 1.12.261 之前的 AWS SDK for Java v1 的 AWS S3 TransferManager 组件中的“downloadDirectory”方法中存在部分路径遍历问题。使用 SDK 的应用程序控制 `destinationDirectory` 参数,但 S3 对象键由上传对象的应用程序确定。`downloadDirectory` 方法允许调用者在对象键中传递文件系统对象,但在键名的验证逻辑中包含问题。知识渊博的参与者可以通过在存储桶键中包含一个 UNIX 双点来绕过验证逻辑。在某些情况下,这可能允许他们从 S3 存储桶中检索一个目录,该目录在其工作目录的文件系统中上一级。此问题的范围仅限于名称前缀与destinationDirectory 匹配的目录。例如,对于目标目录`/tmp/foo`,参与者可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。演员可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。演员可以导致下载到`/tmp/foo-bar`,但不能下载到`/tmp/bar`。如果 `com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory` 用于下载不受信任的存储桶内容,则该存储桶的内容可以写入预期目标目录之外。版本 1.12.261 包含针对此问题的补丁。作为一种解决方法,当调用`com.amazonaws.services.s3.transfer.TransferManager::downloadDirectory`时,传递一个禁止`S3ObjectSummary`对象的`KeyFilter`,`getKey`方法返回一个包含子字符串`..`的字符串。 openEuler评分: 6.5 Vector:CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 受影响版本排查(受影响/不受影响): 1.master(1.11.3):受影响 2.openEuler-20.03-LTS-SP1(1.11.3):受影响 3.openEuler-20.03-LTS-SP3(1.11.3):受影响 4.openEuler-22.03-LTS-Next(1.11.3):受影响 5.openEuler-22.03-LTS(1.11.3):受影响 6.openEuler-22.09:受影响 修复是否涉及abi变化(是/否): 1.master(1.11.3):否 2.openEuler-20.03-LTS-SP1(1.11.3):否 3.openEuler-20.03-LTS-SP3(1.11.3):否 4.openEuler-22.03-LTS-Next(1.11.3):否 5.openEuler-22.03-LTS(1.11.3):否 6.openEuler-22.09:否
评论 (
6
)
登录
后才可以发表评论
状态
已挂起
待办的
已挂起
进行中
已完成
已拒绝
负责人
未设置
small_leek
small_leek
负责人
协作者
+负责人
+协作者
标签
CVE/UNFIXED
sig/sig-Java
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (25)
标签 (21)
master
openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-24.09
openEuler-25.03
openEuler-25.09
openEuler-23.03
openEuler-23.09
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-Next
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-20.09
openEuler-21.03
openEuler-21.09
openEuler-22.03-LTS
openEuler-22.09
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200928
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/aws-sdk-java.git
git@gitee.com:src-openeuler/aws-sdk-java.git
src-openeuler
aws-sdk-java
aws-sdk-java
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册