-
Notifications
You must be signed in to change notification settings - Fork 240
Conversation
5a5914f
to
772679a
Compare
www/class/centreonFileManager.php
Outdated
@@ -0,0 +1,175 @@ | |||
<?php | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Centreon License header
www/class/centreonImageManager.php
Outdated
@@ -0,0 +1,187 @@ | |||
<?php | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Centreon License header
www/class/iFileManager.php
Outdated
@@ -0,0 +1,15 @@ | |||
<?php | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Centreon License header
www/class/centreonImageManager.php
Outdated
$this->comment | ||
); | ||
return $img_ids; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe return false ?
//update relation | ||
$query = "UPDATE view_img_dir_relation SET dir_dir_parent_id = '" . $dirId . | ||
"' WHERE img_img_id = '" . $imgId . "'"; | ||
$pearDB->query($query); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe return true ?
@@ -216,7 +220,7 @@ | |||
} | |||
$action = $form->getSubmitValue("action"); | |||
|
|||
if ($valid) { | |||
if (is_array($valid)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strange validation. I think methods need to return "false" if update or upload doesn't work
I've tried to upload php and js using image format (extensions and headers). Even if file is uploaded, I could not figure out how to execute it. Everything looks good to me. |
Thanks to Sammy FORGIT from Certilience (www.certilience.fr) for having transmitted us the proof of concepts of vulnerabilities