I am not really a security or NN expert, but noticed the following in plugins/system/nnframework/helpers/assignments.php
function getParentIds($id = 0, $table = 'menu', $name = 'parent_id')
{
$parent_ids = array();
if (!$id) {
return $parent_ids;
}
while ($id) {
$query = 'SELECT '.$name
.' FROM XXXXX__'.$table
.' WHERE id = '.(int) $id
.' LIMIT 1';
$this->_db->setQuery($query);
$id = $this->_db->loadResult();
if ($id) {
$parent_ids[] = $id;
}
}
return $parent_ids;
} The variables name and table are not "quoted". This could be potentially a security issue, right?
PS I had to insert XXXX, because this site apparently uses a very simple method to detect SQL injections (and wouldn't allow to post the code).