Re: RFC: source files without opening tag

From: Date: Mon, 09 Apr 2012 23:35:32 +0000
Subject: Re: RFC: source files without opening tag
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14  Groups: php.internals 
Request: Send a blank email to internals+get-59580@lists.php.net to get a copy of this message
Hi, 2012/4/10 Stas Malyshev <smalyshev@sugarcrm.com>: > Hi! > >> 1. Find FLI vulnerable application. >> 2. Find a way to inject $_SESSION >> 3. Use session file to execute arbitrary PHP code. > > So, you assume you have broken application with no security AND it > allows you to inject arbitrary data in the session (which probably means > broken authorization too) and then somehow it's PHP vulnerability? I'm > sorry but this does not make too much sense to me. If you have an > application that allows to execute arbitrary code on external request, > this app has no security. How it is a vulnerability in PHP? It's a design vulnerability. It is not has to be attack-able security hole without broken code. There are many security issues and countermeasure like this. e.g. register globals in PHP, stack smashing attack in C, etc. Some people are trying to introduce TAG less execution. Wise choice for TAG less execution would be removing famous LFI vulnerability from PHP. Regards, P.S. BTW, LFI is not only good for execution, but also information disclosure. Just is case, people on this thread didn't realize it. -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#59580) next »