Skip to content

Commit a555114

Browse files
committed
Should ensure we do user checking in the registration portion as well, otherwise anyone could rebuild and abuse this portion
1 parent 3b6033f commit a555114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Buildroot/board/FOG/FOS/rootfs_overlay/bin/fog.man.reg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ done
340340
dots "Attempting to register host"
341341
res=""
342342
while [[ -z $res ]]; do
343-
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)
343+
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)
344344
echo "$res"
345345
usleep 2000000
346346
done

0 commit comments

Comments
 (0)