ownCloud 10.12.2 (stable)
PHP Version 7.4.33
Linux 5.15.0-67-generic Ubuntu x86_64
FPM/FastCGI
Redis Version 5.3.7
Filelocking - off
10.6.12-MariaDB-0ubuntu0.22.04.1 - Ubuntu 22.04
Webdav access from Win 10,11
System mostly delete maded user app token after 24 hour only for webdav access. Other tokens like for desktop client or android client stay untached.
But this not happend on my older server with ownCloud 10.8.0 (stable).
Why system can delete user app token? How can by possible?
List of activated apps:
Enabled:
- activity:
- Version: 2.7.1
- Path: /var/www/clients/client1/web2/web/apps/activity
- announcementcenter:
- Version: 1.2.2
- Path: /var/www/clients/client1/web2/web/apps/announcementcenter
- comments:
- Version: 0.3.0
- Path: /var/www/clients/client1/web2/web/apps/comments
- configreport:
- Version: 0.2.1
- Path: /var/www/clients/client1/web2/web/apps/configreport
- customgroups:
- Version: 0.7.1
- Path: /var/www/clients/client1/web2/web/apps/customgroups
- dav:
- Version: 0.7.0
- Path: /var/www/clients/client1/web2/web/apps/dav
- extract:
- Version: 1.2.4
- Path: /var/www/clients/client1/web2/web/apps-external/extract
- federatedfilesharing:
- Version: 0.5.0
- Path: /var/www/clients/client1/web2/web/apps/federatedfilesharing
- federation:
- Version: 0.1.0
- Path: /var/www/clients/client1/web2/web/apps/federation
- files:
- Version: 1.5.2
- Path: /var/www/clients/client1/web2/web/apps/files
- files_clipboard:
- Version: 1.0.3
- Path: /var/www/clients/client1/web2/web/apps-external/files_clipboard
- files_external:
- Version: 0.9.0
- Path: /var/www/clients/client1/web2/web/apps/files_external
- files_mediaviewer:
- Version: 1.0.5
- Path: /var/www/clients/client1/web2/web/apps/files_mediaviewer
- files_pdfviewer:
- Version: 1.0.1
- Path: /var/www/clients/client1/web2/web/apps/files_pdfviewer
- files_sharing:
- Version: 0.14.0
- Path: /var/www/clients/client1/web2/web/apps/files_sharing
- files_texteditor:
- Version: 2.5.1
- Path: /var/www/clients/client1/web2/web/apps-external/files_texteditor
- files_textviewer:
- Version: 1.0.3
- Path: /var/www/clients/client1/web2/web/apps-external/files_textviewer
- files_trashbin:
- Version: 0.9.1
- Path: /var/www/clients/client1/web2/web/apps/files_trashbin
- files_versions:
- Version: 1.3.0
- Path: /var/www/clients/client1/web2/web/apps/files_versions
- firstrunwizard:
- Version: 1.2.0
- Path: /var/www/clients/client1/web2/web/apps/firstrunwizard
- groupalert:
- Version: 1.1.5
- Path: /var/www/clients/client1/web2/web/apps-external/groupalert
- guests:
- Version: 0.12.2
- Path: /var/www/clients/client1/web2/web/apps-external/guests
- impersonate:
- Version: 0.5.2
- Path: /var/www/clients/client1/web2/web/apps-external/impersonate
- market:
- Version: 0.7.0
- Path: /var/www/clients/client1/web2/web/apps/market
- notifications:
- Version: 0.5.4
- Path: /var/www/clients/client1/web2/web/apps/notifications
- provisioning_api:
- Version: 0.5.0
- Path: /var/www/clients/client1/web2/web/apps/provisioning_api
- sccuot_ng: (admin only)
- Version: 1.1.0
- Path: /var/www/clients/client1/web2/web/apps-external/sccuot_ng
- systemtags:
- Version: 0.3.0
- Path: /var/www/clients/client1/web2/web/apps/systemtags
- tasks:
- Version: 0.9.7
- Path: /var/www/clients/client1/web2/web/apps-external/tasks
- templateeditor:
- Version: 0.4.0
- Path: /var/www/clients/client1/web2/web/apps/templateeditor
- updatenotification:
- Version: 0.2.1
- Path: /var/www/clients/client1/web2/web/apps/updatenotification
- user_external: - IMAP
- Version: 0.6.0
- Path: /var/www/clients/client1/web2/web/apps/user_external
Disabled:
- encryption:
- Path: /var/www/clients/client1/web2/web/apps/encryption
- enterprise_key:
- Path: /var/www/clients/client1/web2/web/apps/enterprise_key
- external:
- Path: /var/www/clients/client1/web2/web/apps/external
- files_external_dropbox:
- Path: /var/www/clients/client1/web2/web/apps-external/files_external_dropbox
- files_external_s3:
- Path: /var/www/clients/client1/web2/web/apps-external/files_external_s3
- files_primary_s3:
- Path: /var/www/clients/client1/web2/web/apps-external/files_primary_s3
- objectstore:
- Path: /var/www/clients/client1/web2/web/apps-external/objectstore
- user_ldap:
- Path: /var/www/clients/client1/web2/web/apps/user_ldap
ownCloud log (data/owncloud.log)
It only one type od record about token. Why invalid if used same login token as before.
{"reqId":"THs144l8dna8sz6StNrv","level":3,"time":"2023-07-31T08:09:53+00:00","remoteAddr":"85.163.235.10","user":"--","app":"OC\\User\\Session::validateToken","method":"PROPFIND","url":"\/remote.php\/webdav","message":"invalid credentials in token 8252e6bc3727ea47e075f8896036e851fe70bcba0ff33b0cdd37189b2400ae4e0d88c200a8680e19e46839aace12fc56dc480f0196a036378e30758a9b8ca7c8 with token id 15228"}
tom42
August 13, 2023, 7:58am
2
Hey,
maybe this is related to the following and not only affecting 2FA:
opened 08:50AM - 29 Jul 20 UTC
Type:Bug
<!--
Thanks for reporting issues back to ownCloud! This is the issue tracker of… ownCloud, if you have any support question please check out https://owncloud.org/support
This is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/.github/CONTRIBUTING.md#guidelines
For reporting potential security issues please see https://owncloud.org/security/
To make it possible for us to help you please fill out below information carefully.
Before reporting any issues please make sure that you're using the latest available version of ownCloud, see https://owncloud.org/changelog/
-->
### Steps to reproduce
1. Enable TOTP (plugin 2-Factor Authentication by Christoph Wurst - ver. 0.7.0)
2. Create an App Password / Token for owncloud desktop client (using Mac OS desktop client ver. 2.6.3 vuild 13765, but this happens also with all other clients, es. Android/iOS/Windows ones)
3. Wait some days using the app till the actual behaviour takes place
### Expected behaviour
App-password should stay there until deleted manually and apps should not ask for a new password once setup.
### Actual behaviour
After some times (1 days or more, it is random) the app doesn't authenticate anymore with the token provided and ask to fill a new password. Checking in OC WebInterface shows no more app-password listed and a new one has to be created.
### Server configuration
**Operating system**
Ubuntu 16.04.6 LTS 64bit
**Web server:**
Apache/2.4.18 (Ubuntu)
**Database:**
mysql Ver 14.14 Distrib 5.7.31, for Linux (x86_64)
**PHP version:**
HP 7.1.33-16+ubuntu16.04.1+deb.sury.org+1
**ownCloud version:** (see ownCloud admin page)
10.4.1.3
**Updated from an older ownCloud or fresh install:**
updated
**Where did you install ownCloud from:**
official repo
**Signing status (ownCloud 9.0 and above):**
No errors found
**The content of config/config.php:**
{
"system": {
"updatechecker": false,
"instanceid": "oc0ub6smfwnj",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"10.0.0.20",
"***REMOVED SENSITIVE VALUE***"
],
"datadirectory": "\/var\/www\/owncloud\/data",
"overwrite.cli.url": "http:\/\/10.0.0.20\/owncloud",
"dbtype": "mysql",
"version": "10.4.1.3",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "Europe\/Rome",
"installed": true,
"ldapIgnoreNamingRules": false,
"loglevel": 1,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"appstore.experimental.enabled": true,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "25",
"ldapUserCleanupInterval": "5",
"singleuser": false,
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"host": "localhost",
"port": 6379,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis"
}
}
**List of activated apps:**
nabled:
- activity: 2.5.3
- comments: 0.3.0
- configreport: 0.2.0
- dav: 0.5.0
- encryption: 1.4.0
- federatedfilesharing: 0.5.0
- federation: 0.1.0
- files: 1.5.2
- files_external: 0.7.1
- files_mediaviewer: 1.0.2
- files_pdfviewer: 0.11.1
- files_sharing: 0.12.0
- files_texteditor: 2.3.0
- files_trashbin: 0.9.1
- files_versions: 1.3.0
- firstrunwizard: 1.2.0
- gallery: 16.1.1
- market: 0.5.0
- notifications: 0.5.0
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- twofactor_totp: 0.7.0
- updatenotification: 0.2.1
- user_ldap: 0.15.2
Disabled:
- external
- ownbackup
- passman
- user_external
**Are you using external storage, if yes which one:** local/smb/sftp/...
no
**Are you using encryption:** yes/no
yes
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
Active Directory
#### LDAP configuration (delete this part if not used)
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Configuration | |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| hasMemberOfFilterSupport | 1 |
| hasPagedResultSupport | |
| homeFolderNamingRule | |
| lastJpegPhotoLookup | 0 |
| ldapAgentName | CN=ldapquery,***REMOVED SENSITIVE VALUE***,DC=locale |
| ldapAgentPassword | *** |
| ldapAttributesForGroupSearch | |
| ldapAttributesForUserSearch | |
| ldapBackupHost | |
| ldapBackupPort | |
| ldapBase | OU=***REMOVED SENSITIVE VALUE***,DC=locale |
| ldapBaseGroups | DC=***REMOVED SENSITIVE VALUE***,DC=locale |
| ldapBaseUsers | DC=***REMOVED SENSITIVE VALUE***,DC=locale |
| ldapCacheTTL | 600 |
| ldapConfigurationActive | 1 |
| ldapDynamicGroupMemberURL | |
| ldapEmailAttribute | mail |
| ldapExperiencedAdmin | 0 |
| ldapExpertUUIDGroupAttr | |
| ldapExpertUUIDUserAttr | objectguid |
| ldapExpertUsernameAttr | |
| ldapGroupDisplayName | cn |
| ldapGroupFilter | (&(|(objectclass=group))(|(cn=***REMOVED SENSITIVE VALUE***-Owncloud)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***)(cn=***REMOVED SENSITIVE VALUE***))) |
| ldapGroupFilterGroups | ***REMOVED SENSITIVE VALUE***-Owncloud;***REMOVED SENSITIVE VALUE*** |
| ldapGroupFilterMode | 0 |
| ldapGroupFilterObjectclass | group |
| ldapGroupMemberAssocAttr | member |
| ldapHost | ldap://***REMOVED SENSITIVE VALUE*** |
| ldapIgnoreNamingRules | |
| ldapLoginFilter | (&(&(|(objectclass=organizationalPerson)(objectclass=person)(objectclass=top)(objectclass=user))(|(|(memberof=CN=***REMOVED SENSITIVE VALUE***-Owncloud,OU=***REMOVED SENSITIVE VALUE***,DC=locale)(primaryGroupID=6669))(|(memberof=CN=***REMOVED SENSITIVE VALUE***DC=locale)(primaryGroupID=6645))(|(memberof=CN=***REMOVED SENSITIVE VALUE***,DC=locale)(primaryGroupID=6118))))(|(samaccountname=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid))(|(cn=%uid)(displayName=%uid)(distinguishedName=%uid)(givenName=%uid)(mail=%uid)(name=%uid)(sAMAccountName=%uid)))) |
| ldapLoginFilterAttributes | cn;displayName;distinguishedName;givenName;mail;name;sAMAccountName |
| ldapLoginFilterEmail | 1 |
| ldapLoginFilterMode | 0 |
| ldapLoginFilterUsername | 1 |
| ldapNestedGroups | 0 |
| ldapNetworkTimeout | 2 |
| ldapOverrideMainServer | |
| ldapPagingSize | 500 |
| ldapPort | 389 |
| ldapQuotaAttribute | |
| ldapQuotaDefault | |
| ldapTLS | 0 |
| ldapUserDisplayName | displayname |
| ldapUserDisplayName2 | |
| ldapUserFilter | (&(|(objectclass=organizationalPerson)(objectclass=person)(objectclass=top)(objectclass=user))(|(|(memberof=CN=***REMOVED SENSITIVE VALUE***-Owncloud,OU=***REMOVED SENSITIVE VALUE***,DC=locale)(primaryGroupID=6669))(|(memberof=CN=***REMOVED SENSITIVE VALUE***,DC=locale)(primaryGroupID=6645))(|(memberof=CN=***REMOVED SENSITIVE VALUE***,DC=locale)(primaryGroupID=6118)))) |
| ldapUserFilterGroups | ***REMOVED SENSITIVE VALUE***-Owncloud;***REMOVED SENSITIVE VALUE*** |
| ldapUserFilterMode | 0 |
| ldapUserFilterObjectclass | organizationalPerson;person;top;user |
| ldapUserName | samaccountname |
| ldapUuidGroupAttribute | auto |
| ldapUuidUserAttribute | auto |
| turnOffCertCheck | 0 |
| useMemberOfToDetectMembership | 1 |
+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
### Client configuration
**Browser:**
Firefox 78.0.2
**Operating system:**
Mac OS X 10.15.5
### Logs
#### Web server error log
no useful logs here.
#### ownCloud log (data/owncloud.log)
once app looses password token, the error in log is just:
{"reqId":"283e54a3-714a-4b9d-a36a-90224ce6bc05","level":2,"time":"2020-07-29T10:48:09+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"--","app":"core","method":"PROPFIND","url":"\/remote.php\/dav\/files\/4ECEF78B-E147-4C7D-9F1F-36A796F77C45\/","message":"Login failed: '***REMOVED SENSITIVE VALUE***' (Remote IP: '***REMOVED SENSITIVE VALUE***')"}
I not sure definitelly, can affect to tokens function ‘token_auth_enforced’ ? I’m remeberd I had this enabled too, so after digging I found same about 2FA everywhere, but. Can ‘token_auth_enforced’ remove token by time? I tought this funtion only force token for all client like thunderbird, desktop etc. And of course I thought this bug was too old to remain untouched
tom42
August 13, 2023, 8:51am
4
Hey,
if you had 2FA enabled then i think you could be still affected. I think it could be the best to discuss further with the ownCloud developers at the GitHub issue as i don’t think that the community users can give support for such problems.
2 Likes