We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3eb55dd + 7d2741a commit 254072dCopy full SHA for 254072d
javascript/ql/src/semmle/javascript/security/dataflow/ClientSideUrlRedirect.qll
@@ -60,4 +60,15 @@ module ClientSideUrlRedirect {
60
guard instanceof HostnameSanitizerGuard
61
}
62
63
+
64
+ /**
65
+ * Improper use of openExternal can be leveraged to compromise the user's host.
66
+ * When openExternal is used with untrusted content, it can be leveraged to execute arbitrary commands.
67
+ */
68
+ class ElectronShellOpenExternalSink extends Sink {
69
+ ElectronShellOpenExternalSink() {
70
+ this =
71
+ DataFlow::moduleMember("electron", "shell").getAMemberCall("openExternal").getArgument(0)
72
+ }
73
74
0 commit comments