Changeset 746

Show
Ignore:
Timestamp:
01/17/08 00:41:06 (2 years ago)
Author:
hachi
Message:

Don't allow upward directory traversal with concat get.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/Perlbal/ClientHTTPBase.pm

    r725 r746  
    540540    return $self->_simple_response(403, "Multiple file serving isn't enabled") unless $svc->{enable_concatenate_get}; 
    541541    return $self->_simple_response(403, "Too many files requested") if @multiple_files > 100; 
     542    return $self->_simple_response(403, "Bogus filenames") if grep { m!(?:\A|/)\.\./! } @multiple_files; 
    542543 
    543544    my $remain = @multiple_files + 1;  # 1 for the base directory