summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fall back to the ownCloud default encryption module and aes128 if we read a ↵Bjoern Schiessle2015-04-278-20/+88
| | | | encrypted file without a header
* [tx-robot] updated from transifexJenkins for ownCloud2015-04-2720-0/+92
|
* [tx-robot] updated from transifexJenkins for ownCloud2015-04-2622-18/+62
|
* Merge pull request #15834 from owncloud/make-temporary-file-really-uniqueLukas Reschke2015-04-252-42/+86
|\ | | | | Fix collision on temporary files + adjust permissions
| * Fix collision on temporary files + adjust permissionsLukas Reschke2015-04-232-42/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changeset hardens the temporary file and directory creation to address multiple problems that may lead to exposure of files to other users, data loss or other unexpected behaviour that is impossible to debug. **[CWE-668: Exposure of Resource to Wrong Sphere](https://cwe.mitre.org/data/definitions/668.html)** The temporary file and folder handling as implemented in ownCloud is performed using a MD5 hash over `time()` concatenated with `rand()`. This is insufficiently and leads to the following security problems: The generated filename could already be used by another user. It is not verified whether the file is already used and thus temporary files might be used for another user as well resulting in all possible stuff such as "user has file of other user". Effectively this leaves us with: 1. A timestamp based on seconds (no entropy at all) 2. `rand()` which returns usually a number between 0 and 2,147,483,647 Considering the birthday paradox and that we use this method quite often (especially when handling external storage) this is quite error prone and needs to get addressed. This behaviour has been fixed by using `tempnam` instead for single temporary files. For creating temporary directories an additional postfix will be appended, the solution is for directories still not absolutely bulletproof but the best I can think about at the moment. Improvement suggestions are welcome. **[CWE-378: Creation of Temporary File With Insecure Permissions](https://cwe.mitre.org/data/definitions/378.html)** Files were created using `touch()` which defaults to a permission of 0644. Thus other users on the machine may read potentially sensitive information as `/tmp/` is world-readable. However, ownCloud always encourages users to use a dedicated machine to run the ownCloud instance and thus this is no a high severe issue. Permissions have been adjusted to 0600. **[CWE-379: Creation of Temporary File in Directory with Incorrect Permissions](https://cwe.mitre.org/data/definitions/379.html)** Files were created using `mkdir()` which defaults to a permission of 0777. Thus other users on the machine may read potentially sensitive information as `/tmp/` is world-readable. However, ownCloud always encourages users to use a dedicated machine to run the ownCloud instance and thus this is no a high severe issue. Permissions have been adjusted to 0700.Please enter the commit message for your changes.
* | [tx-robot] updated from transifexJenkins for ownCloud2015-04-2522-0/+36
| |
* | Merge pull request #15683 from owncloud/block-legacy-clientsLukas Reschke2015-04-244-0/+220
|\ \ | | | | | | Block old legacy clients
| * | Catch not existing User-Agent headerLukas Reschke2015-04-232-2/+17
| | | | | | | | | | | | In case of an not sent UA header consider the client as valid
| * | Reword configuration textLukas Reschke2015-04-201-5/+8
| | |
| * | Use 403 instead a 50x responseLukas Reschke2015-04-202-11/+11
| | |
| * | WordingLukas Reschke2015-04-201-1/+1
| | |
| * | Block old legacy clientsLukas Reschke2015-04-204-0/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This Pull Request introduces a SabreDAV plugin that will block all older clients than 1.6.1 to connect and sync with the ownCloud instance. This has multiple reasons: 1. Old ownCloud client versions before 1.6.0 are not properly working with sticky cookies for load balancers and thus generating sessions en masse 2. Old ownCloud client versions tend to be horrible buggy In some cases we had in 80minutes about 10'000 sessions created by a single user. While this change set does not really "fix" the problem as 3rdparty legacy clients are affected as well, it is a good work-around and hopefully should force users to update their client
* | | Merge pull request #15774 from owncloud/jknockaert-patch-1Vincent Petry2015-04-242-20/+71
|\ \ \ | | | | | | | | fix encryption header error
| * | | fix unit testsBjoern Schiessle2015-04-242-9/+26
| | | |
| * | | enable testWriteWriteReadjknockaert2015-04-241-14/+14
| | | |
| * | | enable testRewindjknockaert2015-04-241-14/+14
| | | |
| * | | Update encryption.phpjknockaert2015-04-241-1/+2
| | | |
| * | | Update encryption.phpjknockaert2015-04-241-14/+14
| | | |
| * | | disable r+ testjknockaert2015-04-241-14/+14
| | | |
| * | | fixed namejknockaert2015-04-241-1/+1
| | | |
| * | | add two testsjknockaert2015-04-241-0/+30
| | | | | | | | | | | | testRewind tests reading and writing after rewind on an encrypted stream; testWriteWriteRead tests r+ mode
| * | | Update encryption.phpjknockaert2015-04-241-8/+8
| | | |
| * | | fix encryption header errorjknockaert2015-04-241-13/+16
|/ / / | | | | | | When moving back the pointer to position 0 (using stream_seek), the pointer on the encrypted stream will be moved to the position immediately after the header. Reading the header again (invoked by stream_read) will cause an error, writing the header again (invoked by stream_write) will corrupt the file. Reading/writing the header should therefore happen when opening the file rather than upon read or write. Note that a side-effect of this PR is that empty files will still get an encryption header; I think that is OK, but it is different from how it was originally implemented.
* | | Merge pull request #15839 from owncloud/enc_fix_moving_shared_filesJoas Schilling2015-04-2410-75/+399
|\ \ \ | | | | | | | | [encryption] fix moving files to a shared folder
| * | | Add test "operation on keys failed"Joas Schilling2015-04-241-7/+10
| | | |
| * | | Deduplicate data provider and fix method visibilityJoas Schilling2015-04-242-19/+15
| | | |
| * | | Use public interfaces for type hintingJoas Schilling2015-04-242-13/+13
| | | |
| * | | only update share keys if the file was encryptedBjoern Schiessle2015-04-244-6/+25
| | | |
| * | | update share keys if file gets copiedBjoern Schiessle2015-04-232-19/+70
| | | |
| * | | update share keys if a file is moved to a shared folderBjoern Schiessle2015-04-238-46/+301
| | |/ | |/|
* | | Merge pull request #15838 from owncloud/code-checker-to-ignore-testsJoas Schilling2015-04-241-1/+1
|\ \ \ | | | | | | | | Ignore test folders when checking the code for compliance
| * | | Ignore test folders when checking the code for complianceThomas Müller2015-04-231-1/+1
| | | |
* | | | Merge pull request #15855 from owncloud/teardownaftercommandLukas Reschke2015-04-241-0/+1
|\ \ \ \ | | | | | | | | | | Tear down FS after running trash expire
| * | | | Tear down FS after running trash expireVincent Petry2015-04-241-0/+1
| | | | |
* | | | | Merge pull request #15835 from owncloud/delete-permission-iconJan-Christoph Borchardt2015-04-245-5/+62
|\ \ \ \ \ | |/ / / / |/| | | | Show hint if there is no delete permission
| * | | | Show hint if there is no delete permissionMorris Jobke2015-04-235-5/+62
| | |/ / | |/| | | | | | | | | | | | | | | | | | * add class .no-permission which shows the default delete icon * fixes #15172 * add unit test for no permission and for delete permission
* | | | [tx-robot] updated from transifexJenkins for ownCloud2015-04-246-6/+6
| | | |
* | | | Merge pull request #15846 from owncloud/fix-missing-loading-indicatorLukas Reschke2015-04-231-0/+2
|\ \ \ \ | | | | | | | | | | Add missing loading indicator for enabled apps
| * | | | Add missing loading indicator for enabled appsMorris Jobke2015-04-231-0/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | * happened when an app gets activated, because the new appended HTML doesn't contain the loading image * fixes #15806
* | | | Merge pull request #15826 from owncloud/issue-15804-occ-user-delete-exceptionblizzz2015-04-238-20/+262
|\ \ \ \ | |/ / / |/| | | Issue 15804 occ user delete exception
| * | | Fix file namesJoas Schilling2015-04-232-0/+0
| | | |
| * | | Add tests for occ user:lastseenJoas Schilling2015-04-231-0/+105
| | | |
| * | | Unify the output of the user commands and use DIJoas Schilling2015-04-236-16/+40
| | | |
| * | | Add unit tests for occ user:deleteJoas Schilling2015-04-231-0/+106
| | | |
| * | | Check if the user exists before trying to delete himJoas Schilling2015-04-231-5/+12
| |/ /
* | | Merge pull request #15814 from owncloud/public-reshare-webdavVincent Petry2015-04-234-139/+6
|\ \ \ | | | | | | | | Fix webdav access for public reshare
| * | | fix subfolder reshares over webdavRobin Appelman2015-04-231-2/+2
| | | |
| * | | remove unneeded readonlycacheRobin Appelman2015-04-221-44/+0
| | | |
| * | | resolve reshares in public webdavRobin Appelman2015-04-221-3/+4
| | | |
| * | | use the permissions mask cache wrapper instead of the read only cacheRobin Appelman2015-04-222-94/+4
| | | |