Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change password encoder for bcrypt to pbkdf2 #424

Closed
3 of 4 tasks
btkobayashirun opened this issue Aug 21, 2018 · 1 comment
Closed
3 of 4 tasks

Change password encoder for bcrypt to pbkdf2 #424

btkobayashirun opened this issue Aug 21, 2018 · 1 comment

Comments

@btkobayashirun
Copy link
Contributor

btkobayashirun commented Aug 21, 2018

Description

Change the bean of the PasswordEncoder defined in applicationContext.
https://github.com/terasolunaorg/terasoluna-gfw-web-multi-blank/blob/master/projectName-web/src/main/resources/META-INF/spring/applicationContext.xml#L12

The changed password encoder calls Pbkdf2PasswordEncoder via DelegatingPasswordEncoder.

Possible Solutions

1, Create a PasswordEncoder's FactoryBean
2, Set DelegatingPasswordEncoder to be encoded by Pbkdf2 algorithm to FactoryBean.
3, Define bean in applicationContext.xml

Affects Version/s

  • 5.X.X.RELEASE

Fix Version/s

  • 5.5.0
  • 1.6.0 (m-j/)
  • 1.6.0 (m-t/)

Final Solution

Password encoder that can be used with DelegatingPasswordEncoder is determined to be less than recommended by OWASP.

  • Pbkdf2PasswordEncoder (Encoding and matching)
  • BCryptPasswordEncoder (matching only)
  • SCryptPasswordEncoder (matching only)
    Note : SCryptPasswordEncoder only Comment out as dependency needs to be added.

https://www.owasp.org/index.php/Password_Storage_Cheat_Sheet#Impose_infeasible_verification_on_attacker

Migrating Guide

  • Required

Issue Links

yoshikawaa pushed a commit that referenced this issue Aug 29, 2018
* change passwordencoder fot bcrypt to delegating(pbkdf2) #424

* fix definition method of password encoder #424

* add encoder that can be used with delegatingPasswordEncoder #424
@hirakuriy hirakuriy added this to the Oct. Rv1 milestone Sep 3, 2018
btkobayashirun added a commit that referenced this issue Sep 12, 2018
bttanakaysd pushed a commit that referenced this issue Sep 28, 2018
* add comment out the definition of password encoder #424

* fix comment out contents #424

* add dependency of bouncycastle #424

* add description and move location #424

* fix dependency of bouncycastle #424
@hirakuriy hirakuriy modified the milestones: Oct. Rv1, 5.5.0.RELEASE Dec 5, 2018
@hirakuriy
Copy link

@hirakuriy hirakuriy reopened this Feb 21, 2019
@hirakuriy hirakuriy removed this from the 5.5.0.RELEASE milestone Feb 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants