mirror of
https://github.com/fuzzdb-project/fuzzdb.git
synced 2025-02-23 03:18:25 +00:00
Add PNG IDAT chunk webshell link & cleanup
This commit is contained in:
parent
837c737b28
commit
c4d8de6c78
1 changed files with 21 additions and 37 deletions
|
@ -20,75 +20,59 @@ File notes:
|
|||
|
||||
**alt-extensions-php.fuzz.txt**
|
||||
|
||||
Alternative ways of expressing file extensions that will be interpreted correctly by the target filesystem/app and can be used to bypass blacklist filters
|
||||
|
||||
|
||||
**file-ul-filter-bypass-commonly-writable-directories.fuzz.txt**
|
||||
Alternative ways of expressing file extensions that will be interpreted correctly by the target filesystem/app and can be used to bypass blacklist filters:
|
||||
|
||||
**file-ul-filter-bypass-commonly-writable-directories.fuzz.txt** <br>
|
||||
File directory names that experience has shown are often writable
|
||||
|
||||
|
||||
**file-ul-filter-bypass-microsoft-asp-filetype-bf.fuzz.txt**
|
||||
|
||||
**file-ul-filter-bypass-microsoft-asp-filetype-bf.fuzz.txt** <br>
|
||||
``` {ASPSCRIPT} ``` gets regex replaced with the shell or other file you are trying to upload, {EXT} should be brute-forced with payloads from discovery/filename-bruteforce/file-extensions/, since some file upload types may be allowed that are not listed.
|
||||
|
||||
|
||||
**file-ul-filter-bypass-microsoft-asp.fuzz.txt**
|
||||
|
||||
**file-ul-filter-bypass-microsoft-asp.fuzz.txt** <br>
|
||||
this file contains a number of common predictable values. Add more if other file types are allowed, or use the filetype-bf version of this fuzzfile - ``` {ASPSCRIPT} ``` gets regex replaced.
|
||||
|
||||
|
||||
**file-ul-filter-bypass-ms-php.fuzz.txt**
|
||||
|
||||
**file-ul-filter-bypass-x-platform-php.fuzz.txt**
|
||||
|
||||
php on microsoft, cross-platform. use both on ms.
|
||||
|
||||
Use exiftool http://www.sno.phy.queensu.ca/~phil/exiftool/ to create a .jpg image with the meta comment field set to:
|
||||
**file-ul-filter-bypass-x-platform-php.fuzz.txt** <br>
|
||||
php on microsoft, cross-platform. use both on ms. <br>
|
||||
Use exiftool http://www.sno.phy.queensu.ca/~phil/exiftool/ to create a .jpg image with the meta comment field set to:<br>
|
||||
|
||||
``` <?php phpinfo(); ?> ```
|
||||
|
||||
then regex replace ``` {PHPSCRIPT} ``` in the fuzzfile payload with the name of your .jpg file in the target directory
|
||||
|
||||
|
||||
**invalid-filenames-microsoft.fuzz.txt**
|
||||
|
||||
Useful for causing error messages that contain an absolute drivepath, such as if you don't know where the file uploader puts files
|
||||
then regex replace ``` {PHPSCRIPT} ``` in the fuzzfile payload with the name of your .jpg file in the target directory<br>
|
||||
|
||||
**invalid-filenames-microsoft.fuzz.txt** <br>
|
||||
Useful for causing error messages that contain an absolute drivepath, such as if you don't know where the file uploader puts files <br>
|
||||
regex replace ``` {EXT} ``` with allowed extension type
|
||||
|
||||
|
||||
**file-ul-filter-bypass-x-platform-generic.fuzz.txt**
|
||||
|
||||
**file-ul-filter-bypass-x-platform-generic.fuzz.txt** <br>
|
||||
These might bypass a file upload blacklist but be written in a way that leaves them executable because of the filetype
|
||||
regex replace ``` {PHPSCRIPT} ``` with your script name
|
||||
regex replace ``` {PHPSCRIPT} ``` with your script name <br>
|
||||
|
||||
**invalid-filenames-linux.fuzz.txt** <br>
|
||||
invalid filenames under linux, and since there aren't too many of those (there's one), other filepaths that may cause problems. these can be used to attempt to cause an error condition during file upload bypass attempts which might reveal an absolute path. Useful if you're not sure where your files are landing. <br>
|
||||
|
||||
**invalid-filenames-linux.fuzz.txt**
|
||||
|
||||
invalid filenames under linux, and since there aren't too many of those (there's one), other filepaths that may cause problems. these can be used to attempt to cause an error condition during file upload bypass attempts which might reveal an absolute path. Useful if you're not sure where your files are landing.
|
||||
|
||||
|
||||
**invalid-filesystem-chars-microsoft.fuzz.txt**
|
||||
|
||||
list of invalid characters for windows filesystem - these can be used to attempt to cause an error condition during file upload bypass attempts which might reveal an absolute path. Useful if you're not sure where your files are landing. fuzz these into a filename during upload attempts
|
||||
|
||||
**invalid-filesystem-chars-microsoft.fuzz.txt** <br>
|
||||
list of invalid characters for windows filesystem - these can be used to attempt to cause an error condition during file upload bypass attempts which might reveal an absolute path. Useful if you're not sure where your files are landing. fuzz these into a filename during upload attempts <br>
|
||||
|
||||
**Addtl Tips:**
|
||||
|
||||
**For mod_cgi Server Side Include upload attacks:**
|
||||
|
||||
``` <!--#exec cmd="ls" --> ```
|
||||
|
||||
or, on Windows
|
||||
|
||||
or, on Windows <br>
|
||||
``` <!--#exec cmd="dir" --> ```
|
||||
|
||||
Sometimes you can overwrite .htaccess in an upload folder on Apache httpd, if so,
|
||||
try setting jpg mimetype handler to executable. If you can set the target directory, try to fuzz the
|
||||
list of all dirs you've enumerated on the servers, and try the commonly writable directory fuzzfile.
|
||||
|
||||
** example .htaccess entry that sets mime type .jpg to be executable:**
|
||||
|
||||
**example .htaccess entry that sets mime type .jpg to be executable:** <br>
|
||||
``` AddType application/x-httpd-php .jpg ```
|
||||
|
||||
**Encoding Web Shells in PNG IDAT chunks** <br>
|
||||
https://www.idontplaydarts.com/2012/06/encoding-web-shells-in-png-idat-chunks/ <br>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue