Skip to content
OpenAdvisories

Weakness (CWE)

CWE-494: Download of Code Without Integrity Check

Base Draft

The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.

How to prevent it (5 mitigations)
  1. Implementation

    Perform proper forward and reverse DNS lookups to detect DNS spoofing.

  2. Architecture and Design, Operation

    Encrypt the code with a reliable encryption scheme before transmitting.

  3. Architecture and Design

    Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].

    Speficially, it may be helpful to use tools or frameworks to perform integrity checking on the transmitted code.

    - When providing the code that is to be downloaded, such as for automatic updates of the software, then use cryptographic signatures for the code and modify the download clients to verify the signatures. Ensure that the implementation does not contain CWE-295, CWE-320, CWE-347, and related weaknesses.

    - Use code signing technologies such as Authenticode. See references [REF-454] [REF-455] [REF-456].

  4. Architecture and Design, Operation

    Run your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the software or its environment. For example, database applications rarely need to run as the database administrator, especially in day-to-day operations.

  5. Architecture and Design, Operation

    Run the code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which files can be accessed in a particular directory or which commands can be executed by the software.

    OS-level examples include the Unix chroot jail, AppArmor, and SELinux. In general, managed code may provide some protection. For example, java.io.FilePermission in the Java SecurityManager allows the software to specify restrictions on file operations.

    This may not be a feasible solution, and it only limits the impact to the operating system; the rest of the application may still be subject to compromise.

    Be careful to avoid CWE-243 and other weaknesses related to jails.

Source: MITRE CWE-494

