LFI
Local File Inclusion
PHP Filters & Wrappers
PHP Filters & Wrappers
Filter Inclusion
Filter Inclusion
Exfiltrate files
Exfiltrate the source code
Remote Code Execution
Remote Code Execution
The zip://
stream wrapper can be used in specific attack scenarios to potentially execute malicious code.
First, create the
webshell
:
Second,
zip
the file:
Important to mention that the file extension can be different from
.zip
, the wrapper will still execute the code inside.Third, upload the file and once is done, use the wrapper:
Have in mind that
%23
is the URL encoded version of#
and is used to reference a file inside thezip
The %00
Null Terminator
%00
Null TerminatorIs often used to terminate a string prematurely, effectively allowing attackers to manipulate the filename or file extension.
Chaining
Chaining
If it's possible to access logs try
Log Poisoning
Last updated