Skip to content

[stable9.1] backport xss removement - #27723

Closed
peterprochaska wants to merge 1 commit into
stable9.1from
backport-removed-xss
Closed

peterprochaska wants to merge 1 commit into
stable9.1from
backport-removed-xss

Conversation

@peterprochaska

Copy link
Copy Markdown
Contributor

Description

backport XSS removement

Motivation and Context

backporting

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@peterprochaska peterprochaska mentioned this pull request Apr 22, 2017
4 of 9 tasks
@PVince81 PVince81 changed the title backport xss removement [stable9.1] backport xss removement Apr 24, 2017
@PVince81 PVince81 added this to the 9.1.6 milestone Apr 24, 2017
backport xss removement

fixed syntax error
@PVince81

PVince81 commented May 4, 2017

Copy link
Copy Markdown
Contributor

👎 causes regression, see #27716 (comment)

@PVince81 PVince81 closed this May 4, 2017
@PVince81
PVince81 deleted the backport-removed-xss branch May 4, 2017 05:19
@apotek

apotek commented May 16, 2017

Copy link
Copy Markdown

Since this is a security / vulnerability issue, should an issue be created to backport this to 8.x as well? The security bulleting advises that the issue affects all versions < 9.1.5.

Or is owncloud not supporting 8.x any more even for vulnerabilities?

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
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:

nextcloud/server#4228
#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. :)

@lock

lock Bot commented Aug 3, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants