Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm audit critical findings #564

Closed
oliverkane opened this issue May 29, 2018 · 5 comments
Closed

npm audit critical findings #564

oliverkane opened this issue May 29, 2018 · 5 comments

Comments

@oliverkane
Copy link

Just writing to let you know that the current NPM package reports this little gem has a critical security issue to patch.

results of npm audit

┌──────────────────────────────────────────────────────────────────────────────┐
│                                Manual Review                                 │
│            Some vulnerabilities require your attention to resolve            │
│                                                                              │
│         Visit https://go.npm.me/audit-guide for additional guidance          │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Critical      │ Command Injection                                            │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ macaddress                                                   │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ No patch available                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ minecraft-protocol                                           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ minecraft-protocol > uuid-1345 > macaddress                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://nodesecurity.io/advisories/654                       │
└───────────────┴───────────────────────────────────────────────
@roblabla
Copy link
Member

roblabla commented May 29, 2018

Thank you for reporting this!

I don't think this affects us. From the report: "For this vulnerability to be exploited an attacker needs to control the iface argument to the one method."

Since this issue doesn't really affect us, I don't think we'll take any immediate step to fix it. There is a PR up in the macaddress repo that fixes it: scravy/node-macaddress#18.

I'll keep this issue open so that we don't forget about this potential footgun though, until a fix is commited upstream.

EDIT: If we do use UUID.v1() somewhere, we can fix the issue by passing false to the mac option, which will cause UUID.v1() to revert to a time-based UUID, instead of a "proper" mac-based UUID: https://github.com/scravy/uuid-1345/blob/master/index.js#L433

@rom1504
Copy link
Member

rom1504 commented May 29, 2018

There's the uuid module that also supports uuid 1345 but doesn't support parsing.
So uuid-1345 is currently the only usable uuid module on npm.

@roblabla
Copy link
Member

roblabla commented Jun 24, 2018

uuid-1345 and macaddress both got an update which fixes the underlying vulnerability. We might want to bump the package.json version of uuid-1345 to 0.99.7 so that people get the secure version.

@rom1504
Copy link
Member

rom1504 commented Jun 24, 2018

after updating to 0.99.7 locally (and rerunning npm install), I'm still getting warning with npm audit. No idea how that works

@rom1504
Copy link
Member

rom1504 commented Aug 26, 2018

npm audit
                                                                                
                       === npm audit security report ===                        
                                                                                
[+] no known vulnerabilities found
    Packages audited: 1467 (665 dev, 11 optional)

@rom1504 rom1504 closed this as completed Aug 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants