-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Due to wrong regex shvl is still vulnerable to prototype pollution #36
Conversation
Yes your correct @vrechson, the regex was insufficient. Could you add an additional testcase as well? |
Yes, of course! I'll came up with complete test cases in the next few days. |
Hi @robinvdvleuten, this should be enough |
Hi, I also read the discussion in this pull request that led to the wrong fix and saw that some people pointed that if we simple remove |
Hey guys, is there any update on this PR? |
@Ancient-Dragon still waiting for @robinvdvleuten revision |
Thanks @vrechson! |
@all-contributors please add @vrechson for code |
I've put up a pull request to add @vrechson! 🎉 |
As I reported here: https://www.huntr.dev/bounties/2-other-robinvdvleuten/shvl/, shvl is still vulnerable to prototype pollution. I believe that changing
!/^(__proto__|constructor|prototype)$/
to!/(__proto__|constructor|prototype)/
is enough to solve the problem but i prefer to keep it open to discussion