contest-gallery Contest Gallery Plugin up to 28.1.5 on WordPress user_activation_key improper authentication
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.7 | $0-$5k | 0.00 |
Summary
A vulnerability was found in contest-gallery Contest Gallery Plugin up to 28.1.5 on WordPress. It has been rated as critical. Affected by this issue is the function user_activation_key of the file users-registry-check-after-email-or-pin-confirmation.php. This manipulation causes improper authentication.
The identification of this vulnerability is CVE-2026-4021. It is possible to initiate the attack remotely. There is no exploit available.
Upgrading the affected component is advised.
Details
A vulnerability classified as critical was found in contest-gallery Contest Gallery Plugin up to 28.1.5 on WordPress. Affected by this vulnerability is the function user_activation_key of the file users-registry-check-after-email-or-pin-confirmation.php. The manipulation with an unknown input leads to a improper authentication vulnerability. The CWE definition for the vulnerability is CWE-287. When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. As an impact it is known to affect confidentiality, integrity, and availability. The summary by CVE is:
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., `[email protected]`), 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.
The weakness was shared by Supakiad S.. It is possible to read the advisory at wordfence.com. This vulnerability is known as CVE-2026-4021 since 03/11/2026. The exploitation appears to be difficult. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details of the vulnerability are known, but there is no available exploit.
By approaching the search of inurl:users-registry-check-after-email-or-pin-confirmation.php it is possible to find vulnerable targets with Google Hacking.
Upgrading to version 28.1.4 eliminates this vulnerability.
The vulnerability is also documented in the databases at CNNVD (CNNVD-202603-4628) and EUVD (EUVD-2026-14654). Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Product
Type
Vendor
Name
Version
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.8VulDB Meta Temp Score: 6.7
VulDB Base Score: 5.6
VulDB Temp Score: 5.4
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 8.1
CNA Vector (Wordfence): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Improper authenticationCWE: CWE-287
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Google Hack: 🔒
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: Contest Gallery Plugin 28.1.4
Timeline
03/11/2026 CVE reserved03/24/2026 Advisory disclosed
03/24/2026 VulDB entry created
03/28/2026 VulDB entry last update
Sources
Advisory: wordfence.comResearcher: Supakiad S.
Status: Confirmed
CVE: CVE-2026-4021 (🔒)
GCVE (CVE): GCVE-0-2026-4021
GCVE (VulDB): GCVE-100-352639
EUVD: 🔒
CNNVD: CNNVD-202603-4628 - WordPress plugin Contest Gallery 授权问题漏洞
Entry
Created: 03/24/2026 02:53Updated: 03/28/2026 09:37
Changes: 03/24/2026 02:53 (68), 03/24/2026 06:04 (1), 03/25/2026 17:55 (6), 03/28/2026 09:37 (1)
Complete: 🔍
Cache ID: 216:ECE:103
No comments yet. Languages: en.
Please log in to comment.