2017 © Pedro Peláez
 

symfony-bundle authentication-guard-bundle

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

image

metaclass-nl/authentication-guard-bundle

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  • Tuesday, September 19, 2017
  • by metaclass-nl
  • Repository
  • 2 Watchers
  • 12 Stars
  • 2,812 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 2 Open issues
  • 15 Versions
  • 7 % Grown

The README.md

Authentication Guard for Symfony 2

This bundle is no longer maintained and the repository will be archived. Symfony has protection against brute force attachs of its own., (*1)

INTRODUCTION

The OWASP Guide states "Applications MUST protect credentials from common authentication attacks as detailed in the Testing Guide". Symfony 2 has a firewall and a series of authentication components, but none to protect against brute force and dictionary attacks. This Bundle aims to protect user credentials from these authentication attacks. It is based on the "Tresholds Governer" described in the OWASP Guide., (*2)

FEATURES

  • Blocks the primary authentication route by both username and client ip address for which authentication failed too often,, (*3)

  • To hide weather an account actually exists for a username, any username that is tried too often may be blocked, regardless of the existence and status of an account with that username,, (*4)

  • Makes a logical difference between failed login lockout (done by this bundle) and eventual administrative lockout (may be done by the UserBundle), so that re-enabling all usernames en masse does not unlock administratively locked users (OWASP requirement)., (*5)

  • Automatic release of username on authentication success,, (*6)

  • Stores counters instead of individual requests to prevent database flooding from brute force attacks,, (*7)

REQUIREMENTS

This bundle is for the symfony framework and this version requires Symfony >=2.8.1. (for Symfony ~2.3 use v0.3, for Symfony 2.7 use v0.4) Requires metaclass-nl/tresholds-governor 0.3@dev but the service configuration still requires Doctrine DBAL >=2.3., (*8)

RELEASE NOTES

This is a pre-release version under development., (*9)

Currently the Bundle can only protect form-based authentication using the security.authentication.listener.form service (Default: Symfony\Component\Security\Http\Firewall\UsernamePasswordFormAuthenticationListener)., (*10)

Throws specific types of Exceptions for different situations (for logging purposes) and leaves it to the login form to hide differences between them that should not be reported to users., (*11)

May be vurnerable to enumeration of usernames through timing attacks because of differences in database query performance for frequently and infrequently used usernames. This is mitigated by sleeping until a fixed execution time is reached. Under normal circomstances that should be sufficient if the fixedExecutionSeconds is set long enough, but under high (database) server loads when performance degrades, under specific conditions information may still be extractable by timing. Furthermore, the measures against timing attacks where not tested for practical effectiveness., (*12)

Tested with MySQL 5.5. and 5.7. Tested with PHP7.0.1. Tested with Symfony 3.0.1 and 3.1.3 . (without crsf token) Tested on Symfony 2.8.1 with FOSUserBundle 1.3.6 and 6ccff96 (> 2.0.0 alpha3). Tested on Symfony 3.2.12 and 3.3.5 with FOSUserBundle 2.0.1 and php 7.0.18., (*13)

DOCUMENTATION

SUPPORT

MetaClass offers help and support on a commercial basis with the application and extension of this bundle and additional security measures., (*14)

http://www.metaclass.nl/site/index_php/Menu/10/Contact.html, (*15)

Unless notified otherwise Copyright (c) 2014 MetaClass Groningen, (*16)

This bundle is under the MIT license. See the complete license in the bundle:, (*17)

Resources/meta/LICENSE

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*18)

The Versions

19/09 2017

dev-0_4

dev-0_4

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

v0.4.2

0.4.2.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

dev-master

9999999-dev

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

dev-0_5

dev-0_5

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

v0.5.0

0.5.0.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

dev-0_3

dev-0_3

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

19/09 2017

v0.3.4

0.3.4.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

13/01 2016

v0.4.1

0.4.1.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

13/01 2016

v0.3.3

0.3.3.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

26/12 2015

v0.4.0

0.4.0.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

25/12 2015

v0.3.2

0.3.2.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

23/12 2015

v0.3.1

0.3.1.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

10/05 2015

v0.3

0.3.0.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

25/07 2014

v0.2

0.2.0.0

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack

08/02 2014

v0.1

0.1.0.0 http://friendsofsymfony.github.com

Authentication Guard for Symfony 2, aims to protect authentication against brute force and dictionary attacks

  Sources   Download

MIT

The Requires

 

authentication security login brute force dictionary attack