Vulnerabilities > CVE-2017-16949 - Unrestricted Upload of File with Dangerous Type vulnerability in Accesspressthemes Anonymous Post PRO

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
accesspressthemes
CWE-434
critical
exploit available

Summary

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.

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by the authorization framework, whose job it is to map ACLs to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application or can run queries for data that he is otherwise not supposed to.
  • Privilege Abuse
    An adversary is able to exploit features of the target that should be reserved for privileged users or administrators but are exposed to use by lower or non-privileged accounts. Access to sensitive information and functionality must be controlled to ensure that only authorized users are able to access these resources. If access control mechanisms are absent or misconfigured, a user may be able to access resources that are intended only for higher level users. An adversary may be able to exploit this to utilize a less trusted account to gain information and perform activities reserved for more trusted accounts. This attack differs from privilege escalation and other privilege stealing attacks in that the adversary never actually escalates their privileges but instead is able to use a lesser degree of privilege to access resources that should be (but are not) reserved for higher privilege accounts. Likewise, the adversary does not exploit trust or subvert systems - all control functionality is working as configured but the configuration does not adequately protect sensitive resources at an appropriate level.

Exploit-Db

descriptionAccesspress Anonymous Post Pro < 3.2.0 - Unauthenticated Arbitrary File Upload. CVE-2017-16949. Webapps exploit for PHP platform
fileexploits/php/webapps/43324.txt
idEDB-ID:43324
last seen2017-12-12
modified2017-12-12
platformphp
port80
published2017-12-12
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/43324/
titleAccesspress Anonymous Post Pro < 3.2.0 - Unauthenticated Arbitrary File Upload
typewebapps

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/145398/accesspressapp-upload.txt
idPACKETSTORM:145398
last seen2017-12-13
published2017-12-13
reporterColette Chamberland
sourcehttps://packetstormsecurity.com/files/145398/Accesspress-Anonymous-Post-Pro-Unauthenticated-Arbitrary-File-Upload.html
titleAccesspress Anonymous Post Pro Unauthenticated Arbitrary File Upload