[Maplab-dev] [Bug 1695] [Maplab] (gszAppPath) Remote File Inclusion Vulnerability

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Maplab-dev] [Bug 1695] [Maplab] (gszAppPath) Remote File Inclusion Vulnerability

bugzilla-daemon (Bugzilla)-13
http://bugzilla.maptools.org/show_bug.cgi?id=1695





------- Additional Comments From [hidden email]  2007-04-03 14:47 -------
I propose to exclude url-based paths with this code:

/*
===============================================================
=============
 * Re-build the phtml file, after verifying that it's a local file
 *
===============================================================
========== */
if (strpos($gszAppPath, '://') !== FALSE) {
    $gszAppPath = substr(__FILE__, 0, strpos(__FILE__, 'htdocs\\gmapfactory\\params.php'));
    $gszAppPath = str_replace('\\', '/', $gszAppPath);
}
include_once($gszAppPath."htdocs/gmapfactory/build_phtml.php");


Comments?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
_______________________________________________
Maplab-dev mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/maplab-dev
Loading...