strongloop / node-foreman

A Node.js Version of Foreman
http://strongloop.github.io/node-foreman/
Other
1.27k stars 119 forks source link

Regex DoS (ReDos) Vulnerability [FIXED] #156

Closed drewjenkins closed 4 years ago

drewjenkins commented 6 years ago

From Snyk

✗ High severity vulnerability found on foreman@2.0.0

drewjenkins commented 6 years ago

This still affects version 3.0.0 as well

phpfs commented 6 years ago

Any updates to this?

rmg commented 6 years ago

I'm about to work on a fix for this, but in the mean time I'd like to list some of the mitigating factors involved so users can decide if they are affected by this or not.

This only affects the --forward feature, which is a development-time convenience feature for running a local http proxy that you can configure your browser to use.

If you're running this proxy in a publicly accessible manner then this vulnerability is probably the least of your concerns.

rmg commented 6 years ago

v3.0.1 has been published with a fix.

rmg commented 6 years ago

I'm at a loss as to how to update the vulnerability DBs 😞

It would also be nice to update the update the severity since "high" seems a little misleading considering you need to do something already considered dangerous (run a dev tool as a public open proxy) in order to even expose this.

Glutnix commented 6 years ago

Do you just email security@npmjs.org or report@nodesecurity.io ?

rmg commented 6 years ago

Snyk and HackerOne are not affiliated with npm/nsp so I'm not sure what they would be able to do about it.

fmagaldea commented 6 years ago

This stills affects version 3.0.1 as well, here is "npm audit" report extract:

foreman_3 0 1_npm-audit
rmg commented 6 years ago

@fmagaldea that advisory is incorrect.

sonicoder86 commented 5 years ago

@rmg How can we fix the npm audit error?

AmirBraham commented 5 years ago

Any updates to this ? I get the vulnerability is fixed but it's still showing the advisory

rmg commented 5 years ago

I've sent an email to security@npmjs.com to ask them to update the record.

Pilatch commented 4 years ago

When you do get that record updated, would you bump the version to 3.0.2 to make sure our random internal processes see it as a new artifact?

msakrejda commented 4 years ago

I just installed node-foreman and ran npm audit and I got no open advisories. It looks like https://www.npmjs.com/advisories/645 now notes "Upgrade to 3.0.1" is the fix @rmg so maybe this can just be closed?