{"exploit":{"id":"EDB-52611","name":"WordPress Plugin WPZOOM Portfolio 1.4.21 - 'posts_data' Unauthenticated Reflected Cross-Site Scripting (XSS)","description":"WordPress Plugin WPZOOM Portfolio 1.4.21 - 'posts_data' Unauthenticated Reflected Cross-Site Scripting (XSS)","cves":["CVE-2026-49069"],"author":"Kent Apostol","published":"2026-07-06","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52611","path":"exploits/php/webapps/52611.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52611.txt","vulnerabilities":[{"id":"CVE-2026-49069","state":"PUBLISHED","title":"WordPress WPZOOM Portfolio plugin <= 1.4.21 - Cross Site Scripting (XSS) vulnerability","titleSource":"CVE Program","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in WPZOOM Portfolio allows Reflected XSS. This issue affects WPZOOM Portfolio: from n/a through 1.4.21.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-49069","cvss":{"version":"3.1","baseScore":7.1,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","source":"Patchstack","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-49069"},"updatedAt":"2026-06-10T15:09:57.355Z","retrievedAt":"2026-11-25T16:15:43.179Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52611.png?v=2","url":"https://exploitbin.com/exploits/EDB-52611","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52611/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52611/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: WordPress Plugin WPZOOM Portfolio 1.4.21 -  Reflected Cross-Site Scripting (XSS)\n# Date: June 10, 2026\n# Exploit Author: Kent Apostol\n# Vendor Homepage: https://wpzoom.com\n# Software Link: https://wordpress.org\n# Version: <= 1.4.21\n# Tested on: WordPress 6.x\n# CVE: CVE-2026-49069\n\nVulnerability Description:\nThe WPZOOM Portfolio plugin for WordPress is vulnerable to unauthenticated reflected Cross-Site Scripting via the `wpzoom_load_more_items` AJAX action. The handler is registered for unauthenticated users through `wp_ajax_nopriv_wpzoom_load_more_items` and performs no nonce validation or privilege checks.\n\nThe application reads the `posts_data` POST parameter, passes it through `sanitize_text_field()`, and JSON-decodes it into an array which is then merged into `$args` via `wp_parse_args()`. The attacker-controlled `class` key from this array is assigned to `$args['class']` and concatenated directly into multiple single-quoted HTML attributes within `items_html()` (e.g., `<li class='{$class}_item ...'>`, `<article class='{$class}_item-wrap ...'>`, `<h3 class='{$class}_item-title'>`) without any context-aware output escaping like `esc_attr()`.\n\nBecause `sanitize_text_field()` strips angle brackets (`<`, `>`) but preserves single quotes (`'`), an attacker can break out of the HTML attribute string and inject arbitrary attributes, including malicious JavaScript event handlers. The payload executes when the underlying query returns at least one published portfolio item.\n\nProof of Concept (PoC):\n\nStep 1: As an unauthenticated user, send the following POST request to the target site:\nPOST /wp-admin/admin-ajax.php HTTP/1.1\nHost: TARGET\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 111\n\naction=wpzoom_load_more_items&offset=0&posts_data={\"source\":\"post\",\"class\":\"x' onmouseover='alert(document.domain)' y='\"}\n\n\nStep 2: Review the HTTP response to verify that the single quote has successfully broken out of the class attribute structure to inject the event handler:\n\n<li class='x' onmouseover='alert(document.domain)' y='_item ...' data-category='1'>\n\n\nStep 3: When rendered in a victim's browser, triggering the event handler (hovering over the loaded portfolio item) executes the JavaScript code.","sha256":"604043e9d94263ff43788e830455f7cace4ec2c15cd68aed3df99a4b8651d780","bytes":2256,"fetchedAt":"2026-11-26T08:57:05.773Z","encoding":"utf-8 (display only; download retains original bytes)"}