CVE-2023-6506: WP 2FA – Two-factor authentication for WordPress · Insecure Direct Object Reference
Affects WP 2FA – Two-factor authentication for WordPressSource CVE Database V5
Not known to be exploited · CVSS 4.3 Medium.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 40% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Jan 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| melapress WP 2FA – Two-factor authentication for WordPress | Affected
| Fixed in– |
AI-suggested
To mitigate this vulnerability, European organizations should: 1) Immediately review and restrict subscriber-level permissions to minimize the risk of exploitation. 2) Monitor outgoing emails for unusual activity, especially those related to backup codes or authentication processes. 3) Temporarily disable the send_backup_codes_email functionality if feasible until an official patch is released. 4) Apply strict input validation and access control checks on user-controlled parameters within the plugin code, ensuring keys are verified against the authenticated user's identity. 5) Educate users and administrators about the potential for phishing attempts originating from compromised subscriber accounts. 6) Regularly update the WP 2FA plugin once a patch addressing CVE-2023-6506 is available. 7) Employ additional email security measures such as SPF, DKIM, and DMARC to reduce the impact of unauthorized emails. 8) Consider implementing web application firewalls (WAFs) with rules to detect and block suspicious requests targeting the vulnerable endpoint.
Description
The WP 2FA – Two-factor authentication for WordPress plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.5.0 via the send_backup_codes_email due to missing validation on a user controlled key. This makes it possible for subscriber-level attackers to email arbitrary users on the site.
References
- wordfence.com/threat-intel/vulnerabilities/id/caff9be6-4161-47a0-ba47-6c8fc0c4ab40?source=cve (opens in a new tab)
- plugins.trac.wordpress.org/browser/wp-2fa/trunk/includes/classes/Admin/class-setup-wizard.php?rev=2940688 (opens in a new tab)
- plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3009922%40wp-2fa&new=3009922%40wp-2fa&sfp_email=&sfph_mail= (opens in a new tab)