Affected versions
- Affected versions
- <3.2.2
- Fixed version
- 3.2.2
Exploitation
Description
The Gravity Forms plugin for WordPress is vulnerable to Limited File Upload in all versions up to, and including, 3.2.1. This is due to the chunked upload handler in GFAsyncUpload::upload() writing intermediate chunks to disk before validating the file extension against WordPress’s allowed file types, with the final type check deferred until the last chunk. This makes it possible for unauthenticated attackers to leave files with extensions absent from the plugin’s deny-list, such as .shtml, in the form’s temporary upload directory. On Apache servers with Server-Side Includes enabled, this can be leveraged to read sensitive files and, in environments where SSI command execution is permitted, to execute arbitrary commands on the server. Exploitation requires a form with a multi-file upload field that does not restrict allowed extensions, and knowledge of the form’s upload directory name, which is not exposed in default configurations.
Links
Credits
- endangcamon

