Last active
December 28, 2016 12:38
-
-
Save cebe/d0f5631b432c520a2e6f6be8beddf116 to your computer and use it in GitHub Desktop.
command for finding vulnerable files and line of code for https://isc.sans.edu/forums/diary/Critical+security+update+PHPMailer+5218+CVE201610033/21855/ finds also really old versions, e.g. 2.0.4.
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
#!/bin/bash | |
for file in $(find /var/www |grep class.phpmailer.php) ; do echo $file; grep -ni '%s["'\''], $this->Sender' $file ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A quick patch (in case you can not upgrade easily from an old version) will be to put
escapeshellarg()
around$this->Sender
.