Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9067

MaskSensitiveHelper incorrectly masks wrapper element

    XMLWordPrintableJSON

Details

    • Novice
    • Patch

    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

          Activity

            People

              Unassigned Unassigned
              trustlydaniel Daniel Holm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.25h
                  0.25h
                  Remaining:
                  Remaining Estimate - 0.25h
                  0.25h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified