Time-Based One-Time Password (TOTP) Reuse Affecting devise-two-factor package, versions < 2.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.23% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-Based One-Time Password (TOTP) Reuse vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-DEVISETWOFACTOR-20239
  • published16 Sept 2015
  • disclosed16 Sept 2015
  • creditViliam Holub

Introduced: 16 Sep 2015

CVE-2015-7225  (opens in a new tab)
CWE-330  (opens in a new tab)
First added by Snyk

Overview

devise-two-factor is a two-factor authentication addition to devise.

Affected versions do not mark used TOTP (Time-Based One-Time Password) verification codes once used, and allow their reuse during the timestep period of the code. This can be exploited by an attacker with knowledge of the authentication credentials AND access to the TOTP verification code that was just used.

CVSS Scores

version 3.1