CVE-2015-7225 Tinfoil Devise-two-factor does not "burn" a successfully validated one-time password (OTP)

Medium 5.3 Published Updated

Attackers can bypass two-factor authentication by replaying one-time passwords, allowing unauthorized account access if credentials are compromised.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2015-7225?

CVE-2015-7225 is a medium-severity vulnerability in n/a, published on 6 Sep 2017. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Tinfoil Devise-two-factor before 2.0.0 does not strictly follow section 5.2 of RFC 6238 and does not "burn" a successfully validated one-time password (aka OTP), which allows remote or physically proximate attackers with a target user's login credentials to log in as said user by obtaining the OTP through performing a man-in-the-middle attack between the provider and verifier, or shoulder surfing, and replaying the OTP in the current time-step.

Weakness: CWE-254

Which versions are affected by CVE-2015-7225?

2 open source packages ship an affected version, including devise-two-factor. It affects 1 product.

PackageAffectedFixed in
devise-two-factor RubyGemsAll versions2.0.0
devise-two-factor RubyGemsAll versions2.0.0

Products include Tinfoilsecurity Devise-Two-Factor.

How do I fix CVE-2015-7225?

Upgrade devise-two-factor to 2.0.0 or later.

Is CVE-2015-7225 being exploited?

There is no known exploitation of CVE-2015-7225 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2015-7225, GHSA-x489-jjwm-52g7.

Is CVE-2015-7225 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free