Skip to content
OpenAdvisories

Weakness (CWE)

CWE-434: Unrestricted Upload of File with Dangerous Type

Base Draft

The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.

How to prevent it (8 mitigations)
  1. Architecture and Design

    Generate a new, unique filename for an uploaded file instead of using the user-supplied filename, so that no external input is used at all.[REF-422] [REF-423]

  2. Architecture and Design

    When the set of acceptable objects, such as filenames or URLs, is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames or URLs, and reject all other inputs.

  3. Architecture and Design

    Consider storing the uploaded files outside of the web document root entirely. Then, use other mechanisms to deliver the files dynamically. [REF-423]

  4. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

    For example, limiting filenames to alphanumeric characters can help to restrict the introduction of unintended file extensions.

  5. Architecture and Design

    Define a very limited set of allowable extensions and only generate filenames that end in these extensions. Consider the possibility of XSS (CWE-79) before allowing .html or .htm file types.

  6. Implementation

    Ensure that only one extension is used in the filename. Some web servers, including some versions of Apache, may process files based on inner extensions so that "filename.php.gif" is fed to the PHP interpreter.[REF-422] [REF-423]

  7. Implementation

    When running on a web server that supports case-insensitive filenames, perform case-insensitive evaluations of the extensions that are provided.

  8. Architecture and Design

    For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.

Source: MITRE CWE-434

