CVE-2020-8911 CBC padding oracle in AWS S3 Crypto SDK for GoLang
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- Cloud Platforms
Description
A padding oracle vulnerability exists in the AWS S3 Crypto SDK for GoLang versions prior to V2. The SDK allows users to encrypt files with AES-CBC without computing a Message Authentication Code (MAC), which then allows an attacker who has write access to the target's S3 bucket and can observe whether or not an endpoint with access to the key can decrypt a file, they can reconstruct the plaintext with (on average) 128*length (plaintext) queries to the endpoint, by exploiting CBC's ability to manipulate the bytes of the next block and PKCS5 padding errors. It is recommended to update your SDK to V2 or later, and re-encrypt your files.
Upgrade path
3 packages: 2 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| AWS github.com/aws/aws-sdk-go(Go) | < 1.34.0; All versions | 1.34.0 | Partially fixed |
| Amazon aws s3 crypto sdk | < 2.0 | 2.0 | Fixed |
| Google AWS S3 Crypto SDK for GoLang | >= stable, <= V1 | after V1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| AWS github.com/aws/aws-sdk-go(Go) | < 1.34.0 | 1.34.0 |
| AWS github.com/aws/aws-sdk-go(Go) | All versions | No fix listed |
| Amazon aws s3 crypto sdk | < 2.0 | 2.0 |
| Google AWS S3 Crypto SDK for GoLang | >= stable, <= V1 | No fix listed |
References
- github.com exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- aws.amazon.com vendor-advisory
- bugzilla.redhat.com
- github.com product
- github.com exploit
- pkg.go.dev
- github.com