Skip to content

Commit

Permalink
[CVE-2012-3448] Backporting fix for arbitrary PHP code execution
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiou authored and dpocock committed Aug 15, 2012
1 parent 8cf4f44 commit 3404fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@

$graph_file = "$graphdir/$graph.php";

if ( is_readable($graph_file) ) {
if ( is_readable($graph_file) and realpath($graphdir) === dirname(realpath($graph_file)) ) {
include_once($graph_file);

$graph_function = "graph_${graph}";
Expand Down

0 comments on commit 3404fbf

Please sign in to comment.