[PATCH] remove ability to trust not validated macro signatures in high security
authorSarper Akdemir <sarper.akdemir@allotropia.de>
Tue, 11 Jun 2024 10:39:36 +0000 (12:39 +0200)
committerRene Engelhard <rene@debian.org>
Wed, 13 Aug 2025 15:35:20 +0000 (17:35 +0200)
commit4349f71a351d3b360cf4006f29a8f2e535a9d9e7
tree4c87feaab9643d67cf5e76307e821aee93f50a1c
parent5ccb5f19667d40df3803d7f97fc9ced6214a91cb
[PATCH] remove ability to trust not validated macro signatures in high security

Giving the user the option to determine if they should trust an
invalid signature in HIGH macro security doesn't make sense.
CommonName of the signature is the most prominent feature presented
and the CommonName of a certificate can be easily forged for an
invalid signature, tricking the user into accepting an invalid
signature.

in the HIGH macro security setting only show the pop-up to
enable/disable signed macro if the certificate signature can be
validated.

cherry-picked without UI/String altering bits for 24-2

Change-Id: Ia766fb701660160ee5dc9f6e077f4012a44ce721
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168667
Tested-by: Jenkins
Reviewed-by: Sarper Akdemir <sarper.akdemir@allotropia.de>
(cherry picked from commit 2beaa3be3829303e948d401f492dbfd239d60aad)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169525
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171279
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171312
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Gbp-Pq: Name remove-ability-to-trust-not-validated-macro-signatures-in-high-security.diff
sfx2/source/doc/docmacromode.cxx