[MDEV-13696] Security flaw in MariaDB encryption Created: 2017-09-01 Updated: 2020-12-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Encryption |
| Affects Version/s: | 10.1, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Glushchenko | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hi, I've been exploring implementation of MariaDB tablespace, binlog, etc While encryption plugin may allow to choose or override cipher mode, Here is where the issue comes. Both CBC and CTR taking IV to encrypt a Here is the link explaining why using predictable IV in CBC is One of the possible ways to add randomness for IV is to encrypt it. |
| Comments |
| Comment by Sergei Golubchik [ 2017-09-15 ] |
|
You're right that generally one should not use predictable IVs with CBC. But I don't think it applies in our case, the first block of the plaintext — first 16 bytes on the page — are part of the page header and not under user control. Having said that, I still don't see why AWS plugin couldn't support CTR. We'll do it (unless there's a good reason not to, that I'm not aware of), thanks. |