1,210 results · Clear filters · Feed

  • High 8.1

    Mobatime web application - Arbitrary file upload (RCE)

    Unrestricted Upload of File with Dangerous Type vulnerability in Mobatime web application (Documentary proof upload modules) allows a malicious user to Upload a Web Shell to a Web Server.This issue affects Mobatime web application: through 06.7.22.

  • High 8.8

    WADE DIGITAL DESIGN CO, LTD. FANTSY - Arbitrary File Upload

    Wade Graphic Design FANTSY has a vulnerability of insufficient filtering for file type in its file update function. An authenticated remote attacker with general user privilege can exploit this vulnerability to upload a PHP file containing a webshell to perfo…

  • High 8.8

    An issue was discovered in Faronics Insight 10.0.19045 on Windows. An unauthenticated attacker is able to upload any ty…

  • High 8.1

    kiwitcms vulnerable to stored XSS via unrestricted files upload

    Kiwi TCMS is an open source test management system for both manual and automated testing. Kiwi TCMS allows users to upload attachments to test plans, test cases, etc. Earlier versions of Kiwi TCMS had introduced upload validators in order to prevent potential…

  • High 8.8

    An arbitrary file upload vulnerability in Serendipity 2.4-beta1 allows attackers to execute arbitrary code via a crafte…

  • High 8.8

    eXtplorer 2.1.15 is vulnerable to Insecure Permissions. File upload in file manager allows uploading zip file containin…

  • High 8.8

    File Upload vulnerability in PHPOK 5.7.140 allows remote attackers to run arbitrary code and gain escalated privileges …

  • High 8.8
    CVE-2023-29930 Public exploit

    An issue was found in Genesys CIC Polycom phone provisioning TFTP Server all version allows a remote attacker to execut…

  • High 7.2
    CVE-2023-28128 Public exploit EPSS 84%

    An unrestricted upload of file with dangerous type vulnerability exists in Avalanche versions 6.3.x and below that coul…

  • High 8.8

    MCMS vulnerable to arbitrary code execution via crafted thumbnail

    File upload vulnerability in MCMS 5.0 allows attackers to execute arbitrary code via a crafted thumbnail. A different vulnerability than CVE-2022-31943.

  • High 8.8

    AgilePoint NX v8.0 SU2.2 & SU2.3 – Insecure File Upload

    AgilePoint NX v8.0 SU2.2 & SU2.3 – Insecure File Upload - Vulnerability allows insecure file upload, by an unspecified request.

  • High 7.2

    File upload vulnerability in CMS Made Simple through 2.2.15 allows remote authenticated attackers to gain a webshell vi…

  • High 7.8

    OS Command injection vulnerability in mblog 3.5.0 allows attackers to execute arbitrary code via crafted theme when it …

  • High 7.3
    CVE-2023-2523 Public exploit EPSS 33%

    Weaver E-Office unrestricted upload

    A vulnerability was found in Weaver E-Office 9.5. It has been rated as critical. Affected by this issue is some unknown functionality of the file App/Ajax/ajax.php?action=mobile_upload_save. The manipulation of the argument upload_quwan leads to unrestricted …

  • High 7.2

    Zyrex Popup <= 1.0 - Admin+ Arbitrary File Upload

    The ZYREX POPUP WordPress plugin through 1.0 does not validate the type of files uploaded when creating a popup, allowing a high privileged user (such as an Administrator) to upload arbitrary files, even when modifying the file system is disallowed, such as i…

  • High 8.8

    An arbitrary file upload vulnerability in the plugin upload function of Textpattern v4.8.8 allows attackers to execute …

  • High 8.8

    CLTPHP <=6.0 is vulnerable to Unrestricted Upload of File with Dangerous Type.

  • High 7.2

    Drupal core arbitrary PHP code execution

    Drupal core sanitizes filenames with dangerous extensions upon upload (reference: SA-CORE-2020-012) and strips leading and trailing dots from filenames to prevent uploading server configuration files (reference: SA-CORE-2019-010). However, the protections for…

  • High 8.2

    An issue was discovered in the Open Document feature in Telindus Apsal 3.14.2022.235 b. An attacker may upload a crafte…

  • High 8.1

    Kiwi TCMS unrestricted file upload vulnerability

    Kiwi TCMS, an open source test management system, allows users to upload attachments to test plans, test cases, etc. In versions of Kiwi TCMS prior to 12.2, there is no control over what kinds of files can be uploaded. Thus, a malicious actor may upload an `.…

  • High 7.2

    Improper Input Validation in Meinberg LTOS

    In Meinbergs LTOS versions prior to V7.06.013, the configuration file upload function would not correctly validate the input, which would allow an remote authenticated attacker with high privileges to execute arbitrary commands.

  • High 8.8

    Purchase Order Management v1.0 was discovered to contain an arbitrary file upload vulnerability which allows attackers …

  • High 8.8

    Online Pizza Ordering v1.0 was discovered to contain an arbitrary file upload vulnerability which allows attackers to e…

  • High 8.8

    Employee Performance Evaluation System v1.0 was discovered to contain an arbitrary file upload vulnerability which allo…

  • High 7.2
    CVE-2023-26852 Public exploit

    An arbitrary file upload vulnerability in the upload plugin of Textpattern v4.8.8 and below allows attackers to execute…

  • High 7.5
    CVE-2023-27179 Public exploit Scanner template EPSS 61%

    GDidees CMS v3.9.1 and lower was discovered to contain an arbitrary file download vulenrability via the filename parame…

  • High 7.2

    Ulearn version a5a7ca20de859051ea0470542844980a66dfc05d allows an attacker with administrator permissions to obtain rem…

  • High 7.2

    An arbitrary file upload vulnerability in /admin/ajax.php?action=save_uploads of Dynamic Transaction Queuing System v1.…

  • High 8.8

    Uvdesk remote code execution vulnerability

    Uvdesk version 1.1.1 allows an authenticated remote attacker to execute commands on the server. This is possible because the application does not properly validate profile pictures uploaded by customers.

  • High 7.3

    sjqzhang go-fastdfs File Upload uploa upload path traversal

    A vulnerability, which was classified as critical, has been found in sjqzhang go-fastdfs up to 1.4.3. Affected by this issue is the function upload of the file /group1/uploa of the component File Upload Handler. The manipulation leads to path traversal: '../f…

  • High 7.3

    SourceCodester Young Entrepreneur E-Negosyo System unrestricted upload

    A vulnerability classified as critical has been found in SourceCodester Young Entrepreneur E-Negosyo System 1.0. Affected is an unknown function of the file admin/products/controller.php?action=add. The manipulation of the argument image leads to unrestricted…

  • High 8.8

    An arbitrary file upload vulnerability in the Virtual Disk of MK-Auth 23.01K4.9 allows attackers to execute arbitrary c…

  • High 7.2

    Authenticate Remote Code Execution in Pluck CMS

    Pluck CMS is vulnerable to an authenticated remote code execution (RCE) vulnerability through its “albums” module. Albums are used to create collections of images that can be inserted into web pages across the site. Albums allow the upload of various filetype…

  • High 8.8

    File upload vulnerability in CSKaza CSZ CMS v.1.2.2 fixed in v1.2.4 allows attacker to execute aritrary commands and co…

  • High 7.2
    CVE-2023-26262 Public exploit

    An issue was discovered in Sitecore XP/XM 10.3. As an authenticated Sitecore user, a unrestricted language file upload …

  • High 7.2

    Unrestricted Upload of File with Dangerous Type in cockpit-hq/cockpit

    Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1.

  • High 8.8

    A File Upload vulnerability exists in AvantFAX 3.3.7. An authenticated user can bypass PHP file type validation in File…

  • High 7.5

    SmartBear Zephyr Enterprise through 7.15.0 allows unauthenticated users to upload large files, which could exhaust the …

  • High 8.8

    Envato Elements <= 2.0.10 & Template Kit <= 1.0.13 - Authenticated (Contributor+) Arbitrary File Upload

    The Envato Elements & Download and Template Kit – Import plugins for WordPress are vulnerable to arbitrary file uploads due to insufficient validation of file type upon extracting uploaded Zip files in the installFreeTemplateKit and uploadTemplateKitZipFile f…

  • High 7.5

    CleverStupidDog yf-exam 1.8.0 is vulnerable to File Upload. There is no restriction on the suffix of the uploaded file,…