2023-08-16 09:29:00 +05:45
|
|
|
@skipOnReva
|
2021-01-28 11:14:56 +05:45
|
|
|
Feature: attempt to PUT files with invalid password
|
2021-01-28 11:56:07 +05:45
|
|
|
As an admin
|
2023-04-17 17:05:12 +05:45
|
|
|
I want the system to be secure when passwords are stored with the full hash difficulty
|
2021-01-28 11:56:07 +05:45
|
|
|
So that unauthorised users do not have access to data
|
|
|
|
|
|
|
|
|
|
Note - this feature is run in CI with ACCOUNTS_HASH_DIFFICULTY set to the default for production
|
|
|
|
|
See https://github.com/owncloud/ocis/issues/1542 and https://github.com/owncloud/ocis/pull/839
|
2021-01-28 11:14:56 +05:45
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given user "Alice" has been created with default attributes
|
2021-01-28 11:14:56 +05:45
|
|
|
And user "Alice" has created folder "/PARENT"
|
|
|
|
|
|
2022-11-01 15:13:14 +05:45
|
|
|
|
2021-01-28 11:14:56 +05:45
|
|
|
Scenario: send PUT requests to webDav endpoints as normal user with wrong password
|
|
|
|
|
When user "Alice" requests these endpoints with "PUT" including body "doesnotmatter" using password "invalid" about user "Alice"
|
2024-11-07 14:12:16 +05:45
|
|
|
| endpoint |
|
2024-09-17 17:11:20 +05:45
|
|
|
| /webdav/textfile0.txt |
|
|
|
|
|
| /dav/files/%username%/textfile0.txt |
|
|
|
|
|
| /webdav/PARENT |
|
|
|
|
|
| /dav/files/%username%/PARENT |
|
|
|
|
|
| /dav/files/%username%/PARENT/parent.txt |
|
2021-01-28 11:14:56 +05:45
|
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|
|
|
|
|
|
2022-11-01 15:13:14 +05:45
|
|
|
|
2021-01-28 11:14:56 +05:45
|
|
|
Scenario: send PUT requests to webDav endpoints as normal user with no password
|
|
|
|
|
When user "Alice" requests these endpoints with "PUT" including body "doesnotmatter" using password "" about user "Alice"
|
2024-11-07 14:12:16 +05:45
|
|
|
| endpoint |
|
2024-09-17 17:11:20 +05:45
|
|
|
| /webdav/textfile0.txt |
|
|
|
|
|
| /dav/files/%username%/textfile0.txt |
|
|
|
|
|
| /webdav/PARENT |
|
|
|
|
|
| /dav/files/%username%/PARENT |
|
|
|
|
|
| /dav/files/%username%/PARENT/parent.txt |
|
2021-01-28 11:14:56 +05:45
|
|
|
Then the HTTP status code of responses on all endpoints should be "401"
|