We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94b196 commit 06e435fCopy full SHA for 06e435f
ruby/ql/lib/codeql/ruby/security/UnsafeDeserializationCustomizations.qll
@@ -48,16 +48,13 @@ module UnsafeDeserialization {
48
}
49
50
/**
51
- * An argument in a call to `YAML.load` or `YAML.load_file`, considered a sink
+ * An argument in a call to `YAML.load`, considered a sink
52
* for unsafe deserialization. The `YAML` module is an alias of `Psych` in
53
* recent versions of Ruby.
54
*/
55
class YamlLoadArgument extends Sink {
56
YamlLoadArgument() {
57
- this =
58
- API::getTopLevelMember(["YAML", "Psych"])
59
- .getAMethodCall(["load", "load_file"])
60
- .getArgument(0)
+ this = API::getTopLevelMember(["YAML", "Psych"]).getAMethodCall("load").getArgument(0)
61
62
63
0 commit comments