CVE-2015-7225
Tinfoil Devise-two-factor does not "burn" a successfully validated one-time password (OTP)
Reported by mitre · Published September 6, 2017
devise-two-factor is fixed in 2.0.0 (RubyGems)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| devise-two-factor | RubyGems | 2.0.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| RubyGems | devise-two-factor | 0 |
Timeline
- Sep 6, 2017 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Aug 6, 2024 CVE Updated
- Apr 10, 2026 Security Advisory
- Oct 12, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2015-7225
vulnetix vdb fixes CVE-2015-7225
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2015-7225/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [oss-security] 20150917 Re: CVE Request: TOTP Replay Attack in Ruby library mailing-listx_refsource_MLIST
- [oss-sercurity] 20150620 CVE Request: MITM & Shoulder-surfing vuln in Ruby OTP/HOTP/TOTP library "ROPT" mailing-listx_refsource_MLIST
- 76789 vdb-entryx_refsource_BID
- x_refsource_MISC
- x_refsource_CONFIRM
- https://github.com/tinfoil/devise-two-factor/issues/30 discussion
- https://github.com/tinfoil/devise-two-factor/pull/43 fix