Skip to content

Commit 4f1d81a

Browse files
Update metadata for v3.15.1 (#1157)
1 parent b5ddfad commit 4f1d81a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

python-checks/src/main/resources/org/sonar/l10n/py/rules/python/S5542.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
<p>Encryption operation mode and the padding scheme should be chosen appropriately to guarantee data confidentiality, integrity and authenticity:</p>
1+
<p>Encryption operations should use a secure mode and padding scheme so that confidentiality and integrity can be guaranteed.</p>
22
<ul>
33
<li> For block cipher encryption algorithms (like AES):
44
<ul>
5+
<li> The ECB (Electronic Codebook) cipher mode doesn’t provide serious message confidentiality: under a given key any given plaintext block
6+
always gets encrypted to the same ciphertext block. This mode never be used. </li>
7+
<li> The CBC (Cipher Block Chaining) mode by itself provides only data confidentiality. This cipher mode is also vulnerable to <a
8+
href="https://en.wikipedia.org/wiki/Padding_oracle_attack">padding oracle attacks</a> when used with padding. Using CBC along with Message
9+
Authentication Code can provide data integrity and should prevent such attacks. In practice the implementation has many pitfalls and it’s
10+
recommended to avoid CBC with padding completely. </li>
511
<li> The GCM (Galois Counter Mode) mode which <a href="https://en.wikipedia.org/wiki/Galois/Counter_Mode#Mathematical_basis">works
612
internally</a> with zero/no padding scheme, is recommended, as it is designed to provide both data authenticity (integrity) and confidentiality.
713
Other similar modes are CCM, CWC, EAX, IAPM and OCB. </li>
8-
<li> The CBC (Cipher Block Chaining) mode by itself provides only data confidentiality, it’s recommended to use it along with Message
9-
Authentication Code or similar to achieve data authenticity (integrity) too and thus to <a
10-
href="https://en.wikipedia.org/wiki/Padding_oracle_attack">prevent padding oracle attacks</a>. </li>
11-
<li> The ECB (Electronic Codebook) mode doesn’t provide serious message confidentiality: under a given key any given plaintext block always gets
12-
encrypted to the same ciphertext block. This mode should not be used. </li>
1314
</ul> </li>
1415
<li> For RSA encryption algorithm, the recommended padding scheme is OAEP. </li>
1516
</ul>

sonarpedia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"languages": [
44
"PY"
55
],
6-
"latest-update": "2022-06-10T14:08:35.690806Z",
6+
"latest-update": "2022-06-22T13:40:30.905937Z",
77
"options": {
88
"no-language-in-filenames": true,
99
"preserve-filenames": true

0 commit comments

Comments
 (0)