mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Update ElectronShellOpenExternalSink location
Move the class ElectronShellOpenExternalSink to ClientSideUrlRedirect.qll. It's been to be a more appropriate location.
This commit is contained in:
@@ -60,4 +60,15 @@ module ClientSideUrlRedirect {
|
||||
guard instanceof HostnameSanitizerGuard
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Improper use of openExternal can be leveraged to compromise the user's host.
|
||||
* When openExternal is used with untrusted content, it can be leveraged to execute arbitrary commands.
|
||||
*/
|
||||
class ElectronShellOpenExternalSink extends Sink {
|
||||
ElectronShellOpenExternalSink() {
|
||||
this =
|
||||
DataFlow::moduleMember("electron", "shell").getAMemberCall("openExternal").getArgument(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -138,15 +138,4 @@ module CodeInjection {
|
||||
API::moduleImport("module").getInstance().getMember("_compile").getACall().getArgument(0)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Improper use of openExternal can be leveraged to compromise the user's host.
|
||||
* When openExternal is used with untrusted content, it can be leveraged to execute arbitrary commands.
|
||||
*/
|
||||
class ElectronShellOpenExternalSink extends Sink {
|
||||
ElectronShellOpenExternalSink() {
|
||||
this =
|
||||
DataFlow::moduleMember("electron", "shell").getAMemberCall("openExternal").getArgument(0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user