취약한 해시 알고리즘으로 비밀번호 저장
Use of Password Hash With Insufficient Computational Effort
Previous제한 없는 위험한 파일 유형의 업로드NextXMLDecoder를 이용한 불안전한 역직렬화 (Insecure Deserialization using XMLDecoder)
Last updated
Use of Password Hash With Insufficient Computational Effort
Last updated
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth, DataSource dataSource) throws Exception {
auth.jdbcAuthentication()
.dataSource(dataSource)
.usersByUsernameQuery("SELECT * FROM users WHERE username = ?")
.passwordEncoder(new StandardPasswordEncoder()); // 취약한 해싱 알고리즘 사용
}@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth, DataSource dataSource) throws Exception {
auth.jdbcAuthentication()
.dataSource(dataSource)
.usersByUsernameQuery("SELECT * FROM users WHERE username = ?")
.passwordEncoder(new BCryptPasswordEncoder()); // 안전한 해싱 알고리즘 사용
}