Gửi #993437: Softaculous Page Builder Plugin (Pagelayer) 2.1.7 - 2.2.1 Missing Authorizationthông tin

tiêu đềSoftaculous Page Builder Plugin (Pagelayer) 2.1.7 - 2.2.1 Missing Authorization
Mô tảSUMMARY The WordPress plugin "Page Builder: Pagelayer" (vendor Softaculous) ships an optional MCP / Abilities API integration (file pagelayer/main/abilitiesregister.php) that registers a set of WP Abilities. Four read-side abilities - pagelayer-pages/get-page, pagelayer-pages/list-pages, pagelayer-posts/get-post and pagelayer-posts/list-posts - are registered WITHOUT an explicit permission callback (no "perm" key). They therefore fall back to the plugin default can_edit_posts() = current_user_can("edit_posts"), a capability held by the built-in Contributor role, and no object-level ownership check is performed anywhere in the execute_* implementations. As a result any Contributor (the standard lowest writing role on multi-author WordPress sites) can read other users private / draft / pending pages and posts - including the complete page-builder layout payload - and can enumerate all unpublished content site-wide. For the same user and the same object, WordPress core REST (GET /wp-json/wp/v2/pages/{id}) correctly answers 403 rest_forbidden, which proves the violated authorization boundary belongs to the plugin, not to core. AFFECTED PRODUCT / VERSIONS Vendor: Softaculous Product: Page Builder Plugin (Pagelayer) - WordPress plugin slug "pagelayer" Affected: 2.1.7 <= version <= 2.2.1, i.e. every release since the MCP/Abilities feature was introduced on 2026-08-06. 2.2.1 (2026-09-16) is the current latest release and is STILL affected on the read side. Active installs: 400,000+ (wordpress.org API, 2026-09-21). Requirement: WordPress 6.9+ (core Abilities API). Plugin page: https://wordpress.org/plugins/pagelayer/ Vendor: https://www.softaculous.com/ Package identity (sha256 of pagelayer/main/abilitiesregister.php): 2.1.7 = 819de68972cdeb1fd28ac5005955c3cf5f41ab4e0ea53d5089ef977349b5496c 2.1.9 = 819de68972cdeb1fd28ac5005955c3cf5f41ab4e0ea53d5089ef977349b5496c (byte-identical to 2.1.7) 2.2.0 = ca1162ac568bcaea985529ebbe2d4e18ddf5dfffb3f32c9ecb2d519462e7a88c 2.2.1 = c78d550ac8d7bc64cd8d0db737fdaeff5e0b739fc09c08263fb315d3b0790352 VULNERABILITY CLASS CWE-862 Missing Authorization (primary), CWE-863 Incorrect Authorization (related). Authorization bypass via missing object-level access control on a REST/MCP surface. MINIMUM REQUIRED ROLE Authenticated, Contributor (edit_posts). No special configuration: Contributor is a WordPress built-in role and the Abilities/MCP feature is a normal plugin setting. ENTRY POINTS POST /wp-json/wp-abilities/v1/abilities/pagelayer-pages/get-page/run body {"input":{"post_id":<id>,"mode":"full"}} POST /wp-json/wp-abilities/v1/abilities/pagelayer-pages/list-pages/run body {"input":{"status":"any"}} POST /wp-json/wp-abilities/v1/abilities/pagelayer-posts/get-post/run POST /wp-json/wp-abilities/v1/abilities/pagelayer-posts/list-posts/run ROOT CAUSE (source, version 2.2.1, file pagelayer/main/abilitiesregister.php) Line 2799 in do_register_ability(): $perm = isset($def["perm"]) ? $def["perm"] : array(__CLASS__, "can_edit_posts"); Line 69: public static function can_edit_posts() { return current_user_can("edit_posts"); } The four read-side ability definitions (get_page :2315, list_pages :2331, get_post :2695, list_posts :2707) contain no "perm" key, so they inherit can_edit_posts. The permission_callback is the ONLY authorization gate on this path: core WP_Ability::execute() only calls check_permissions(), and WP_REST_Abilities_V1_Run_Controller::check_ability_permissions() only requires meta.show_in_rest plus that callback. Nothing else inspects the target object. The execute_* implementations likewise lack an object-level check. execute_get_page() (:4330) simply does get_post($post_id) and returns title / status / url / edit_url and - with mode=full - the entire pagelayer_data layout tree. execute_list_pages() (:4383) runs a WP_Query with post_status => $status (default "any") and no author restriction. Contrast: the vendor added the correct object-level check on the WRITE side in 2.2.1 but did not mirror it on the READ side - execute_publish_page() :4409: if (!current_user_can("edit_post", $post_id) || !current_user_can($cap)) { ... 403 } REPRODUCTION (isolated lab: wordpress:6.9 + mariadb, official pagelayer zip) Attacker: Contributor account "contrib" (caps read, edit_posts, delete_posts - no edit_pages, no edit_others_pages, no read_private_pages). Victim object: page ID 10, authored by admin, status private, layout body containing the marker "CONFIDENTIAL LAYOUT SECRET B". 1) Core REST control request (same user, same object): GET /wp-json/wp/v2/pages/10 -> 403 rest_forbidden 2) Plugin ability request: POST /wp-json/wp-abilities/v1/abilities/pagelayer-pages/get-page/run {"input":{"post_id":10,"mode":"full"}} -> 200 OK, returns title, status "private", edit_url and the full layout body (marker present) 3) Enumeration: POST /wp-json/wp-abilities/v1/abilities/pagelayer-pages/list-pages/run {"input":{"status":"any"}} -> 200 OK, lists the private page {"id":10,"title":"Acquisition Roadmap 2027 (internal)","status":"private"} Mitigation test with a minimal patch adding current_user_can("edit_post",$post_id) and an author restriction: Contributor gets 403 (get-page/get-post) and an empty set (list-pages/list-posts), while Administrator behaviour is unchanged (200), so legitimate functionality is preserved. Restoring the original file re-enables the leak (round-trip verified). php -l clean. IMPACT Confidentiality: high. A Contributor can read other users unpublished pages/posts including the full page-builder layout payload, and can enumerate every draft / private / pending item (title + ID) site-wide. This is disclosure of not-yet-published content on 400k+ sites. No integrity or availability impact from this read-side issue alone. On 2.2.0 and below the same Abilities surface additionally allowed write-side abuse (publish, update or duplicate another users item, upload media without upload_files), which the vendor fixed in 2.2.1; the read side was left unfixed. CVSS v3.1: AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N = 6.5 (Medium). SUGGESTED FIX Add the object-level check to the read-side abilities, mirroring the write side: - execute_get_page / execute_get_post: if (!current_user_can("edit_post",$post_id)) return WP_Error("forbidden", status 403); - execute_list_pages: if (!current_user_can("edit_others_pages")) $args["author"] = get_current_user_id(); - execute_list_posts: if (!current_user_can("edit_others_posts")) $args["author"] = get_current_user_id(); Also change the default permission callback from can_edit_posts to deny-by-default so future abilities without an explicit perm are not exposed. DUPLICATE / NOVELTY VulDB / NVD already contain other Pagelayer issues at Contributor level: CVE-2024-13430 (pagelayer_builder_posts_shortcode private post disclosure, <= 1.9.8), CVE-2026-39469 (<= 2.0.8 information exposure), CVE-2026-2470 (incorrect authorization via AJAX contact-template path, <= 2.0.9), CVE-2026-3297 and CVE-2026-2509 (XSS). None of them covers the Abilities API / wp-abilities/v1 surface. That surface was introduced in 2.1.7 (2026-08-06) and is therefore newer than every published Pagelayer CVE, and the read-side abilities are byte-for-byte unchanged and still reachable in the current release 2.2.1. This is a new instance, not a duplicate. DISCLOSURE HISTORY This issue was first submitted to Wordfence Intelligence (a CNA) on 2026-09-22, ticket #473317. Wordfence acknowledged that the issue is real but rejected it as out of scope: since 2026-06-29 they no longer accept vulnerabilities requiring intermediate authentication (Contributor and above) and therefore assign neither a CVE ID nor a bounty. Consequently no CVE has been assigned by any CNA and no other CNA is currently processing this issue - the very situation that VulDBs CNA policy covers (a report rejected by the responsible CNA is taken over by VulDB). The vendor (Softaculous / Pagelayer) had not yet been contacted directly at the time of this submission.
Người dùng
 an7ln (UID 101521)
Đệ trình21/09/2026 21:07 (cách đây 3 các tháng)
Kiểm duyệt18/11/2026 22:23 (2 months later)
Trạng tháiBản sao
Mục VulDB436933 [Pagelayer đến 2.2.0 Abilities API abilitiesregister.php nâng cao đặc quyền]
điểm0

Might our Artificial Intelligence support you?

Check our Alexa App!