VYPR
High severityNVD Advisory· Published May 7, 2020· Updated Aug 4, 2024

Improper Restriction of Excessive Authentication Attempts in Sorcery

CVE-2020-11052

Description

In Sorcery before 0.15.0, there is a brute force vulnerability when using password authentication via Sorcery. The brute force protection submodule will prevent a brute force attack for the defined lockout period, but once expired, protection will not be re-enabled until a user or malicious actor logs in successfully. This does not affect users that do not use the built-in brute force protection submodule, nor users that use permanent account lockout. This has been patched in 0.15.0.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
sorceryRubyGems
< 0.15.00.15.0

Affected products

1

Patches

1
0f116d223826

Fix brute force vuln due to callbacks not being ran (#235)

https://github.com/Sorcery/sorceryJosh BukerMay 2, 2020via ghsa
1 file changed · +4 4
  • lib/sorcery/model.rb+4 4 modified
    @@ -102,10 +102,6 @@ def authenticate(*credentials, &block)
     
             set_encryption_attributes
     
    -        unless user.valid_password?(credentials[1])
    -          return authentication_response(user: user, failure: :invalid_password, &block)
    -        end
    -
             if user.respond_to?(:active_for_authentication?) && !user.active_for_authentication?
               return authentication_response(user: user, failure: :inactive, &block)
             end
    @@ -118,6 +114,10 @@ def authenticate(*credentials, &block)
               end
             end
     
    +        unless user.valid_password?(credentials[1])
    +          return authentication_response(user: user, failure: :invalid_password, &block)
    +        end
    +
             authentication_response(user: user, return_value: user, &block)
           end
     
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.