WordPress Plugin Vulnerabilities

Enable CORS < 2.0.4 - Backdoor

Description

The plugin was distributed with a backdoor in all versions up to and including 2.0.3: its REST API permission check grants access when the HTTP Authorization header matches a hardcoded bcrypt hash, bypassing the manage_options capability requirement and giving an unauthenticated attacker privileged access to the plugin's REST endpoints.

Indicators of compromise on a site that ran an affected build: a password_verify() call against the hardcoded hash $2y$10$kmjfJ.xWPM5u7l1K0UgdUuu/wYROmfPYR.dISGcN2PMk5EnJNKAmu in src/Traits/Api.php (permissions_check), accepting an attacker-supplied Authorization header.

Affects Plugins

Fixed in 2.0.4

References

Miscellaneous

Original Researcher
Ananda Dhakal
Verified
No

Timeline

Publicly Published
2026-06-18 (about 5 months ago)
Added
2026-06-25 (about 4 months ago)
Last Updated
2026-11-19 (about 4 days ago)

Other