From 09d8128f99c2edc27dd81efc63e9b3c797603ca1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 22 Feb 2011 19:46:51 +0100 Subject: Protect users against ZIP bombs (fixes FS#22991). Signed-off-by: Lukas Fleischer --- web/lib/config.inc.proto | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/lib') diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index bee6889..80a7e54 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -53,3 +53,8 @@ $LOGIN_TIMEOUT = 7200; # Session timeout when using "Remember me" cookies $PERSISTENT_COOKIE_TIMEOUT = 60 * 60 * 24 * 30; + +# Uncompressed file size limit for submitted tarballs (ZIP bomb protection) - +# please ensure "upload_max_filesize" is additionally set to no more than 3M, +# otherwise this check might be easy to bypass (FS#22991 for details) +$MAX_FILESIZE_UNCOMPRESSED = 1024 * 1024 * 8; -- cgit v1.2.3-70-g09d2