exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

NextCloud / OwnCloud Cross Site Scripting

NextCloud / OwnCloud Cross Site Scripting
Posted May 16, 2017
Authored by Manuel Mancera

NextCloud and OwnCloud suffer from a cross site scripting vulnerability in their error pages. OwnCloud versions 9.1.5 and below are affected. NextCloud versions prior to 11.0.3, 10.0.5, and 9.0.58 are affected.

tags | exploit, xss
advisories | CVE-2017-0891
SHA-256 | 65879de6c3bc16a06a84fa76fc56c4fec014ee26d19bb377b0cde628a8e097a2

NextCloud / OwnCloud Cross Site Scripting

Change Mirror Download
==================================================================
Nextcloud/Owncloud - Reflected Cross Site Scripting in error pages
==================================================================

Information
------------------------------------------------------------------
Name: Nextcloud/Owncloud - Reflected Cross Site Scripting in error pages
Affected Versions: Nextcloud Server < 11.0.3
Nextcloud Server < 10.0.5
Nextcloud Server < 9.0.58
Owncloud <= 9.1.5
Vendor Homepage : https://nextcloud.com/
https://owncloud.org/
Vulnerability Type: Reflected Cross Site Scripting
Severity: Low
CVE: CVE-2017-0891


Product
-------------------

Nextcloud is a open source software for cloud storage service. Also,
this software are more features for synchronizing. e.g. Calendar,
contacts, tasks or RSS readers.
It is a fork from Owncloud. Currently, Owncloud is working on
backporting this vulnerability to be fixed in the next release, I
hope.





Description

-------------------

A HTML injection vulnerability flaw in the Nextcloud and Owncloud.
Through this vulnerability an attacker could manipulate the website.
This vulnerability could affect to the logged users. An attacker could
send a malicious link (that contains the manipulated URL) to a
legitimate user that he is logged in and simulate the login screen to
stole the password (phishing), or multiple attacks more, like XSS.
Nextcloud and ownCloud use Content-Security-Policy which prevents
execution of inline JavaScript. However, as of now prominently Internet
Explorer hasn't implemented Content-Security-Policy thus being at risk
against this reflected Cross-Site Scripting

Exist more options to attack, for example, redirect the content of an
<object> or <script> to a saved and shared items of your directory.
Also, the mimetypes are well configured and the most browsers will not
execute a javascript file that doesn't have the javascript content-type.



Source
code:

https://github.com/nextcloud/server/pull/4228
https://github.com/owncloud/core/pull/27723





Proof of
Concept

-------------------
PoC:
https://site/index.php/apps/files/ajax/download.php?files=%00&dir=HTMLCODE




Solution
-------------------
Update to the latest versions.


More info:
https://nextcloud.com/security/advisory/?id=nc-sa-2017-008
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-0891
https://hackerone.com/reports/216812




Advisory Timeline
--------------------

22/03/2017 - Informed to Owncloud about the issue via Hackerone.
28/03/2017 - Informed to Nextcloud about the issue via Hackerone.
28/03/2017 - Nextcloud answered me and confirmed the vulnerability.
20/04/2017 - Send an email to Owncloud security...
21/04/2017 - Owncloud confirmed the vulnerability via HackerOne and they
are working on the fix.
21/04/2017 - Nextcloud awarded me with 450$!
24/04/2017 - Nextcloud released new versions with the vulnerabilty fixed.
08/05/2017 - Nextcloud released the security advisories.
15/05/2017 - Public disclosure.



Both are very good software. The vulnerability is not very risky. I
guess Owncloud will release a new version this month. :)


Credits & Authors
--------------------
Manuel Mancera (@sinkmanu)


Thanks to Lukas Reschke from Nextcloud for the fast replies and
commitment with the security. A good transparency and collaboration
makes the software better.


Disclaimer
-------------------
All information is provided without warranty. The intent is to provide
information to secure infrastructure and/or systems, not to be able to
attack or damage.
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    0 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close