lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <87vfubeb5h.fsf@cain.internet2.edu> Date: 09 Jul 2003 15:46:18 -0400 From: stanislav shalunov <shalunov@...ernet2.edu> To: Andries.Brouwer@....nl Subject: Re: xpdf vulnerability - CAN-2003-0434 Andries.Brouwer@....nl writes: > A urlCommand like the default "netscape -remote 'openURL(%s)'" > is OK since the %s is protected by single quotes. How so? Consider an argument of '`rm -rf /tmp/test`' This expands to netscape -remote 'openURL('`rm -rf /tmp/test`')' where the single quotes have no effect. A proper fix would be not to invoke shell at all, but simply fork and exec. -- Stanislav Shalunov http://www.internet2.edu/~shalunov/ "The power of accurate observation is commonly called cynicism by those who have not got it." -- G. B. Shaw