Skip to content

Commit 3f13595

Browse files
author
Maciej Malarz
committed
Fix security misconfiguration vulnerability allowing local remote arbitrary code execution.
1 parent d23d95c commit 3f13595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Doctrine/ODM/MongoDB/Hydrator/HydratorFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ public function hydrate(\$document, \$data, array \$hints = array())
414414
$tmpFileName = $fileName . '.' . uniqid('', true);
415415
file_put_contents($tmpFileName, $code);
416416
rename($tmpFileName, $fileName);
417-
chmod($fieldName, 0664);
417+
chmod($fileName, 0664);
418418
}
419419
}
420420

0 commit comments

Comments
 (0)