Exploit databaseDownload repository ZIP
GH-d929a215afad5d15316f32e2ac68846d
googlesky/cve-2026-123039
Sources for CVE-2026-123039
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files8
googlesky/cve-2026-123039Revision 64021f43d628
- ↑..Parent directory
- dbset.sh
- dynamic_server.c
- dynframe.c
- dynframe.h
- entrypoint.sh
- fuzz_frame.c
- supervisor.sh
- sweep.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lab/src/supervisor.sh
Shell · 2,717 bytes#!/bin/bash
# supervisor.sh — keeps the Dynamic CLI daemon running according to the local
# Gaia configuration, the way the appliance process table does.
#
# The supervisor reads /etc/gaia-db/process/dynamic_server. The value "off"
# keeps the daemon stopped (the published mitigation, sk1000362); any other
# value keeps it running. A daemon that dies is restarted, and the exit status
# or the terminating signal is recorded so that a crash of the control socket
# daemon is observed instead of silently disappearing.
set -u
DB_FILE="${GAIA_DB_FILE:-/etc/gaia-db/process/dynamic_server}"
LOG_FILE="${GAIA_SUPERVISOR_LOG:-/var/log/dynamic_server.supervisor.log}"
BIN="${GAIA_DYNAMIC_BIN:-/usr/local/bin/dynamic_server}"
VARIANT="${GAIA_VARIANT:-0}"
SOCKET="${GAIA_SOCKET_PATH:-/tmp/dynamic_socket}"
CHILD=""
CHILD_STATUS=""
log() {
printf '%s %s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ')" "$*" >>"$LOG_FILE" 2>/dev/null || true
}
# A child that already exited stays visible as a zombie until it is reaped,
# and kill -0 still succeeds on a zombie, so the process state is inspected.
child_alive() {
[ -n "$CHILD" ] || return 1
kill -0 "$CHILD" 2>/dev/null || return 1
local st
st="$(awk '{print $3}' "/proc/$CHILD/stat" 2>/dev/null)" || return 1
[ "$st" != "Z" ]
}
stop_child() {
if [ -n "$CHILD" ]; then
if child_alive; then
kill -TERM "$CHILD" 2>/dev/null || true
# Bounded wait: the daemon has to release the control socket.
i=0
while [ $i -lt 50 ] && child_alive; do
sleep 0.1
i=$((i + 1))
done
if child_alive; then
kill -KILL "$CHILD" 2>/dev/null || true
sleep 0.2
fi
fi
wait "$CHILD" 2>/dev/null
CHILD_STATUS=$?
log "dynamic_server (pid $CHILD) stopped status=$CHILD_STATUS"
fi
CHILD=""
}
trap 'stop_child; exit 0' TERM INT
log "supervisor started variant=$VARIANT socket=$SOCKET db=$DB_FILE"
while true; do
want="on"
if [ -f "$DB_FILE" ]; then
want="$(tr -d ' \t\r\n' <"$DB_FILE")"
fi
case "$want" in
off|Off|OFF|"")
if [ -n "$CHILD" ]; then
stop_child
fi
sleep 1
continue
;;
esac
if [ -z "$CHILD" ]; then
GAIA_VARIANT="$VARIANT" GAIA_SOCKET_PATH="$SOCKET" \
"$BIN" >>"$LOG_FILE" 2>&1 &
CHILD=$!
log "dynamic_server started pid=$CHILD variant=$VARIANT"
elif ! child_alive; then
wait "$CHILD" 2>/dev/null
CHILD_STATUS=$?
log "dynamic_server (pid $CHILD) exited status=$CHILD_STATUS"
CHILD=""
fi
sleep 1
done