Spree Commerce 1.0.x through 1.3.2 allows remote authenticated administrators to instantiate arbitrary Ruby objects and execute arbitrary commands via the (1) payment_method parameter to core/app/controllers/spree/admin/payment_methods_controller.rb; and the (2) promotion_action parameter to promotion_actions_controller.rb, (3) promotion_rule parameter to promotion_rules_controller.rb, and (4) calculator_type parameter to promotions_controller.rb in promo/app/controllers/spree/admin/, related to unsafe use of the constantize function.
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Name | Vendor | Start Version | End Version |
---|---|---|---|
Spree | Spreecommerce | * | 1.3.2 (including) |
Spree | Spreecommerce | 1.0.0 (including) | 1.0.0 (including) |
Spree | Spreecommerce | 1.0.1 (including) | 1.0.1 (including) |
Spree | Spreecommerce | 1.0.2 (including) | 1.0.2 (including) |
Spree | Spreecommerce | 1.0.3 (including) | 1.0.3 (including) |
Spree | Spreecommerce | 1.0.4 (including) | 1.0.4 (including) |
Spree | Spreecommerce | 1.0.5 (including) | 1.0.5 (including) |
Spree | Spreecommerce | 1.0.6 (including) | 1.0.6 (including) |
Spree | Spreecommerce | 1.0.7 (including) | 1.0.7 (including) |
Spree | Spreecommerce | 1.1.0 (including) | 1.1.0 (including) |
Spree | Spreecommerce | 1.1.1 (including) | 1.1.1 (including) |
Spree | Spreecommerce | 1.1.2 (including) | 1.1.2 (including) |
Spree | Spreecommerce | 1.1.3 (including) | 1.1.3 (including) |
Spree | Spreecommerce | 1.1.4 (including) | 1.1.4 (including) |
Spree | Spreecommerce | 1.1.5 (including) | 1.1.5 (including) |
Spree | Spreecommerce | 1.1.6 (including) | 1.1.6 (including) |
Spree | Spreecommerce | 1.2.0 (including) | 1.2.0 (including) |
Spree | Spreecommerce | 1.2.1 (including) | 1.2.1 (including) |
Spree | Spreecommerce | 1.2.2 (including) | 1.2.2 (including) |
Spree | Spreecommerce | 1.2.3 (including) | 1.2.3 (including) |
Spree | Spreecommerce | 1.2.4 (including) | 1.2.4 (including) |
Spree | Spreecommerce | 1.3.0 (including) | 1.3.0 (including) |
Spree | Spreecommerce | 1.3.1 (including) | 1.3.1 (including) |
Input validation is a frequently-used technique for checking potentially dangerous inputs in order to ensure that the inputs are safe for processing within the code, or when communicating with other components. Input can consist of:
Data can be simple or structured. Structured data can be composed of many nested layers, composed of combinations of metadata and raw data, with other simple or structured data. Many properties of raw data or metadata may need to be validated upon entry into the code, such as:
Implied or derived properties of data must often be calculated or inferred by the code itself. Errors in deriving properties may be considered a contributing factor to improper input validation.