Full Disclosure mailing list archives

Re: Back To The Future: Unix Wildcards Gone Wild


From: Nico Le Moin <nicolemoin01 () gmail com>
Date: Sun, 29 Jun 2014 10:12:20 +0200

This happens on f5 appliances: the tomcat user can upload files to
/shared/images , then this root process periodically scans the directory
looking for firmware. Shell expansion causes privesc here :p

Also, there are no csrf tokens in the firmware upload form.

vdbs can go wild now :p



On Sat, Jun 28, 2014 at 11:29 PM, Daniel Miller <bonsaiviking () gmail com>
wrote:

On Sat, Jun 28, 2014 at 5:06 AM, fulldisclosure <
fulldisclosure () evolution-hosting eu> wrote:

to be honest, bash shouldn't expand * to "file1 file2 file3 -rf..." it
should do it to "  'file1' 'file2' 'file3' '\-rf'..." instead, with all
meta chars escaped properly.


But this breaks my directory metadata scheme: important directories contain
a file named "-i", unimportant ones have "-f".

_______________________________________________
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/


_______________________________________________
Sent through the Full Disclosure mailing list
http://nmap.org/mailman/listinfo/fulldisclosure
Web Archives & RSS: http://seclists.org/fulldisclosure/


Current thread: