Skip to content

Commit

Permalink
[security] fixed issue #13959: RCE via resource file upload as authen…
Browse files Browse the repository at this point in the history
…ticated user
  • Loading branch information
LouisGac authored and lacrioque committed Aug 15, 2018
1 parent 47d8381 commit c54997c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/third_party/pclzip/pclzip.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,9 @@ function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path,
}
}

// Added by LS Team to check for invalid paths
$p_entry['filename'] = get_absolute_path($p_entry['filename']);

// ----- Add the path
if ($p_path != '') {
$p_entry['filename'] = $p_path."/".$p_entry['filename'];
Expand Down

0 comments on commit c54997c

Please sign in to comment.