Skip to content

Commit

Permalink
[DCOM-293] Fix security misconfiguration vulnerability that can lead …
Browse files Browse the repository at this point in the history
…to local arbitrary code execution.
  • Loading branch information
beberlei committed Aug 31, 2015
1 parent 64e2a6a commit b3ae747
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/Common/Proxy/ProxyGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ public function generateProxyClass(ClassMetadata $class, $fileName = false)
$tmpFileName = $fileName . '.' . uniqid('', true);

file_put_contents($tmpFileName, $proxyCode);
chmod($tmpFileName, 0664);
rename($tmpFileName, $fileName);
}

Expand Down

0 comments on commit b3ae747

Please sign in to comment.