- Web Applications
- PHP.ini
- Apache 2.4 – Servers – UNIX
- Apache 2.4 – Sites – UNIX
- Apache 2.4 – Servers – Windows
- Apache 2.4 – Sites – Windows
- API Security
| AID | 84 |
|---|---|
| WAAID | 1.9.8 |
| Audit | Audit Upload of Unexpected File Types |
| Category | Business Logic Testing |
| Guidance | Many application`s business processes allow for the upload and manipulation of data that is submitted via files. But the business process must check the files and only allow certain --approved-- file types. Deciding what files are --approved-- is determined by the business logic and is application->system specific. The risk in that by allowing users to upload files, attackers may submit an unexpected file type that that could be executed and adversely impact the application or system through attacks that may deface the web site, perform remote commands, browse the system files, browse the local resources, attack other servers, or exploit the local vulnerabilities, just to name a few. Vulnerabilities related to the upload of unexpected file types is unique in that the upload should quickly reject a file if it does not have a specific extension. Additionally, this is different from uploading malicious files in that in most cases an incorrect file format may not by it self be inherently --malicious-- but may be detrimental to the saved data. For example if an application accepts Windows Excel files, if an similar database file is uploaded it may be read but data extracted my be moved to incorrect locations. The application may be expecting only certain file types to be uploaded for processing, such as .CSV, .txt files. The application may not validate the uploaded file by extension (for low assurance file validation) or content (high assurance file validation). This may result in unexpected system or database results within the application->system or give attackers additional methods to exploit the application->system. Example |
| Procedure | Generic Testing Method Specific Testing Method |
| OWASP Ref. ID | WSTG-BUSL-08 |
| OWASP Ref. | owasp.org |
Review this entry