Home page logo

fulldisclosure logo Full Disclosure mailing list archives

Re: usb_modeswitch/pppd -detach
From: "Larry W. Cashdollar" <larry0 () me com>
Date: Sun, 22 Jan 2012 02:38:57 +0000 (GMT)


This is still a race condition since the pid can be guessed easily as well.  It's better to use mktemp 

-- Larry C$

On Jan 21, 2012, at 02:14 PM, srm <srm () suckless org> wrote:

So, the problem is definitive in the community package of archlinux.
*sigh*. I checked version 1.2.2 from


It doesn't contain the '/tmp/debug' statement.

However: The following version has the debug statement:

,grep -n '/tmp/debug' usb_modeswitch.sh
66: echo "symlink-name: $2" >/tmp/debug

A possible quick fix could be to append $$:
66: echo "symlink-name: $2" >/tmp/debug.$$


Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]