1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-17 00:23:25 +00:00

Version 1.8.0.2 - CVE-2024-54661: Arbitrary file overwrite in readline.sh

This commit is contained in:
Gerhard Rieger 2024-12-06 11:42:09 +01:00
parent 6ff391324d
commit 4ee1f31cf8
6 changed files with 91 additions and 5 deletions

View file

@ -22,9 +22,15 @@ if [ "$withhistfile" ]; then
else
HISTOPT=
fi
mkdir -p /tmp/$USER || exit 1
#
#
exec socat -d readline"$HISTOPT",noecho='[Pp]assword:' exec:"$PROGRAM",sigint,pty,setsid,ctty,raw,echo=0,stderr 2>/tmp/$USER/stderr2
if test -w .; then
STDERR=./socat-readline.${1##*/}.log
rm -f $STDERR
else
STDERR=/dev/null
fi
exec socat -d readline"$HISTOPT",noecho='[Pp]assword:' exec:"$PROGRAM",sigint,pty,setsid,ctty,raw,echo=0,stderr 2>$STDERR