CVE-2015-7225
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.
What to do
Fixed builds are available from Debian, RubyGems: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | ruby-devise-two-factor | Not affected vulnerable_code_not_present | ||
| Debian 12 | ruby-devise-two-factor | Fixed | 2.0.0-1 | DEBIAN-CVE-2015-7225 |
| RubyGems library | devise-two-factor | Fixed | 2.0.0 | GHSA-x489-jjwm-52g7 |
References
- https://github.com/tinfoil/devise-two-factor/blob/master/UPGRADING.md
- http://www.openwall.com/lists/oss-security/2015/09/17/2
- http://www.openwall.com/lists/oss-security/2015/06/20/4
- http://www.securityfocus.com/bid/76789
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798466
- https://github.com/tinfoil/devise-two-factor/issues/45#issuecomment-139335608
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.