[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d46d07a218104bdff31937d8db11adfb@webmail.tengu.ch>
Date: Wed, 21 Sep 2011 11:39:20 +0200
From: Cédric Jeanneret <cjeanneret@...gu.ch>
To: <full-disclosure@...ts.grok.org.uk>
Subject: Re: Possibility to exploit bash "*" processing
Consider using:
rm ./*
this will prevent the dashed files to be taken as options..
Cheers,
C.
On Tue, 20 Sep 2011 13:29:11 +0300, Kirils Solovjovs wrote:
> Brought this up a year ago. Seems that no attention has been given to
> this so far.
>
> See this screenshot for PoC:
> http://02.lv/f/2010/08/05/poc-launums.png
>
> here's a non-destructive PoC:
> http://02.lv/f/2010/08/05/poc-*.png
>
> One solution would be to modify "*" processing so that it ignores
> filenames that start "-" similarly as it ignores filenames that start
> with "."
>
> Or we could just train users to always type "--" before the list of
> arguments. :)
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Powered by blists - more mailing lists