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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)