KDE 3.1: delayed
bastian at kde.org
Fri Dec 6 09:47:12 GMT 2002
On Friday 06 December 2002 10:05, Christian Loose wrote:
> > On Friday 06 December 2002 01:07, Charles Samuels wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On Thursday 05 December 2002 3:44, Dirk Mueller wrote:
> > > > On November 26th, we've been notified by FozZy from the "Hackademy
> > > > Audit Project" about security problems in KDE.
> > >
> > > I'd like to know, out of curiosity's sake, what this problem actually
> > > is. Unless there's reason to believe that if you divulge it, people
> > > would take advantage of it, that is.
> > The idea is that you must properly quote program arguments before passing
> > them to a shell if you want to rule out the possibility that they are
> > being interpreted as shell commands themselves.
> > Cheers,
> > Waldo
> Why don't we make a C++ interface for these problematic functions like
> popen() or system(), so you can't use them wrong? Otherwise, I think, it
> will always happen that somebody forgets to properly quote the arguments.
We have KProcess and KProcIO. KProcIO provides popen functionality but it
behaves asynchronous as opposed to popen. popen is in many cases easier to
There is hardly a good reason to use system() in your KDE programs though.
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
More information about the kde-core-devel