Skip to content

removed XSS - #27716

Merged
PVince81 merged 2 commits into
masterfrom
remove-xss
Apr 21, 2017
Merged

PVince81 merged 2 commits into
masterfrom
remove-xss

Conversation

@peterprochaska

Copy link
Copy Markdown
Contributor

Description

removed xss with a htmlspecialchar command

Related Issue

HackerOne Report #215410

Motivation and Context

make ownCloud more secure

How Has This Been Tested?

Inject HTML. On the result page the html was escaped

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.

@DeepDiver1975 DeepDiver1975 added this to the 10.0 milestone Apr 21, 2017
@DeepDiver1975
DeepDiver1975 requested a review from PVince81 April 21, 2017 08:45
@PVince81

Copy link
Copy Markdown
Contributor

👍

@PVince81
PVince81 merged commit 44344eb into master Apr 21, 2017
@PVince81
PVince81 deleted the remove-xss branch April 21, 2017 09:26
@PVince81

Copy link
Copy Markdown
Contributor

Please backport

@peterprochaska

peterprochaska commented Apr 21, 2017 •

Copy link
Copy Markdown
Contributor Author

@PVince81 i have backported to all 9er versions, but in 8.2 i got some strange errors on my macbook. Can you backport it for me?

@PVince81

Copy link
Copy Markdown
Contributor

Please post the links to the backport PRs. I can have a look at your stable8.2 PR. Thanks

@peterprochaska

Copy link
Copy Markdown
Contributor Author

Here are the PR's:
#27723
#27722

@PVince81 PVince81 changed the title removed XSS [stable9] removed XSS Apr 24, 2017
@PVince81 PVince81 changed the title [stable9] removed XSS removed XSS Apr 24, 2017
@PVince81

Copy link
Copy Markdown
Contributor

How about the stable8.2 ? Even if it produces error you could still push your branch

@PVince81

PVince81 commented May 4, 2017

Copy link
Copy Markdown
Contributor

Hmmm, looking at this again.

What result page ? The download.php actually delivers a download file.

This looks like it would break downloads if the parent folder contains a quote.

@Peter-Prochaska can you confirm and verify ?

@PVince81

PVince81 commented May 4, 2017

Copy link
Copy Markdown
Contributor

I just tested and indeed this breaks downloading: #27807

Please revert and find a different fix.

Would be good to find out what page the reporter was talking about because this really is just a download endpoint.

Maybe if the URL points to a non-existing entry then the error message would render the file/dir name. In this case the message must be escaped.

@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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants