- Nov 18, 2020
-
-
Roeland Jago Douma authored
frame-ancestors doesn't fall back to default-src. So when we apply a very restricted CSP we should make sure to set it to 'none' and not leave it empty. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jun 25, 2020
-
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
- Apr 10, 2020
-
-
Christoph Wurst authored
To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 26, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 25, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Nov 27, 2019
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Nov 22, 2019
-
-
Roeland Jago Douma authored
* Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Aug 10, 2019
-
-
Roeland Jago Douma authored
This adds the events and the classes to modify the feature policy. It also adds a default restricted feature policy. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Apr 16, 2019
-
-
Roeland Jago Douma authored
For #14179 By default responses should have the strictest (and simplest) CSP possible. Only template responses should require an actual CSP. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jan 08, 2019
-
-
Roeland Jago Douma authored
For #13042 Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jan 07, 2019
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Oct 14, 2018
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Oct 24, 2017
-
-
Morris Jobke authored
Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
- Jul 20, 2017
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Mar 29, 2017
-
-
Morris Jobke authored
Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
- Mar 16, 2017
-
-
Lukas Reschke authored
Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
- Jan 10, 2017
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Jul 11, 2016
-
-
Roeland Jago Douma authored
* getMock is deprecated. * \PDOStatement mocking fails hard on phpunit 4.8
-
- May 20, 2016
-
-
Joas Schilling authored
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
-
- May 18, 2016
-
-
Joas Schilling authored
-
- Oct 21, 2015
-
-
Lukas Reschke authored
-
- Sep 29, 2015
-
-
Lukas Reschke authored
Fixes https://github.com/owncloud/core/issues/19438
-
- Aug 13, 2015
-
-
Lukas Reschke authored
While BREACH requires the following three factors to be effectively exploitable we should add another mitigation: 1. Application must support HTTP compression 2. Response most reflect user-controlled input 3. Response should contain sensitive data Especially part 2 is with ownCloud not really given since user-input is usually only echoed if a CSRF token has been passed. To reduce the risk even further it is however sensible to encrypt the CSRF token with a shared secret. Since this will change on every request an attack such as BREACH is not feasible anymore against the CSRF token at least.
-
- Aug 10, 2015
-
-
sualko authored
-
- Feb 16, 2015
-
-
Lukas Reschke authored
This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
-
Lukas Reschke authored
This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components. Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers: ```php $response = new TemplateResponse('activity', 'list', []); $cspHelper = new ContentSecurityPolicyHelper(); $cspHelper->addAllowedScriptDomain('www.owncloud.org'); $response->addHeader('Content-Security-Policy', $cspHelper->getPolicy()); return $response; ``` Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
-
- Feb 09, 2015
-
-
Lukas Reschke authored
When `mod_unique_id` is enabled the ID generated by it will be used for logging. This allows for correlation of the Apache logs and the ownCloud logs. Testplan: - [ ] When `mod_unique_id` is enabled the request ID equals the one generated by `mod_unique_id`. - [ ] When `mod_unique_id` is not available the request ID is a 20 character long random string - [ ] The generated Id is stable over the lifespan of one request Changeset looks a little bit larger since I had to adjust every unit test using the HTTP\Request class for proper DI. Fixes https://github.com/owncloud/core/issues/13366
-
- Dec 04, 2014
-
-
Lukas Reschke authored
-
- Nov 19, 2014
-
-
Joas Schilling authored
-
- Oct 29, 2014
-
-
Bernhard Posselt authored
fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
-
- Jun 10, 2014
-
-
Bernhard Posselt authored
-
Bernhard Posselt authored
-
- Jun 05, 2014
-
-
Bernhard Posselt authored
-
- May 11, 2014
-
-
Bernhard Posselt authored
-
Bernhard Posselt authored
-
Bernhard Posselt authored
-
- May 09, 2014
-
-
Bernhard Posselt authored
remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
-
- Oct 11, 2013
-
-
Thomas Tanghus authored
-