ManageIQ/manageiq

View on GitHub
app/models/widget_import_validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Prefer using YAML.safe_load over YAML.load.
Open

    widgets = YAML.load(import_file_upload.uploaded_content)

This cop checks for the use of YAML class methods which have potential security issues leading to remote code execution when loading from an untrusted source.

Example:

# bad
YAML.load("--- foo")

# good
YAML.safe_load("--- foo")
YAML.dump("foo")

There are no issues that match your filters.

Category
Status