wifiNetworks() fixed CWE-78 command injection issue (linux)

This commit is contained in:
Sebastian Hildebrandt
2026-02-14 11:09:05 +01:00
parent 41c7ea4ff8
commit 22242aa561
6 changed files with 28 additions and 7 deletions
+2 -2
View File
@@ -437,8 +437,8 @@ function wifiNetworks(callback) {
const res = getWifiNetworkListIw(ifaceSanitized);
if (res === -1) {
// try again after 4 secs
setTimeout((iface) => {
const res = getWifiNetworkListIw(iface);
setTimeout(() => {
const res = getWifiNetworkListIw(ifaceSanitized);
if (res !== -1) {
result = res;
}