Logs Poisoning
Theory
Log Poisoning is a common technique used to gain a reverse shell from a LFI vulnerability. To make it work an attacker attempts to inject malicious input to the server log.
Practice
If you use double quotes for the shell instead of simple quotes, the double quotes will be modified for the string "quote;", PHP will throw an error there and nothing else will be executed
make sure you write correctly the payload or PHP will error every time it tries to load the log file and you won't have a second opportunity.
References
Last updated
Was this helpful?