Security Fix for Resources Downloaded over Insecure Protocol - huntr.dev #3
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.
https://huntr.dev/users/mufeedvh has fixed the Resources Downloaded over Insecure Protocol vulnerability 🔨. mufeedvh has been awarded $25 for fixing the vulnerability through the huntr bug bounty program 💵. Think you could fix a vulnerability like this?
Get involved at https://huntr.dev/
Q | A
Version Affected | ALL
Bug Fix | YES
Original Pull Request | 418sec#1
Vulnerability README | https://github.com/418sec/huntr/blob/master/bounties/npm/node-sfml/1/README.md
User Comments:
📊 Metadata *
Bounty URL: https://www.huntr.dev/bounties/1-npm-node-sfml
⚙️ Description *
The URL to import packages from was hardcoded to use the
http
version of the domains:kcat.strangesoft.net
www.mega-nerd.com
sfml.svn.sourceforge.net
💻 Technical Description *
The fix just simply changes the
http
version tohttps
to mitigate MITM attacks.🐛 Proof of Concept (PoC) *
sfml
is Node v8 Bindings for SFML, this package are vulnerable to Man in the Middle (MitM) attacks due to downloading resources over an insecure protocol.Without a secure connection, it is possible for an attacker to intercept this connection and alter the packages received. In serious cases, this may even lead to Remote Code Execution (RCE) on your host server.
Ref: https://www.huntr.dev/bounties/1-npm-node-sfml/
🔥 Proof of Fix (PoF) *
Changed all domains with SSL certificates to
https
in theinstall
file.Although the domain
www.mega-nerd.com
doesn't have an SSL certificate making it not possible to use thehttps
version of the domain.👍 User Acceptance Testing (UAT)
No breaking changes.