Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
4DescriptionCVE.org
The Contest Gallery plugin for WordPress is vulnerable to an authentication bypass leading to admin account takeover in all versions up to, and including, 28.1.5. This is due to the email confirmation handler in users-registry-check-after-email-or-pin-confirmation.php using the user's email string in a WHERE ID = %s clause instead of the numeric user ID, combined with an unauthenticated key-based login endpoint in ajax-functions-frontend.php. When the non-default RegMailOptional=1 setting is enabled, an attacker can register with a crafted email starting with the target user ID (e.g., 1poc@example.test), trigger the confirmation flow to overwrite the admin's user_activation_key via MySQL integer coercion, and then use the post_cg1l_login_user_by_key AJAX action to authenticate as the admin without any credentials. This makes it possible for unauthenticated attackers to take over any WordPress administrator account and gain full site control.
AnalysisAI
The Contest Gallery plugin for WordPress contains an authentication bypass vulnerability that allows unaattacked attackers to take over administrator accounts and gain complete site control. All versions up to and including 28.1.5 are affected when the non-default RegMailOptional=1 setting is enabled. The vulnerability exploits MySQL type coercion by registering with specially crafted email addresses to overwrite admin activation keys, then using an unauthenticated login endpoint to authenticate as the target user. With a CVSS score of 8.1 and high attack complexity (AC:H), this represents a critical risk for sites using the vulnerable configuration.
Technical ContextAI
This vulnerability affects the Contest Gallery plugin for WordPress (CPE: cpe:2.3:a:contest-gallery:contest_gallery_–_upload_&_vote_photos,_media,_sell_with_paypal_&_stripe:*:*:*:*:*:*:*:*). The root cause is CWE-287 (Improper Authentication) stemming from a type confusion issue in users-registry-check-after-email-or-pin-confirmation.php at line 153. The code uses a user-supplied email string in a WHERE ID = %s SQL clause where a numeric user ID is expected. When MySQL performs implicit type coercion, an email like '1poc@example.test' is converted to integer 1, causing the query to target the admin user (typically ID 1) instead of the registering user. This overwrites the admin's user_activation_key field. The vulnerability chain is completed by the post_cg1l_login_user_by_key AJAX action in ajax-functions-frontend.php at line 204, which allows unauthenticated key-based login without proper validation, enabling the attacker to authenticate as the compromised admin account using the activation key they controlled.
RemediationAI
Immediately upgrade Contest Gallery plugin to version 28.1.6 or later, which addresses this authentication bypass vulnerability. The patch changeset is documented at https://plugins.trac.wordpress.org/changeset?old_path=/contest-gallery/tags/28.1.5&new_path=/contest-gallery/tags/28.1.6. If immediate patching is not feasible, disable the RegMailOptional=1 setting in the plugin configuration to eliminate the attack vector, as this vulnerability requires this non-default option to be enabled. Additionally, implement web application firewall rules to monitor and block suspicious user registration attempts with email addresses beginning with numeric characters, particularly those matching low user IDs like 1 or 2 which typically correspond to administrator accounts. Review existing user accounts for suspicious registrations with emails starting with numbers and examine authentication logs for unexpected admin login activity using the post_cg1l_login_user_by_key AJAX action.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-287 – Improper Authentication
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-14654
GHSA-m4rm-grq4-j8wp