Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Fix MITM (http -> https)#1

Merged
JamieSlome merged 1 commit into
418sec:masterfrom
mufeedvh:master
Aug 25, 2020
Merged

Fix MITM (http -> https)#1
JamieSlome merged 1 commit into
418sec:masterfrom
mufeedvh:master

Conversation

@mufeedvh

@mufeedvh mufeedvh commented Aug 21, 2020

Copy link
Copy Markdown

📊 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 to https 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 the install file.

Although the domain www.mega-nerd.com doesn't have an SSL certificate making it not possible to use the https version of the domain.

👍 User Acceptance Testing (UAT)

No breaking changes.

@Mik317 Mik317 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😄 🎉

Cheers,
Mik

@JamieSlome
JamieSlome removed the request for review from toufik-airane August 25, 2020 10:52
@JamieSlome
JamieSlome merged commit c543e03 into 418sec:master Aug 25, 2020
@huntr-helper

Copy link
Copy Markdown

Congratulations mufeedvh - your fix has been selected! 🎉

Thanks for being part of the community & helping secure the world's open source code.
If you have any questions, please respond in the comments section. Your bounty is on its way - keep hunting!

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.

4 participants