Details
Description
The regex in MaskSensitiveHelper matching possible xml attributes is too relaxed, and will match wrappers starting with the same characters as the sensitive element.
This f.ex does not correctly mask the password element:
maskSensitiveHelper.addSensitiveElementNames(Set.of("password"))
raw data:
<passwords><password>my secret password</password></passwords>
expected:
<passwords><password>XXX</password></passwords>
actual:
<passwords>XXX</password></passwords>
Attachments
Issue Links
- links to