Status: Draft Compound Element ID: 434 (Compound Element Base: Composite)Summary The software allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment.
Determine the size and type of files that users are expected to upload to your system. Take measures to assure that the files meet those requirements. This can have a chaining relationship with incomplete blacklist / permissive whitelist errors when the product tries, but fails, to properly limit which types of files are allowed. This can also overlap multiple interpretation errors for intermediaries, e.g. anti-virus products that do not filter attachments with certain file extensions that can be processed by client systems. This can be primary when there is no check at all. If is frequently resultant when use of double extensions (e.g. ".php.gif") bypass sanity checks. Also resultant from client-side enforcement; some products will include web script in web clients to check the filename, without verifying on the server side.
PHP applications are most targeted, but this likely applies to other languages that support file upload, as well as non-web technologies. ASP applications have also demonstrated this problem.
Richard Stanway (r1CH). "Dynamic File Uploads, Security and You". <http:/ Submissions PLOVER. (Externally Mined) Modifications Eric Dalci. Cigital. 2008-07-01. (External) updated Time_of_Introduction CWE Content Team. MITRE. 2008-09-08. (Internal) updated Alternate_Terms, Relationships, Other_Notes,
Taxonomy_Mappings CWE Content Team. MITRE. 2009-01-12. (Internal) updated Relationships |
|
Page Last Updated:
May 26, 2009
|
|
CWE is a Software Assurance strategic initiative sponsored by the National Cyber Security Division of the U.S. Department of Homeland Security. This Web site is hosted by The MITRE Corporation. Contact cwe@mitre.org for more information. |
|||
