forked from choria-legacy/marionette-collective
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(MCO-765) don't use eval un unchecked arguments
This patch drops the use of `eval` to evaluate comparison expressions in discovery filters. Instead the corresponding comparison method is called on the arguments directly while coercing the arguments to appropriate data types. While this approach might produce different results than the original implementation for expressions which relied on the `eval` to perform more than just the comparison, it closes a whole lot of vulnerabilities stemming from insufficient checking of the comparison arguments.
- Loading branch information
Showing
2 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters