From a555114cdc5a728df8a9c3f0af49b2d557e76813 Mon Sep 17 00:00:00 2001 From: Tom Elliott Date: Fri, 2 Aug 2024 04:16:12 -0500 Subject: [PATCH] Should ensure we do user checking in the registration portion as well, otherwise anyone could rebuild and abuse this portion --- Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg b/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg index b3cc8193..9106beff 100755 --- a/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg +++ b/Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg @@ -340,7 +340,7 @@ done dots "Attempting to register host" res="" while [[ -z $res ]]; do - res=$(curl -Lks --data "sysuuid=${sysuuid}&mac=$mac&advanced=$(echo -n 1 | base64)&host=$host&imageid=$imageid&primaryuser=$primaryuser&other1=$other1&other2=$other2&doimage=$realdoimage&doad=$blDoAD&location=$location64&username=$user64&groupid=$group64&snapinid=$snapin64&productKey=$productKey" ${web}service/auto.register.php 2>/dev/null) + res=$(curl -Lks --data "sysuuid=${sysuuid}&mac=$mac&advanced=$(echo -n 1 | base64)&host=$host&imageid=$imageid&primaryuser=$primaryuser&other1=$other1&other2=$other2&doimage=$realdoimage&doad=$blDoAD&location=$location64&username=$user64&password=$pass64&groupid=$group64&snapinid=$snapin64&productKey=$productKey" ${web}service/auto.register.php 2>/dev/null) echo "$res" usleep 2000000 done