Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS02NHg0LTloYzYtcjJoNs4AAtUo

Microsoft: CBC Padding Oracle in Azure Blob Storage Encryption Library

Summary

The Azure Storage Encryption library in Java and other languages is vulnerable to a CBC Padding Oracle attack, similar to CVE-2020-8911. The library is not vulnerable to the equivalent of CVE-2020-8912, but only because it currently only supports AES-CBC as encryption mode.

Severity

Moderate - The vulnerability poses insider risks/privilege escalation risks, circumventing controls for stored data.

Further Analysis

The Java Azure Blob Storage Encryption SDK is impacted by an issue that can result in loss of confidentiality and message forgery. The attack requires write access to the container in question, and that the attacker has access to an endpoint that reveals decryption failures (without revealing the plaintext) and that when encrypting the CBC option was chosen as content cipher.

This advisory describes the plaintext revealing vulnerabilities in the Java Azure Blob Storage Encryption SDK, with a similar issue in the other blob storage SDKs being present as well.

In the current version of the Azure Blob Storage crypto SDK, the only algorithm option that allows users to encrypt files is to AES-CBC, without computing a MAC on the data.

This exposes a padding oracle vulnerability: If the attacker has write access to the blob container bucket and can observe whether or not an endpoint with access to the key can decrypt a file (without observing the file contents that the endpoint learns in the process), 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.

Timeline

Date reported: March 29 2022
Date preview: June 16 2022
Date GA: July 11 2022
Date disclosed: July 17 2022

Permalink: https://github.com/advisories/GHSA-64x4-9hc6-r2h6
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02NHg0LTloYzYtcjJoNs4AAtUo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 2 years ago
Updated: 11 months ago


CVSS Score: 4.7
CVSS vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Identifiers: GHSA-64x4-9hc6-r2h6, CVE-2022-30187
References: Blast Radius: 1.0

Affected Packages

nuget:Azure.Storage.Blobs
Dependent packages: 0
Dependent repositories: 0
Downloads: 225,352,884 total
Affected Version Ranges: < 12.13.0
Fixed in: 12.13.0
All affected versions: 12.0.0, 12.1.0, 12.2.0, 12.3.0, 12.4.0, 12.4.1, 12.4.2, 12.4.3, 12.4.4, 12.5.0, 12.5.1, 12.6.0, 12.7.0, 12.8.0, 12.8.1, 12.8.2, 12.8.3, 12.8.4, 12.9.0, 12.9.1, 12.10.0, 12.11.0, 12.12.0
All unaffected versions: 12.13.0, 12.13.1, 12.14.0, 12.14.1, 12.15.0, 12.15.1, 12.16.0, 12.17.0, 12.18.0, 12.19.0, 12.19.1
nuget:Azure.Storage.Queues
Dependent packages: 0
Dependent repositories: 0
Downloads: 63,937,257 total
Affected Version Ranges: < 12.11.0
Fixed in: 12.11.0
All affected versions: 12.0.0, 12.1.0, 12.1.1, 12.2.0, 12.3.0, 12.3.1, 12.3.2, 12.4.0, 12.4.1, 12.4.2, 12.5.0, 12.6.0, 12.6.1, 12.6.2, 12.7.0, 12.8.0, 12.9.0, 12.10.0
All unaffected versions: 12.11.0, 12.11.1, 12.12.0, 12.13.0, 12.13.1, 12.14.0, 12.15.0, 12.16.0, 12.17.0, 12.17.1