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

Add IP address to FAILED LOGIN for Fail2Ban #3285 #50 #653 #3291

Closed
wants to merge 1 commit into from

Conversation

chris001
Copy link
Contributor

@chris001 chris001 commented Mar 18, 2017

Add IP address to FAILED LOGIN log entry so that Fail2Ban will be able to detect hackers and ban their IP from logging in for some time.
In response to requests in issue #3285, #50, and #653, and possibly others over the years.

Description

Security fix for the age of widespread hacking and data theft.

Motivation and Context

Hackers could previously try logging in with a billion passwords and eventually guess it right and break in.

How To Test This

Try to login with incorrect password.
Look at PHP log for FAILED LOGIN entry.
It should say the IP address on that log line.
Users will need to add a setting to Fail2Ban which is a string to match in the log, and cause Fail2Ban to increase a counter for the SuiteCRM app, so that X failed logins from the same IP, within Y minutes, will cause Fail2Ban to ban the hacker's IP address for Z minutes.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

Add IP address to FAILED LOGIN log entry so that Fail2Ban will be able to detect hackers and ban their IP from logging in for some time.
In response to requests in issue salesagility#3285 and several other issues over the years.
@chris001 chris001 changed the title Add IP address to FAILED LOGIN for Fail2Ban #3285 Add IP address to FAILED LOGIN for Fail2Ban #3285 #50 #653 Mar 18, 2017
@Dillon-Brown
Copy link
Contributor

please log ip adress

@Dillon-Brown Dillon-Brown added the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Jun 15, 2017
@pgorod
Copy link
Contributor

pgorod commented Jul 21, 2017

Let's not forget this PR by @JimMackin that is merged into a feature branch, but not master...

#2897 Add user lockout and user unlock options

@sergio91pt I remember you mentioned how susceptible SuiteCRM was to brute-force attacks a while ago, you might be interested in this PR too.

Any special reason why this isn't merged, or is it just lack of time? Maybe it is simply forgotten, because it doesn't show as an open PR (already merged)...

@pgorod
Copy link
Contributor

pgorod commented Aug 31, 2017

@daniel-samson @gymad maybe now is a good time to merge this one?

And Jim Mackin's #2897 ?

@pgorod pgorod mentioned this pull request Sep 2, 2017
6 tasks
@Dillon-Brown Dillon-Brown removed the Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member label Nov 24, 2017
@Dillon-Brown
Copy link
Contributor

Superseded by merged PR #4190

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants