ZenphotoCMS Forum
Undefined index in cron_runner - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Undefined index in cron_runner (/thread-13012.html)



Undefined index in cron_runner - vincent3569 - 2018-02-01

hi,

in my debug log, I can see that
`
{17190:Wed, 24 Jan 2018 01:35:07 GMT} Zenphoto v1.4.14
NOTICE: Undefined index: link in /home/avbo7291/public_html/zenphoto/zp-core/cron_runner.php on line 16
{26594:Sun, 28 Jan 2018 22:21:34 GMT}
NOTICE: Undefined index: link in /home/avbo7291/public_html/zenphoto/zp-core/cron_runner.php on line 16
`

and in the same time I can see in my security log:
`
2018-01-24 02:35:07 65.55.210.73 Admin access Failed /zp-core/cron_runner.php
2018-01-28 23:21:34 199.30.24.102 Admin access Failed /zp-core/cron_runner.php
`

any explanations of that log?

in fact, in actual code of cron_runner.php, I can see (1st line is line 16):
`
[...]
$link = sanitize($_POST['link']);
if (isset($_POST['auth'])) {
$auth = sanitize($_POST['auth']);
$admin = $_zp_authority->getMasterUser();
if (sha1($link . serialize($admin)) == $auth && $admin->getRights()) {
$_zp_current_admin_obj = $admin;
$_zp_loggedin = $admin->getRights();
}
}
`

and there is no test if `$_POST['link']` is set or not


Undefined index in cron_runner - acrylian - 2018-02-01

I have no idea about why the message appears. The db backup tool uses this for example. It might very well be an attempt by someone to do something unwanted.

I have added index check for "link" it to the support build


Undefined index in cron_runner - vincent3569 - 2018-03-06

comment to be deleted (error of me)


Undefined index in cron_runner - acrylian - 2018-03-06

Allright ;-)