-
Notifications
You must be signed in to change notification settings - Fork 258
Security Patch. #288
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
base: master
Are you sure you want to change the base?
Security Patch. #288
Conversation
|
I'm in the remote outback of Australia on a trip so that's why I've been hard to reach. When I have slightly better connection I'll try to make sure this is resolved on my end (jorenbroekema/expr-eval-fork). Sorry for not being as responsive as I would usually be! |
| * This logic is the core security allowance gate. | ||
| */ | ||
| var isAllowedFunc = function (f) { | ||
| if (typeof f !== 'function') return true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this return false if f is not a function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check here is redundant anyways because we already check if the var is a function at the place where this is called. I'm guessing if it's not a function, then the expression is allowed because only functions are potentially malicious.
|
Could you @sei-vsarvepalli take a look here jorenbroekema#1 , I created a PR on my fork to include these security fixes, some linting fixes and adding an exports map (since we're doing a breaking change anyways, makes sense imo to include it now, see also #280) |
|
Continued work in jorenbroekema#1 |
Fixes a vulnerability in the
expr-evalpackage. We are unable to reach the researcher @silentmatt and @jorenbroekema developers who have their versions in the npmjs repository.Vijay Sarvepalli
on behalf of CERT/CC