CWE-494
Download of Code Without Integrity Check
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.
Abstraction
Base
Structure
Simple
Likelihood of Exploit
Medium
Understand the problem
What is the problem?
Extended description
Root cause
How and when does the problem arise?
Lifecycle phase
Architecture and Design
Lifecycle phase
Implementation
Risk
What does successful exploitation lead to?
Affected security scopes: Integrity, Availability, Confidentiality, Other
Defence
How is it prevented and fixed?
Implementation
Implementation-phase defence
Detail
Implementation
Implementation-phase defence
This is only a partial solution since it will not prevent your code from being modified on the hosting site or in transit.
Architecture and Design · Operation
Defence to apply across several lifecycle phases
Detail
Architecture and Design · Operation
Defence to apply across several lifecycle phases
Architecture and Design
Libraries or Frameworks
Detail
Architecture and Design
Libraries or Frameworks
Architecture and Design · Operation
Environment Hardening
Detail
Architecture and Design · Operation
Environment Hardening
Architecture and Design · Operation
Sandbox or Jail
Detail
Architecture and Design · Operation
Sandbox or Jail
Effectiveness: Limited
The effectiveness of this mitigation depends on the prevention capabilities of the specific sandbox or jail being used and might only help to reduce the scope of an attack, such as restricting the attacker to certain system calls or limiting the portion of the file system that can be accessed.
Verification
How is it detected?
Manual Analysis
These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules.