Best way for a Spring MVC web app to detect a brute force attack?

前端 未结 5 1699
一生所求
一生所求 2020-12-29 07:34

Are there any features specifically in Spring 3.0 MVC that would help implementing detection of a brute force attack on the authentication/login page of a web app?

5条回答
  •  不思量自难忘°
    2020-12-29 07:43

    The short answer is no, as far as I know Spring 3.0 MVC does not have anything to help you detect a brute force attack. I don't believe spring security 3.0 has anything either for that matter.

    However, you should be able to implement something yourself by extending some of the UserDetailsServices.

    It is sometimes advisable to record all login attempts, successful or not. If you're recording all failures (like in a database) you should be able to determine if someone/something is attempting a brute force attack on your site.

    You should consider throttling login attempts like @road to yamburg described.

提交回复
热议问题