CVE-2019-5421CWE-367

Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The `Devise::Models::Lockable` class, more…

published April 3, 2019

CVSS
—
EPSS
2%
Percentile
75.0
In the wild
Unconfirmed
What it is

⚠️ A single poorly-timed login attempt could leave your users wide open! In the `Devise::Models::Lockable` class, multiple concurrent requests can confuse the system, allowing attackers to successively hammer away without getting blocked. 🔥 Think of it like a bouncer at a club who fails to notice when a group of party-goers all try to enter at once — instead of blocking the troublemaker, they let them slip right through the crowd! This means an attacker could continuously attempt to guess passwords without being locked out, making brute force attacks alarmingly easy. If an attacker gains access, they could steal sensitive information or perform unauthorized actions, compromising your entire application!

Put simply

Think of it like a bouncer at a club who fails to notice when a group of party-goers all try to enter at once — instead of blocking the troublemaker, they let them slip right through the crowd! The vulnerability occurs in the `#increment_failed_attempts` method, which doesn't properly handle multiple simultaneous login requests. This flaw allows attackers to bypass the locking mechanism intended to thwart brute force attempts.

What to do

This means an attacker could continuously attempt to guess passwords without being locked out, making brute force attacks alarmingly easy. If an attacker gains access, they could steal sensitive information or perform unauthorized actions, compromising your entire application! Upgrade Devise to version 4.6.0 or later right away to close this hole. Additionally, consider implementing rate limiting or IP address blocking to enhance protection against brute force attacks. Regularly audit your security mechanisms to ensure no other similar issues lurk around! You've got this! With a few simple steps, you can shore up your defenses and keep those attackers at bay. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01556 · 75.0th percentile
Weakness
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition
Published
2019-04-03T14:21Z
EPSS history
Timeline
  • 03 APR 14:21Z
    Plataformatec Devise version 4.5.0 and earlier, using the lockable module contains a CWE-367 vulnerability in The `Devise::Models::Lockable` class, more…
    cvelistv5