Skip to content

Harden AES-CBC decryption against padding-oracle and timing side channels#253

Draft
jguz-pubnub wants to merge 1 commit into
masterfrom
swift-sec-fixes
Draft

Harden AES-CBC decryption against padding-oracle and timing side channels#253
jguz-pubnub wants to merge 1 commit into
masterfrom
swift-sec-fixes

Conversation

@jguz-pubnub

@jguz-pubnub jguz-pubnub commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

fix: validate IV length and ciphertext block-alignment before decrypting (in-memory + streaming paths)

fix: return a uniform decryptionFailure that never exposes the underlying CommonCrypto status

fix: guard LegacyCryptor random-IV path against payloads too short to contain an IV

@pubnub pubnub deleted a comment from coderabbitai Bot Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant