WP 2FA <= 2.2.1 - Time-Based TOTP attack to Sensitive Information Exposure

Observable Response Discrepancy
CVE CVE-2022-2891
CVSS Medium (5.3)
Publicly Published September 14, 2022
Last Updated January 22, 2024
Researcher Calvin Alkan
Description

The WP 2FA plugin for WordPress is vulnerable to Sensitive Information Exposure in versions up to, and including, 2.2.1 due to the use of a linear-time comparison operator when comparing token hashes. This allows an attacker to gain information about authentication tokens by observing small time differences in server response times. This is a vulnerability that is generally not realistically exploitable over the internet due to other factors that will have a greater influence on response times.

References

1 affected software package

Software Type Plugin
Software Slug wp-2fa (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.2.1
Patched Version
  • 2.3.0
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.