ID OPENVAS:1361412562310106706 Type openvas Reporter This script is Copyright (C) 2017 Greenbone Networks GmbH Modified 2018-10-26T00:00:00
Description
Nextcloud is prone to a improper authorization check vulnerability on
removing shares
##############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_nextcloud_auth_check_vuln_win.nasl 12106 2018-10-26 06:33:36Z cfischer $
#
# Nextcloud Authorization Check Vulnerability (Windows)
#
# Authors:
# Christian Kuersteiner <christian.kuersteiner@greenbone.net>
#
# Copyright:
# Copyright (c) 2017 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
CPE = "cpe:/a:nextcloud:nextcloud";
if (description)
{
script_oid("1.3.6.1.4.1.25623.1.0.106706");
script_version("$Revision: 12106 $");
script_tag(name:"last_modification", value:"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $");
script_tag(name:"creation_date", value:"2017-03-30 14:13:45 +0700 (Thu, 30 Mar 2017)");
script_tag(name:"cvss_base", value:"4.0");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:N/I:P/A:N");
script_cve_id("CVE-2016-9464");
script_tag(name:"qod_type", value:"remote_banner");
script_tag(name:"solution_type", value:"VendorFix");
script_name("Nextcloud Authorization Check Vulnerability (Windows)");
script_category(ACT_GATHER_INFO);
script_copyright("This script is Copyright (C) 2017 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("gb_nextcloud_detect.nasl", "os_detection.nasl");
script_mandatory_keys("nextcloud/installed", "Host/runs_windows");
script_tag(name:"summary", value:"Nextcloud is prone to a improper authorization check vulnerability on
removing shares");
script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");
script_tag(name:"insight", value:"The Sharing Backend as implemented in Nextcloud does differentiate between
shares to users and groups. In case of a received group share, users should be able to unshare the file to
themselves but not to the whole group.");
script_tag(name:"affected", value:"Nextcloud Server prior to 9.0.54");
script_tag(name:"solution", value:"Update 9.0.54 or later versions.");
script_xref(name:"URL", value:"https://nextcloud.com/security/advisory/?id=nc-sa-2016-007");
exit(0);
}
include("host_details.inc");
include("version_func.inc");
if (!port = get_app_port(cpe: CPE))
exit(0);
if (!version = get_app_version(cpe: CPE, port: port))
exit(0);
if (version_is_less(version: version, test_version: "9.0.54")) {
report = report_fixed_ver(installed_version: version, fixed_version: "9.0.54");
security_message(port: port, data: report);
exit(0);
}
exit(0);
{"id": "OPENVAS:1361412562310106706", "type": "openvas", "bulletinFamily": "scanner", "title": "Nextcloud Authorization Check Vulnerability (Windows)", "description": "Nextcloud is prone to a improper authorization check vulnerability on\nremoving shares", "published": "2017-03-30T00:00:00", "modified": "2018-10-26T00:00:00", "cvss": {"score": 4.0, "vector": "AV:N/AC:L/Au:S/C:N/I:P/A:N"}, "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310106706", "reporter": "This script is Copyright (C) 2017 Greenbone Networks GmbH", "references": ["https://nextcloud.com/security/advisory/?id=nc-sa-2016-007"], "cvelist": ["CVE-2016-9464"], "lastseen": "2019-05-29T18:34:04", "viewCount": 1, "enchantments": {"dependencies": {"references": [{"type": "cve", "idList": ["CVE-2016-9464"]}, {"type": "hackerone", "idList": ["H1:153905"]}, {"type": "nextcloud", "idList": ["NC-SA-2016-007"]}, {"type": "openvas", "idList": ["OPENVAS:1361412562310106707"]}, {"type": "ubuntucve", "idList": ["UB:CVE-2016-9464"]}], "rev": 4}, "score": {"value": 4.9, "vector": "NONE"}, "backreferences": {"references": [{"type": "cve", "idList": ["CVE-2016-9464"]}, {"type": "hackerone", "idList": ["H1:153905"]}, {"type": "nextcloud", "idList": ["NC-SA-2016-007"]}, {"type": "openvas", "idList": ["OPENVAS:1361412562310106707"]}, {"type": "ubuntucve", "idList": ["UB:CVE-2016-9464"]}]}, "exploitation": null, "vulnersScore": 4.9}, "pluginID": "1361412562310106706", "sourceData": "##############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_nextcloud_auth_check_vuln_win.nasl 12106 2018-10-26 06:33:36Z cfischer $\n#\n# Nextcloud Authorization Check Vulnerability (Windows)\n#\n# Authors:\n# Christian Kuersteiner <christian.kuersteiner@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2017 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nCPE = \"cpe:/a:nextcloud:nextcloud\";\n\nif (description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.106706\");\n script_version(\"$Revision: 12106 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $\");\n script_tag(name:\"creation_date\", value:\"2017-03-30 14:13:45 +0700 (Thu, 30 Mar 2017)\");\n script_tag(name:\"cvss_base\", value:\"4.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:S/C:N/I:P/A:N\");\n\n script_cve_id(\"CVE-2016-9464\");\n\n script_tag(name:\"qod_type\", value:\"remote_banner\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n\n script_name(\"Nextcloud Authorization Check Vulnerability (Windows)\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"This script is Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Web application abuses\");\n script_dependencies(\"gb_nextcloud_detect.nasl\", \"os_detection.nasl\");\n script_mandatory_keys(\"nextcloud/installed\", \"Host/runs_windows\");\n\n script_tag(name:\"summary\", value:\"Nextcloud is prone to a improper authorization check vulnerability on\nremoving shares\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n\n script_tag(name:\"insight\", value:\"The Sharing Backend as implemented in Nextcloud does differentiate between\nshares to users and groups. In case of a received group share, users should be able to unshare the file to\nthemselves but not to the whole group.\");\n\n script_tag(name:\"affected\", value:\"Nextcloud Server prior to 9.0.54\");\n\n script_tag(name:\"solution\", value:\"Update 9.0.54 or later versions.\");\n\n script_xref(name:\"URL\", value:\"https://nextcloud.com/security/advisory/?id=nc-sa-2016-007\");\n\n exit(0);\n}\n\ninclude(\"host_details.inc\");\ninclude(\"version_func.inc\");\n\nif (!port = get_app_port(cpe: CPE))\n exit(0);\n\nif (!version = get_app_version(cpe: CPE, port: port))\n exit(0);\n\nif (version_is_less(version: version, test_version: \"9.0.54\")) {\n report = report_fixed_ver(installed_version: version, fixed_version: \"9.0.54\");\n security_message(port: port, data: report);\n exit(0);\n}\n\nexit(0);\n", "naslFamily": "Web application abuses", "immutableFields": [], "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1647873222}}
{"nextcloud": [{"lastseen": "2020-12-24T11:41:17", "bulletinFamily": "software", "cvelist": ["CVE-2016-9464"], "description": "The Sharing Backend as implemented in Nextcloud does differentiate between shares to users and groups. In case of a received group share, users should be able to unshare the file to themselves but not to the whole group. The previous API implementation did simply unshare the file to all users in the group.", "modified": "2016-10-10T00:00:00", "published": "2016-10-10T00:00:00", "id": "NC-SA-2016-007", "href": "https://nextcloud.com/security/advisory/?id=NC-SA-2016-007", "type": "nextcloud", "title": "Improper authorization check on removing shares (NC-SA-2016-007)", "cvss": {"score": 4.0, "vector": "AV:N/AC:L/Au:S/C:N/I:P/A:N"}}], "ubuntucve": [{"lastseen": "2021-11-22T21:43:14", "description": "Nextcloud Server before 9.0.54 and 10.0.0 suffers from an improper\nauthorization check on removing shares. The Sharing Backend as implemented\nin Nextcloud does differentiate between shares to users and groups. In case\nof a received group share, users should be able to unshare the file to\nthemselves but not to the whole group. The previous API implementation\nsimply unshared the file to all users in the group.\n\n#### Bugs\n\n * <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835086>\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.3, "privilegesRequired": "LOW", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 1.4}, "published": "2017-03-28T00:00:00", "type": "ubuntucve", "title": "CVE-2016-9464", "bulletinFamily": "info", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.0, "vectorString": "AV:N/AC:L/Au:S/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2016-9464"], "modified": "2017-03-28T00:00:00", "id": "UB:CVE-2016-9464", "href": "https://ubuntu.com/security/CVE-2016-9464", "cvss": {"score": 4.0, "vector": "AV:N/AC:L/Au:S/C:N/I:P/A:N"}}], "openvas": [{"lastseen": "2019-05-29T18:33:55", "bulletinFamily": "scanner", "cvelist": ["CVE-2016-9464"], "description": "Nextcloud is prone to a improper authorization check vulnerability on\nremoving shares", "modified": "2018-10-26T00:00:00", "published": "2017-03-30T00:00:00", "id": "OPENVAS:1361412562310106707", "href": "http://plugins.openvas.org/nasl.php?oid=1361412562310106707", "type": "openvas", "title": "Nextcloud Authorization Check Vulnerability (Linux)", "sourceData": "##############################################################################\n# OpenVAS Vulnerability Test\n# $Id: gb_nextcloud_auth_check_vuln_lin.nasl 12106 2018-10-26 06:33:36Z cfischer $\n#\n# Nextcloud Authorization Check Vulnerability (Linux)\n#\n# Authors:\n# Christian Kuersteiner <christian.kuersteiner@greenbone.net>\n#\n# Copyright:\n# Copyright (c) 2017 Greenbone Networks GmbH\n#\n# This program is free software; you can redistribute it and/or\n# modify it under the terms of the GNU General Public License\n# as published by the Free Software Foundation; either version 2\n# of the License, or (at your option) any later version\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n###############################################################################\n\nCPE = \"cpe:/a:nextcloud:nextcloud\";\n\nif (description)\n{\n script_oid(\"1.3.6.1.4.1.25623.1.0.106707\");\n script_version(\"$Revision: 12106 $\");\n script_tag(name:\"last_modification\", value:\"$Date: 2018-10-26 08:33:36 +0200 (Fri, 26 Oct 2018) $\");\n script_tag(name:\"creation_date\", value:\"2017-03-30 14:13:45 +0700 (Thu, 30 Mar 2017)\");\n script_tag(name:\"cvss_base\", value:\"4.0\");\n script_tag(name:\"cvss_base_vector\", value:\"AV:N/AC:L/Au:S/C:N/I:P/A:N\");\n\n script_cve_id(\"CVE-2016-9464\");\n\n script_tag(name:\"qod_type\", value:\"remote_banner_unreliable\");\n\n script_tag(name:\"solution_type\", value:\"VendorFix\");\n\n script_name(\"Nextcloud Authorization Check Vulnerability (Linux)\");\n\n script_category(ACT_GATHER_INFO);\n\n script_copyright(\"This script is Copyright (C) 2017 Greenbone Networks GmbH\");\n script_family(\"Web application abuses\");\n script_dependencies(\"gb_nextcloud_detect.nasl\", \"os_detection.nasl\");\n script_mandatory_keys(\"nextcloud/installed\", \"Host/runs_unixoide\");\n\n script_tag(name:\"summary\", value:\"Nextcloud is prone to a improper authorization check vulnerability on\nremoving shares\");\n\n script_tag(name:\"vuldetect\", value:\"Checks if a vulnerable version is present on the target host.\");\n\n script_tag(name:\"insight\", value:\"The Sharing Backend as implemented in Nextcloud does differentiate between\nshares to users and groups. In case of a received group share, users should be able to unshare the file to\nthemselves but not to the whole group.\");\n\n script_tag(name:\"affected\", value:\"Nextcloud Server prior to 9.0.54\");\n\n script_tag(name:\"solution\", value:\"Update 9.0.54 or later versions.\");\n\n script_xref(name:\"URL\", value:\"https://nextcloud.com/security/advisory/?id=nc-sa-2016-007\");\n\n exit(0);\n}\n\ninclude(\"host_details.inc\");\ninclude(\"version_func.inc\");\n\nif (!port = get_app_port(cpe: CPE))\n exit(0);\n\nif (!version = get_app_version(cpe: CPE, port: port))\n exit(0);\n\nif (version_is_less(version: version, test_version: \"9.0.54\")) {\n report = report_fixed_ver(installed_version: version, fixed_version: \"9.0.54\");\n security_message(port: port, data: report);\n exit(0);\n}\n\nexit(0);\n", "cvss": {"score": 4.0, "vector": "AV:N/AC:L/Au:S/C:N/I:P/A:N"}}], "hackerone": [{"lastseen": "2018-08-31T00:39:16", "bounty": 100.0, "description": "Decription:\n-----\nUsers are shared files or folder. can disable this sharing.\n\nDetail:\n------\n + use request:\n\nDELETE /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares/[share-id]?format=json HTTP/1.1\nHost: [your-host]\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0\nAccept: */*\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nrequesttoken: [token of user is shared]\nOCS-APIREQUEST: true\nX-Requested-With: XMLHttpRequest\nCookie: [cookie of user is shared]\nConnection: keep-alive\n\nNote:\n----\nonly user is shared or user in group is shared can do it", "edition": 2, "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 4.3, "privilegesRequired": "LOW", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "userInteraction": "NONE", "version": "3.0"}, "impactScore": 1.4}, "published": "2016-07-26T06:21:54", "type": "hackerone", "title": "Nextcloud: IDOR - Disable sharing", "bulletinFamily": "bugbounty", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.0, "vectorString": "AV:N/AC:L/Au:S/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2016-9464"], "modified": "2016-12-03T21:58:44", "id": "H1:153905", "href": "https://hackerone.com/reports/153905", "cvss": {"score": 4.0, "vector": "AV:NETWORK/AC:LOW/Au:SINGLE_INSTANCE/C:NONE/I:PARTIAL/A:NONE/"}}], "cve": [{"lastseen": "2022-03-23T16:29:05", "description": "Nextcloud Server before 9.0.54 and 10.0.0 suffers from an improper authorization check on removing shares. The Sharing Backend as implemented in Nextcloud does differentiate between shares to users and groups. In case of a received group share, users should be able to unshare the file to themselves but not to the whole group. The previous API implementation simply unshared the file to all users in the group.", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "NONE", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "privilegesRequired": "LOW", "baseScore": 4.3, "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N", "version": "3.0", "userInteraction": "NONE"}, "impactScore": 1.4}, "published": "2017-03-28T02:59:00", "type": "cve", "title": "CVE-2016-9464", "cwe": ["CWE-285"], "bulletinFamily": "NVD", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.0, "vectorString": "AV:N/AC:L/Au:S/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "SINGLE"}, "impactScore": 2.9, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2016-9464"], "modified": "2019-10-09T23:20:00", "cpe": ["cpe:/a:nextcloud:nextcloud_server:10.0"], "id": "CVE-2016-9464", "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-9464", "cvss": {"score": 4.0, "vector": "AV:N/AC:L/Au:S/C:N/I:P/A:N"}, "cpe23": ["cpe:2.3:a:nextcloud:nextcloud_server:10.0:rc1:*:*:*:*:*:*"]}]}