aws / aws/aws-dynamodb-encryption-java
NPE if using CachingMostRecentProvider to decrypt records without "amzn-ddb-meta-id"
- Ngôn ngữ chính
- Java
- Star
- 141
- Fork
- 74
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Problem:
If a user attempts to use a CachingMostRecentProvider to decrypt a record that *does* contain a mat-desc, but that mat-desc does not contain the key value "amzn-ddb-meta-id," they get an NPE. This can happen if a user tries to encrypt with another one of our providers then decrypt with the CachingMostRecentProvider.
### Solution:
Instead, users should get a more friendly error that decryption was unable to succeed.
### Out of scope:
The CachingMostRecentProvider is not intended to interoperate with other providers.
[//]: # (NOTE: If you believe this might be a security issue, please email aws-security@amazon.com instead of creating a GitHub issue. For more details, see the AWS Vulnerability Reporting Guide: https://aws.amazon.com/security/vulnerability-reporting/ )
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ đường dẫn giải mã của CachingMostRecentProvider được mô tả trong issue và theo dõi cách xử lý một mat-desc không có "amzn-ddb-meta-id". Tái hiện trường hợp này bằng một record được mã hóa bởi một Provider khác, sau đó xác minh rằng việc giải mã thất bại với một lỗi dễ hiểu thay vì gây ra NPE.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- security
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100