This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 57e80e9b8b Be more explicit about security considerations for EncryptInterceptor
57e80e9b8b is described below
commit 57e80e9b8bb7cb563929db47fd24fe787251f478
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Jul 7 12:20:13 2026 +0100
Be more explicit about security considerations for EncryptInterceptor
---
webapps/docs/changelog.xml | 6 ++++++
webapps/docs/config/cluster-interceptor.xml | 14 +++++++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b1e0fc4920..b59ddeb584 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -131,6 +131,12 @@
<code>EncryptInterceptor</code> to <code>AES/GCM/NoPadding</code>. This
is a breaking change for the <code>EncryptInterceptor</code>. (markt)
</add>
+ <add>
+ Expand the documentation for the <code>EncryptInterceptor</code> to be
+ more explicit regarding the security weaknesses of some supported
+ algorithms. Also explicitly state that the replay protection is only
+ effective for non-malleable algorithms. (markt)
+ </add>
</changelog>
</subsection>
</section>
diff --git a/webapps/docs/config/cluster-interceptor.xml b/webapps/docs/config/cluster-interceptor.xml
index e5834d3958..463ea477e5 100644
--- a/webapps/docs/config/cluster-interceptor.xml
+++ b/webapps/docs/config/cluster-interceptor.xml
@@ -241,8 +241,16 @@
<p>
The EncryptInterceptor uses the timestamp of the message to provide replay
protection. For this to be effective, clock skew between cluster nodes
- should be minimised. If not, it is likely a high proportion of valid
- messages will be rejected.
+ should be minimised. If the clock skew is not minimised, it is likely that
+ a high proportion of valid messages will be rejected.
+ </p>
+ <p>
+ The replay protection is only effective if the configured encryption
+ algorithm is not malleable. The default algorithm
+ (<code>AES/GCM/NoPadding</code>) is not malleable and replay protection
+ will be effective in the default configuration. Some supported algorithms -
+ such as <code>AES/CBC/PKCS5Padding</code> - are malleable and the replay
+ protection will not be effective with such algoriths.
</p>
<attributes>
<attribute name="encryptionAlgorithm" required="false">
@@ -255,7 +263,7 @@
<p>The EncryptInterceptor currently supports the following standard
<a href="https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation">block-cipher modes</a>:
CBC, CFB, OFB and GCM. Of these, it is recommended that GCM is always
- used.</p>
+ used due to security weaknesses with the other block-cipher modes.</p>
<p>The length of the key will specify the flavor of the encryption
algorithm to be used, if applicable (e.g. AES-128 versus AES-256).</p>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.