server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Security Scan complains I use outdated 19.0.3.1, but I really use 22.2.5

Open elapuyade opened this issue 4 years ago • 6 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug, not a question or a configuration/webserver/proxy issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • [X] I agree to follow Nextcloud's Code of Conduct.

Bug description

I installed a home instance since at least version 15 that I have upgraded regularly on every advertised version using the web updater. Since a few versions, I noticed that when doing a security scan at https://scan.nextcloud.com, the scan replies that I am "Running Nextcloud 19.0.3.1". I am not. I am currently running the latest 22.2.5. Here is the content of my version.php:

<?php 
$OC_Version = array(22,2,5,1);
$OC_VersionString = '22.2.5';
$OC_Edition = '';
$OC_Channel = 'stable';
$OC_VersionCanBeUpgradedFrom = array (
  'nextcloud' => 
  array (
    '21.0' => true,
    '22.0' => true,
    '22.1' => true,
    '22.2' => true,
  ),
  'owncloud' => 
  array (
    '10.5' => true,
  ),
);
$OC_Build = '2022-02-15T13:54:48+00:00 d086fadb9e5f2abeb4d1b7eb67f0886780bfb0b1';
$vendor = 'nextcloud';

Where does security scan get the version from ?

Steps to reproduce

  1. Ask for security scan at https://scan.nextcloud.com

I son't want to give the server url here. But I see you record scan results with UIDs. Mine starts with 49f287a9-4837-483c and was scanned at 2020-09-25 14:11:17. Hopefully you can find the record with that information.

  1. Notice the displayed result:
Running Nextcloud 19.0.3.1 
NOT on latest patch level

Expected behavior

Security scan correctly recognizes the version I use (22.2.5 at the moment).

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 22.2.3 to 22.2.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • [X] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

eric@neptune:~/bin/nextcloud_app $ php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "22.2.5.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "default_phone_region": "FR",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "PLAIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "theme": "",
        "trashbin_retention_obligation": "auto, 14",
        "versions_retention_obligation": "auto, 14",
        "loglevel": 2,
        "updater.release.channel": "stable",
        "blacklisted_files": [],
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

eric@neptune:~/bin/nextcloud_app $ php occ app:list
Enabled:
  - accessibility: 1.8.0
  - activity: 2.15.0
  - calendar: 3.0.6
  - circles: 22.2.0
  - cloud_federation_api: 1.5.0
  - comments: 1.12.0
  - contacts: 4.0.7
  - contactsinteraction: 1.3.0
  - dashboard: 7.2.0
  - dav: 1.20.0
  - federatedfilesharing: 1.12.0
  - federation: 1.12.0
  - files: 1.17.0
  - files_mindmap: 0.0.26
  - files_pdfviewer: 2.3.1
  - files_rightclick: 1.1.0
  - files_sharing: 1.14.0
  - files_trashbin: 1.12.0
  - files_versions: 1.15.0
  - files_videoplayer: 1.11.0
  - firstrunwizard: 2.11.0
  - keeweb: 0.6.8
  - logreader: 2.7.0
  - lookup_server_connector: 1.10.0
  - nextcloud_announcements: 1.11.0
  - notifications: 2.10.1
  - oauth2: 1.10.0
  - onlyoffice: 7.3.0
  - password_policy: 1.12.0
  - photos: 1.4.0
  - polls: 3.5.3
  - privacy: 1.6.0
  - provisioning_api: 1.12.0
  - recommendations: 1.1.0
  - serverinfo: 1.12.0
  - settings: 1.4.0
  - sharebymail: 1.12.0
  - spreed: 12.2.3
  - support: 1.5.0
  - survey_client: 1.10.0
  - systemtags: 1.12.0
  - tasks: 0.14.2
  - text: 3.3.0
  - theming: 1.13.0
  - twofactor_backupcodes: 1.11.0
  - updatenotification: 1.12.0
  - user_status: 1.2.0
  - viewer: 1.6.0
  - weather_status: 1.2.0
  - workflowengine: 2.4.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - music: 1.5.1
  - social: 0.4.2
  - user_ldap

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

No response

Additional info

No response

elapuyade avatar Feb 17 '22 16:02 elapuyade

Have you rescanned? image

solracsf avatar Feb 17 '22 17:02 solracsf

Hi acsfer,

Does "trigger re-scan" do something different than asking for scan from https://scan.nextcloud.com/?

Until yesterday, I never tried to rescan from this button. But yesterday, I did. It told me that could take some time (5 minutes), but I couldn't see any change on the page. Also, I just realize now the scan date I gave you is 16 months ago. Sorry I didn't see that.

Anyway, this morning, I asked for a scan and it now correctly recognizes the version I run. The "trigger rescan" I clicked yesterday obviously did reset something. Everything is OK now. Thanks a lot.

elapuyade avatar Feb 18 '22 07:02 elapuyade

I would like to reopen this issue and transform it into a feature request for an improved functionality. i was tricked by this issue myself yesterday, read here for details: https://help.nextcloud.com/t/nextcloud-security-scan-vs-installed-version-mismatch/158855

  1. The Interface shows an outdated version, which is not really helpful to anyone, but you are open to explain this
  2. the retrigger button is with very few contrast, instead of a button the retrigger shall be written in the beginning when you entered the URL and then it could write the old result and that we shall come back later for the fresh result... but a manually trigger is not useful if i get a result presented that is super ancient

ant0nwax avatar Mar 29 '23 13:03 ant0nwax

When I push the "trigger re-scan", my browser does tell me it will take 5 minutes but no other visual cue if the re-scan happens or not. I (the user) is not sure should we re-visit this page 5 minutes later, the whole process of re-scan is started or not, if additional steps or even the scan.nextcloud.com is broken or not.

Pretty bad UX design I think. If possible please update the beheavior. As the scan.nextcloud.com states: "Privacy does not exist without security." In my opinion, Security does not exists if scan tool is not adquent.

lssong99 avatar Apr 17 '23 01:04 lssong99

@ant0nwax: Then you should open a dedicated Issue for that enhancement idea :)

@lssong99: You're commenting on a closed Issue so unfortunately your feedback is unlikely to be seen/tracked. I only saw your comment because I was researching something else across old/closed issues. :)

joshtrichards avatar Jul 30 '23 13:07 joshtrichards

@ant0nwax: Then you should open a dedicated Issue for that enhancement idea :)

@lssong99: You're commenting on a closed Issue so unfortunately your feedback is unlikely to be seen/tracked. I only saw your comment because I was researching something else across old/closed issues. :)

I probably noticed it's a closed issue when comment. However it's forturnate you saw it and provide some feedback.. I hope it got improved now since I haven't retest again since....

lssong99 avatar Jul 31 '23 01:07 lssong99