mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
JS: Move some alerts to their correct location
One of the diffs look confusing but:
Previously parameter {2,3} where flagged, now parameter {1,2} are flagged.
Note that for command injection, the SystemCommandExecution is flagged
despite the test file claiming otherwise.
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
const {BrowserWindow} = require('electron')
|
||||
|
||||
function test() {
|
||||
var unsafe_1 = { // $ Alert - both enabled
|
||||
var unsafe_1 = { // both enabled
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
nodeIntegrationInWorker: true,
|
||||
plugins: true,
|
||||
webSecurity: true,
|
||||
sandbox: true
|
||||
}
|
||||
} // $ Alert
|
||||
};
|
||||
|
||||
var options_1 = { // $ Alert - `nodeIntegrationInWorker` enabled
|
||||
var options_1 = { // `nodeIntegrationInWorker` enabled
|
||||
webPreferences: {
|
||||
plugins: true,
|
||||
nodeIntegrationInWorker: false,
|
||||
webSecurity: true,
|
||||
sandbox: true
|
||||
}
|
||||
} // $ Alert
|
||||
};
|
||||
|
||||
var pref = { // $ Alert - implicitly enabled
|
||||
var pref = { // implicitly enabled
|
||||
plugins: true,
|
||||
webSecurity: true,
|
||||
sandbox: true
|
||||
};
|
||||
}; // $ Alert
|
||||
|
||||
var options_2 = { // $ Alert - implicitly enabled
|
||||
webPreferences: pref,
|
||||
|
||||
Reference in New Issue
Block a user