[Plugin: Snapshot Backup] ftp_connect errors in PHP error log
-
Hello,
php error:
[20-Aug-2011 16:56:16] PHP Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home1/xxxxxx/public_html/wp-content/plugins/snapshot-backup/includes/sendaway.php on line 13I noticed php errors were occurring every 1 to 2 minutes in a php error log on a site that i am looking at. The frequency of the ftp_connect errors is in minutes below for a series of these ftp_connect errors was:
1:46
1:00
1:37
1:31
1:23
1:35
1:59
This particular site did not have ftp info added (password, etc) and was not set to automatically perform snapshot backups – ie Do not perform automatic backups.What concerns me is that when i look at the coding in /includes/sendaway.php is that i do not see any security checking in the code. I see this >>> // connect to host
$conn = ftp_connect($host);but shouldn’t there be some security checking going on here?
if (current_user_can(‘manage_options’)) {
The WordPress Settings API that this plugin is using for DB options does perform security checking (nonce) automatically, but still shouldn’t there be a security check here to make sure the ftp_connect function cannot be executed by anyone that is does not have manage_options or other admin permissions? Thanks.
The topic ‘[Plugin: Snapshot Backup] ftp_connect errors in PHP error log’ is closed to new replies.