223 results · Feed

  • High 8.8

    IBM Engineering Requirements Management DOORS Next file download

    IBM Engineering Requirements Management DOORS Next 7.0.2, 7.0.3, and 7.1 could allow a user to download a malicious file without verifying the integrity of the code.

  • High 7.5

    SunGrow WiNet-S V200.001.00.P025 and earlier versions is missing integrity checks for firmware upgrades. Sending a spec…

  • High 8.1

    CWE-494: Download of Code Without Integrity Check vulnerability exists that could render the device inoperable when mal…

  • High 7.5

    ECOVACS lawnmowers and vacuums deterministic firmware encryption key

    ECOVACS robot lawnmowers and vacuums use a deterministic symmetric key to decrypt firmware updates. An attacker can create and encrypt malicious firmware that will be successfully decrypted and installed by the robot.

  • Low 2.5

    HCL BigFix Patch Download Plug-ins are affected by an arbitrary file download vulnerability

    BigFix Patch Download Plug-ins are affected by an arbitrary file download vulnerability. It could allow a malicious operator to download files from arbitrary URLs without any proper validation or allowlist controls.

  • Medium 6.5

    keras Path Traversal vulnerability

    An issue in keras 3.7.0 allows attackers to write arbitrary files to the user's machine via downloading a crafted tar file through the get_file function.

  • High 8.5

    Insufficient Integrity Verification Vulnerability in TP-Link Archer C50

    This vulnerability exists in the TP-Link Archer C50 due to improper signature verification mechanism in the firmware upgrade process at its web interface. An attacker with administrative privileges within the router’s Wi-Fi range could exploit this vulnerabil…

  • High 8.2

    WesHacks code includes links to Leostop tracking spyware infested files

    The WesHacks GitHub repository provides the official Hackathon competition website source code for the Muweilah Wesgreen Hackathon. The page `schedule.html` before 17 November 2024 or commit 93dfb83 contains links to `Leostop`, a site that hosts a malicious i…

  • Critical 9.3

    Life2000 Ventilator does not perform proper file integrity checks when adopting firmware updates

    The ventilator does not perform proper file integrity checks when adopting firmware updates. This makes it possible for an attacker to force unauthorized changes to the device's configuration settings and/or compromise device functionality by pushing a compro…

  • Medium 5.2

    Potential Firmware update without integrity check

    An exploit is possible where an actor with physical access can manipulate SPI flash without being detected.

  • Low 2.1

    Lack of integrity check on the downloaded FRP client in Gradio

    Gradio is an open-source Python package designed for quick prototyping. This vulnerability is a **lack of integrity check** on the downloaded FRP client, which could potentially allow attackers to introduce malicious code. If an attacker gains access to the r…

  • Critical 9.8

    The App::cpanminus package through 1.7047 for Perl downloads code via insecure HTTP, enabling code execution for networ…

  • Medium 6.7

    Zoom Workplace Apps and SDK for Windows - Improper Privilege Management

    Integrity check in the installer for some Zoom Workplace Apps and SDKs for Windows may allow an authenticated user to conduct a privilege escalation via local access.

  • Critical 9.8

    Download of Code Without Integrity Check in Kiloview P1/P2 devices

    A vulnerability allows attackers to download source code or an executable from a remote location and execute the code without sufficiently verifying the origin and integrity of the code. This vulnerability can allow attackers to modify the firmware before upl…

  • High 7.5

    Download of code without integrity check vulnerability in AirPrint functionality in Synology Router Manager (SRM) befor…

  • High 8.8

    A vulnerability has been identified in SIMATIC RTLS Locating Manager (6GT2780-0DA00) (All versions < V3.0.1.1), SIMATIC…

  • High 7.5

    LuckyFrameWeb v3.5.2 was discovered to contain an arbitrary read vulnerability via the fileDownload method in class com…

  • High 8.0

    Inductive Automation Ignition downloadLaunchClientJar Remote Code Execution Vulnerability

    Inductive Automation Ignition downloadLaunchClientJar Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Inductive Automation Ignition. User interaction is required to exploit…

  • Critical 9.6

    IOSIX IO-1020 Micro ELD Download of Code Without Integrity Check

    IO-1020 Micro ELD downloads source code or an executable from an adjacent location and executes the code without sufficiently verifying the origin or integrity of the code.

  • High 8.2

    WP Crontrol possible RCE when combined with a pre-condition

    WP Crontrol controls the cron events on WordPress websites. WP Crontrol includes a feature that allows administrative users to create events in the WP-Cron system that store and execute PHP code subject to the restrictive security permissions documented here.…

  • High 7.1

    In Emacs before 29.3, Org mode considers contents of remote files to be trusted. This affects Org Mode before 9.6.23.

  • Critical 9.8

    Apache Doris: Downloading arbitrary remote jar files resulting in remote command execution

    Download of Code Without Integrity Check vulnerability in Apache Doris. The jdbc driver files used for JDBC catalog is not checked and may resulting in remote command execution. Once the attacker is authorized to create a JDBC catalog, he/she can use arbitrar…

  • High 8.8

    An issue in the com.oneed.dvr.service.DownloadFirmwareService component of IMOU GO v1.0.11 allows attackers to force th…

  • Medium 6.5

    PHOENIX CONTACT: PLCnext Control prone to download of code without integrity check

    A download of code without integrity check vulnerability in PLCnext products allows an remote attacker with low privileges to compromise integrity on the affected engineering station and the connected devices.

  • High 7.5

    Phoenix Contact: Classic line industrial controllers prone to inadequate integrity check of PLC

    Download of Code Without Integrity Check vulnerability in PHOENIX CONTACT classic line PLCs allows an unauthenticated remote attacker to modify some or all applications on a PLC.

  • High 7.5

    Phoenix Contact: ProConOs prone to Download of Code Without Integrity Check

    Download of Code Without Integrity Check vulnerability in PHOENIX CONTACT MULTIPROG, PHOENIX CONTACT ProConOS eCLR (SDK) allows an unauthenticated remote attacker to download and execute applications without integrity checks on the device which may result in …

  • Medium 6.5

    A CWE-494: Download of Code Without Integrity Check vulnerability exists that could allow a privileged user to install …

  • High 8.1

    Multiple data integrity vulnerabilities exist in the package hash checking functionality of Buildroot 2023.08.1 and Bui…

  • High 8.1

    Multiple data integrity vulnerabilities exist in the package hash checking functionality of Buildroot 2023.08.1 and Bui…

  • High 8.1

    Multiple data integrity vulnerabilities exist in the package hash checking functionality of Buildroot 2023.08.1 and Bui…

  • High 8.1

    Multiple data integrity vulnerabilities exist in the package hash checking functionality of Buildroot 2023.08.1 and Bui…

  • High 8.1

    Multiple data integrity vulnerabilities exist in the package hash checking functionality of Buildroot 2023.08.1 and Bui…

  • High 8.1

    A data integrity vulnerability exists in the BR_NO_CHECK_HASH_FOR functionality of Buildroot 2023.08.1 and dev commit 6…

  • High 7.2

    A CWE-494 Download of Code Without Integrity Check vulnerability exists that could allow modified firmware to be upload…

  • High 7.2

    MLSoft TCO!stream Remote Code Execution Vulnerability

    In MLSoft TCO!stream versions 8.0.22.1115 and below, a vulnerability exists due to insufficient permission validation. This allows an attacker to make the victim download and execute arbitrary files.

  • Medium 5.4

    Incorrect Docker Hub registry check in Artifact Hub

    Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects. During a security audit of Artifact Hub's code base a security researcher identified a bug in which the `registryIsDockerHu…

  • High 7.2

    Synel Terminals - CWE-494: Download of Code Without Integrity Check

    Synel Terminals - CWE-494: Download of Code Without Integrity Check

  • High 7.2

    PHOENIX CONTACT: WP 6xxx Web panels prone to download code without integrity check

    In PHOENIX CONTACTs WP 6xxx series web panels in versions prior to 4.0.10 a remote attacker with SNMPv2 write privileges may use an a special SNMP request to gain full access to the device.

  • Medium 4.3
    CVE-2023-29401 Public exploit

    Improper handling of filenames in Content-Disposition HTTP header in github.com/gin-gonic/gin

    The filename parameter of the Context.FileAttachment function is not properly sanitized. A maliciously crafted filename can cause the Content-Disposition header to be sent with an unexpected filename value or otherwise modify the Content-Disposition header. F…

  • Medium 5.3

    A vulnerability has been discovered in Rocket.Chat, where editing messages can change the original timestamp, causing t…