Fix security issue: Unexpected access to any tasks from a shared public board
This commit is contained in:
@@ -5,6 +5,10 @@ Improvements:
|
|||||||
|
|
||||||
* Added support for HTTP header "X-Forwarded-Proto: https"
|
* Added support for HTTP header "X-Forwarded-Proto: https"
|
||||||
|
|
||||||
|
Security issues:
|
||||||
|
|
||||||
|
* Access allowed to any tasks from the shared public board by changing the URL parameters
|
||||||
|
|
||||||
Version 1.0.26
|
Version 1.0.26
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
|||||||
@@ -23,13 +23,17 @@ class Task extends Base
|
|||||||
|
|
||||||
// Token verification
|
// Token verification
|
||||||
if (empty($project)) {
|
if (empty($project)) {
|
||||||
$this->forbidden(true);
|
return $this->forbidden(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$task = $this->taskFinder->getDetails($this->request->getIntegerParam('task_id'));
|
$task = $this->taskFinder->getDetails($this->request->getIntegerParam('task_id'));
|
||||||
|
|
||||||
if (empty($task)) {
|
if (empty($task)) {
|
||||||
$this->notfound(true);
|
return $this->notfound(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($task['project_id'] != $project['id']) {
|
||||||
|
return $this->forbidden(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->response->html($this->helper->layout->app('task/public', array(
|
$this->response->html($this->helper->layout->app('task/public', array(
|
||||||
|
|||||||
Reference in New Issue
Block a user