mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 13:21:54 +02:00
Issue GHSA-92fr-7h4f-22pp
This commit is contained in:
@@ -157,9 +157,14 @@ class e_fileTest extends \Codeception\Test\Unit
|
||||
array('path'=> e_SYSTEM."filetypes.xml", 'expected' => true), // permitted
|
||||
array('path'=> e_PLUGIN."gallery/images/butterfly.jpg", 'expected' => true), // permitted
|
||||
array('path'=> 'http://127.0.0.1:8070/file.svg', 'expected'=>false), // not permitted
|
||||
array('path'=> 'http://127.0.0.1:8070/butterfly.jpg', 'expected'=>true), // permitted
|
||||
array('path'=> 'http://127.0.0.1:8070/butterfly.jpg', 'expected'=>false), // not permitted
|
||||
array('path'=> 'http://localhost:8070/file.svg', 'expected'=>false), // not permitted
|
||||
array('path'=> 'http://localhost:8070/butterfly.jpg', 'expected'=>false), // not permitted
|
||||
array('path'=> 'http://domain.com:8070/file.svg', 'expected'=>false), // suspicious
|
||||
array('path'=> 'http://domain.com:8070/butterfly.jpg', 'expected'=>true), // permitted
|
||||
array('path'=> 'http://127.0.0.1/bla.php', 'expected'=>false), // suspicious
|
||||
array('path'=> 'http://127.0.0.1/bla.php?butterfly.jpg', 'expected'=>false), // suspicious
|
||||
|
||||
);
|
||||
|
||||
foreach($isAllowedTest as $file)
|
||||
|
Reference in New Issue
Block a user