This repository was archived by the owner on Dec 19, 2023. It is now read-only.
Removed XML file extension from defaultExtensions #3
Open
0xcrypto wants to merge 1 commit into418sec:developfrom
Open
Removed XML file extension from defaultExtensions #30xcrypto wants to merge 1 commit into418sec:developfrom
0xcrypto wants to merge 1 commit into418sec:developfrom
Conversation
XML file extensions should not be allowed to upload
|
👋 Hello, @daftspunk. @0xcrypto has opened a PR to us with a fix for a potential vulnerability in your repository. To view the vulnerability, please refer to the bounty URL in the first comment, above. If you want this fix in your repository, a PR will automatically open once you comment:
|
|
Please do not expose our users to potential zero-day exploits. You must contact us via our security policy. However, this has been fixed in. octobercms@6bcb7b9 Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
XML file extensions should not be allowed to upload as they can be used for rendering malicious code ie. cross site scripting.
📊 Metadata *
Please enter the direct URL for this bounty on huntr.dev. This is compulsory and will help us process your bounty submission quicker.
Bounty URL:https://huntr.dev/bounties/1-packagist-october/rain/
⚙️ Description *
Cross Site Scripting is a vulnerabilitiy in a web application which allows an attacker to run malicious JavaScript code on the device of a victim. This fix removes the XML file uploads as XML is rendered by the browser which can allow an attacker to perform a Stored Cross Site Scripting.
💻 Technical Description *
October CMS uses this library to handle file uploads. But the XML files are allowed to be uploaded which can be used to upload XSS payloads utilizing XML namespaces.
🐛 Proof of Concept (PoC) *
Using any user account with the file upload privileges, visit
/backend/backend/mediain October CMS and upload the following XML file:Now you have the XML file uploaded to storage. Visit its URL by using Click Here link on the Media page and you the alert box pops up.
🔥 Proof of Fix (PoF) *
Since XML files are not allowed to be uploaded, the XSS via XML files is n longer possible.
👍 User Acceptance Testing (UAT)
Generic fix. I think it should not break any functionallity.