- Nov 21, 2020
-
-
Lukas Reschke authored
Should remove some false positives. https://psalm.dev/docs/security_analysis/avoiding_false_positives/ Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
- Nov 20, 2020
-
-
Morris Jobke authored
Also cleans up only non-classname services in the server container Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
Lukas Reschke authored
This adds the Psalm Security Analysis, as described at https://psalm.dev/docs/security_analysis/ It also adds a plugin for adding input into AppFramework. The results can be viewed in the GitHub Security tab at https://github.com/nextcloud/server/security/code-scanning **Q&A:** Q: Why do you not use the shipped Psalm version? A: I do a lot of changes to the Psalm Taint behaviour. Using released versions is not gonna get us the results we want. Q: How do I improve false positives? A: https://psalm.dev/docs/security_analysis/avoiding_false_positives/ Q: How do I add custom sources? A: https://psalm.dev/docs/security_analysis/custom_taint_sources/ Q: We should run this on apps! A: Yes. Q: What will change in Psalm? A: Quite some of the PHP core functions are not yet marked to propagate the taint. This leads to results where the taint flow is lost. That's something that I am currently working on. Q: Why is the plugin MIT licensed? A: Because its the first of its kind (based on GitHub Code Search) and I want other people to copy it if they want to. Security is for all :) Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
Carlos Ferreira authored
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Nov 19, 2020
-
-
Roeland Jago Douma authored
We use this already in several places where we just pass strings or numbers. This all works because we just convert it to a json response in the end. So better to have the typehints reflect this. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
Nextcloud bot authored
-
- Nov 18, 2020
-
-
medcloud authored
Signed-off-by:
medcloud <42641918+medcloud@users.noreply.github.com>
-
Maxence Lange authored
Signed-off-by:
Maxence Lange <maxence@artificial-owl.com>
-
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>
-
Christoph Wurst authored
During app installation we run migration steps. Those steps may use services the app registers or classes from composer. Hence we have to make sure the app runs through the registration. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Nov 17, 2020
-
-
Roeland Jago Douma authored
This is not the end. IRouter needs to burn. But it is a start.
we didn't start the fire Signed-off-by:Roeland Jago Douma <roeland@famdouma.nl>
-
- Nov 16, 2020
-
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Robin Appelman authored
Signed-off-by:
Robin Appelman <robin@icewind.nl>
-
Daniel Calviño Sánchez authored
The default expiration date for internal shares was set from the default link expiration date instead of the internal one. Signed-off-by:
Daniel Calviño Sánchez <danxuliu@gmail.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
- Nov 14, 2020
-
-
Nextcloud bot authored
-
- Nov 13, 2020
-
-
Vincent Petry authored
The personal info section of the personal settings is querying the storage quota information. For this it requires the FS to be setup which is not always guaranteed. This fixes an issue where refreshing the settings page would cause it to fail after Redis caches are full. It is likely that when Redis cache is populated, some code path is initializing the FS, so it works so far. But when the cache is populated, that code path is skipped so the FS is not guaranteed to be setup... Signed-off-by:
Vincent Petry <vincent@nextcloud.com>
-
Julius Härtl authored
Signed-off-by:
Julius Härtl <jus@bitgrid.net>
-
- Nov 11, 2020
-
-
Roeland Jago Douma authored
In php8 this starts throwing warnings. And since we use it quite often we flood the log. This moves it to getType which does the same. Only non deprecated now. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
Joas Schilling authored
-
Christoph Wurst authored
-
Morris Jobke authored
Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Nextcloud bot authored
-
- Nov 10, 2020
-
-
Morris Jobke authored
Those mappings exist and we will remove the first ones (labeled as `old`): old: `\OC_Hook::listen('OC_Group', 'pre_createGroup', array('run' => true, 'gid' => $gid));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preCreate', function ($gid) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeGroupCreatedEvent` old: `\OC_Hook::emit('OC_User', 'post_createGroup', array('gid' => $gid->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $gid) { ... });` since NC 17 (#18350): `OCP\Group\Events\GroupCreatedEvent` old: `\OC_Hook::emit('OC_Group', 'pre_deleteGroup', array('run' => true, 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeGroupDeletedEvent` old: `\OC_Hook::emit('OC_User', 'post_deleteGroup', array('gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) { ... });` since NC 17 (#18350): `OCP\Group\Events\GroupDeletedEvent` old: `\OC_Hook::emit('OC_Group', 'pre_addToGroup', array('run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { ... });` since NC 17 (#18350): `OCP\Group\Events\BeforeUserAddedEvent` old: `\OC_Hook::emit('OC_Group', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));` since OC 8 (owncloud/core#12618): `$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) { ... });` since NC 17 (#18350): `OCP\Group\Events\UserAddedEvent` Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Primary key columns on Oracle can not have empty strings Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
Christoph Wurst authored
Because often we catch the exception at some point and then the trace is misleading. What's really interesting is the trace of the *previous* exception. Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Nov 09, 2020
-
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-
John Molakvoæ authored
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
Joas Schilling authored
Signed-off-by:
Joas Schilling <coding@schilljs.com>
-