} |
|
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
No arguments
}
|
|
|
|
public function view($id = null, $download = false)
|
|
{
|
|
$upload = $this->Uploads->get($id, ['contain' => ['Requests' => ['Items', 'Companies']], 'conditions' => ['Uploads.active' => true]]);
|
|
|
|
// Urls
|
|
if ($upload->type == 'request')
|
|
{
|
[ (int) 0 => '72' ] [ 'contain' => [ 'Requests' => [ (int) 0 => 'Items', (int) 1 => 'Companies' ] ], 'conditions' => [ 'Uploads.active' => true ] ]
} |
|
/** @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
$result = $callable(...array_values($request->getParam('pass'))); |
|
if ($result instanceof Response) { |
|
$this->response = $result; |
|
} |
|
|
'72'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if ($request->getParam('return')) { |
|
return $response; |
|
} |
|
|
object(App\Controller\UploadsController) { helpers => [] request => object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ [maximum depth reached] ] [protected] data => [[maximum depth reached]] [protected] query => [[maximum depth reached]] [protected] cookies => [[maximum depth reached]] [protected] _environment => [ [maximum depth reached] ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) {} [protected] uri => object(Laminas\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ [maximum depth reached] ] [private] mergeFilesAsObjects => false } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [] components => [] View => null passedArgs => [ (int) 0 => '72' ] modelClass => 'Uploads' viewClass => null viewVars => [ 'newCompanies' => (int) 24, 'documentsToValidateRequests' => (int) 0, 'newRequestsSPTPE' => (int) 0, 'aids' => [ (int) 1 => object(App\Model\Entity\Aid) {}, (int) 2 => object(App\Model\Entity\Aid) {}, (int) 3 => object(App\Model\Entity\Aid) {}, (int) 4 => object(App\Model\Entity\Aid) {}, (int) 5 => object(App\Model\Entity\Aid) {}, (int) 6 => object(App\Model\Entity\Aid) {}, (int) 7 => object(App\Model\Entity\Aid) {}, (int) 8 => object(App\Model\Entity\Aid) {}, (int) 9 => object(App\Model\Entity\Aid) {}, (int) 10 => object(App\Model\Entity\Aid) {}, (int) 11 => object(App\Model\Entity\Aid) {}, (int) 12 => object(App\Model\Entity\Aid) {}, (int) 13 => object(App\Model\Entity\Aid) {}, (int) 14 => object(App\Model\Entity\Aid) {}, (int) 15 => object(App\Model\Entity\Aid) {}, (int) 16 => object(App\Model\Entity\Aid) {}, (int) 17 => object(App\Model\Entity\Aid) {}, (int) 18 => object(App\Model\Entity\Aid) {}, (int) 19 => object(App\Model\Entity\Aid) {}, (int) 20 => object(App\Model\Entity\Aid) {}, (int) 21 => object(App\Model\Entity\Aid) {} ], 'bootstrapSteps' => [ 'afs' => [ [maximum depth reached] ] ], 'formTemplates' => [ 'inputContainer' => '<div class="field {{type}}{{required}}">{{content}}</div>', 'inputContainerError' => '<div class="field {{type}}{{required}} error">{{content}}{{error}}</div>', 'error' => '<div class="ui info message error-message">{{content}}</div>' ], 'roles' => [ 'admin' => '[Admin] Superadmin', 'manager_admin' => '[Agent] Superadmin', 'manager' => '[Agent] Administrateur', 'manager_consult' => '[Agent] Consultation', 'comptable_admin' => '[Comptable] Superadmin', 'comptable' => '[Comptable] Administrateur', 'company' => '[Entreprise] Utilisateur' ], 'authUser' => null ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Security => object(Cake\Controller\Component\SecurityComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Metas => object(App\Model\Table\MetasTable) { 'registryAlias' => 'Metas', 'table' => 'metas', 'alias' => 'Metas', 'entityClass' => 'App\Model\Entity\Meta', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Messages => object(App\Model\Table\MessagesTable) { 'registryAlias' => 'Messages', 'table' => 'messages', 'alias' => 'Messages', 'entityClass' => 'App\Model\Entity\Message', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Aids => object(App\Model\Table\AidsTable) { 'registryAlias' => 'Aids', 'table' => 'aids', 'alias' => 'Aids', 'entityClass' => 'App\Model\Entity\Aid', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Requests => object(App\Model\Table\RequestsTable) { 'registryAlias' => 'Requests', 'table' => 'requests', 'alias' => 'Requests', 'entityClass' => 'App\Model\Entity\Request', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Companies => object(App\Model\Table\CompaniesTable) { 'registryAlias' => 'Companies', 'table' => 'companies', 'alias' => 'Companies', 'entityClass' => 'App\Model\Entity\Company', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Users => object(App\Model\Table\UsersTable) { 'registryAlias' => 'Users', 'table' => 'users', 'alias' => 'Users', 'entityClass' => 'App\Model\Entity\User', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Uploads => object(App\Model\Table\UploadsTable) { 'registryAlias' => 'Uploads', 'table' => 'uploads', 'alias' => 'Uploads', 'entityClass' => 'App\Model\Entity\Upload', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] name => 'Uploads' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\UploadsController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] locations => [ [maximum depth reached] ] [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null, '_csrfToken' => 'c784dc1d59b6c004072c7bd9b4790f6e0ed3fbe71a7bd0e19a46551aa0f8382b6d7f93867d765a823cdd6c9af3e014f76181d8029627bf5b2cc29f38c9d2e30a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null, '_csrfToken' => 'c784dc1d59b6c004072c7bd9b4790f6e0ed3fbe71a7bd0e19a46551aa0f8382b6d7f93867d765a823cdd6c9af3e014f76181d8029627bf5b2cc29f38c9d2e30a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null, '_csrfToken' => 'c784dc1d59b6c004072c7bd9b4790f6e0ed3fbe71a7bd0e19a46551aa0f8382b6d7f93867d765a823cdd6c9af3e014f76181d8029627bf5b2cc29f38c9d2e30a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$token = $this->createToken(); |
|
$request = $this->_addTokenToRequest($token, $request); |
|
$response = $this->_addTokenCookie($token, $request, $response); |
|
|
|
return $next($request, $response); |
|
} |
|
$request = $this->_validateAndUnsetTokenField($request); |
|
|
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null, '_csrfToken' => 'c784dc1d59b6c004072c7bd9b4790f6e0ed3fbe71a7bd0e19a46551aa0f8382b6d7f93867d765a823cdd6c9af3e014f76181d8029627bf5b2cc29f38c9d2e30a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null, '_csrfToken' => 'c784dc1d59b6c004072c7bd9b4790f6e0ed3fbe71a7bd0e19a46551aa0f8382b6d7f93867d765a823cdd6c9af3e014f76181d8029627bf5b2cc29f38c9d2e30a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $response); |
|
} |
|
} |
|
|
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] [protected] callables => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => '72' ], 'controller' => 'Uploads', 'action' => 'view', 'plugin' => null, '_matchedRoute' => '/documents/consulter/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
|
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'TEMP' => '/tmp', 'TMPDIR' => '/tmp', 'TMP' => '/tmp', 'HOSTNAME' => '', 'USER' => 'p_ti_carsat_bfc_osaf', 'HOME' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/documents/consulter/72', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/documents/consulter/72', 'REMOTE_PORT' => '35200', 'SCRIPT_FILENAME' => '/httpdocs/ti.carsat-bfc-osaf.fr/webroot/index.php', 'SERVER_ADMIN' => 'exploit@planetb.fr', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/var/www/vhosts/ti.carsat-bfc-osaf.fr/httpdocs/ti.carsat-bfc-osaf.fr', 'REMOTE_ADDR' => '3.226.254.255', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '10.201.71.1', 'SERVER_NAME' => 'ti.carsat-bfc-osaf.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'HTTP_HOST' => 'ti.carsat-bfc-osaf.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'ti.carsat-bfc-osaf.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711635287.5266, 'REQUEST_TIME' => (int) 1711635287, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'documents/consulter/72' [protected] base => '' [protected] webroot => '/' [protected] here => '/documents/consulter/72' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'ti.carsat-bfc-osaf.fr' [private] port => null [private] path => '/documents/consulter/72' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server.
|
|
$server = new Server(new Application(dirname(__DIR__) . '/config'));
|
|
|
|
// Run the request/response through the application and emit the response.
|
|
$server->emit($server->run());
|
|
|
No arguments
If you want to customize this error message, create src/Template/Error/error500.ctp