Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 3.0.5, 3.1.0.RC1
    • Fix Version/s: 3.0.6, 3.1.0.RC3
    • Component/s: Core
    • Labels:
    • Environment:
      Affects EBCDIC Platforms _IBM z?OS and AS/400 are only ones I know of

      Description

      Package: org.springframework.security.authentication.encoding
      LdapShaPasswordEncoding.java

      Fix - line 104: has been tested with "org.springframework.security.core_3.0.3.RELEASE" on z/OS 1.12
      was: return prefix + new String(Base64.encode(hash));
      change: return prefix + new String(Base64.encode(hash), "UTF-8");

      MD4PasswordEncoder.java also looks like it has same issue.

        Activity

        Hide
        Luke Taylor added a comment -

        Thanks for the report. I've updated password encoders to replace calls to new String(byte[]) with Utf8 encoded values.

        Show
        Luke Taylor added a comment - Thanks for the report. I've updated password encoders to replace calls to new String(byte[]) with Utf8 encoded values.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Bob Markle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: