Skip to content

Commit

Permalink
Fix potential DoS vulnerability in ImageProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWolla committed Sep 29, 2016
1 parent 9e8aa97 commit d08d11c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wcfsetup/install/files/lib/action/ImageProxyAction.class.php
Expand Up @@ -61,7 +61,9 @@ public function execute() {
try {
// download image
try {
$request = new HTTPRequest($url);
$request = new HTTPRequest($url, [
'maxLength' => 10 * (1 << 20) // download at most 10 MiB
]);
$request->execute();
}
catch (SystemException $e) {
Expand Down

0 comments on commit d08d11c

Please sign in to comment.