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:
parent
6ff391324d
commit
4ee1f31cf8
6 changed files with 91 additions and 5 deletions
10
readline.sh
10
readline.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue