Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5327

CryptoMapper: insecure default encryption provider

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.10.0
    • 7.0.0-M1
    • None

    Description

      There is an unexpected and insecure default setting for the encryption provider.

      When CryptoMapper is enabled using

      setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));

      or

      CompoundRequestMapper root = new CompoundRequestMapper();
      root.add(new CryptoMapper(getRootRequestMapper(), this));
      setRootRequestMapper(root);

      Wicket uses "new CachingSunJceCryptFactory(ISecuritySettings.DEFAULT_ENCRYPTION_KEY)" as the CryptFactory, with ISecuritySettings.DEFAULT_ENCRYPTION_KEY being "WiCkEt-FRAMEwork". This generates always the same encrypted strings for each of the URLs and is possibly not a secure way to encrypt URLs even if the encryption key is unknown.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            wicket.x.ttp Walter B. Rasmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: