Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Adding tests and calling to hasOwnProperty on Object.prototype instead of assuming valid prototype #63

Merged
merged 2 commits into from
Apr 20, 2018

Conversation

pmabres
Copy link
Contributor

@pmabres pmabres commented Apr 19, 2018

Summary

  • This PR is for solving an issue with the hash-password hook.
    The issue is that hash password hook assumes that the request body will come with a prototype associated which might not be the case, for example when used alongside multer, the request body gets regenerated with Object.create(null). This is not an issue with multer or any other library as is intended to avoid vulnerabilities.
    The PR solves a undefined exception triggered on: ./lib/hooks/hash-password.js:40

  • There are no open issues related to this PR that I'm aware of.

  • No dependency on other PR on other repos.

Other Information

See: expressjs/multer#171 for more info

@daffl daffl merged commit 558aec8 into feathersjs-ecosystem:master Apr 20, 2018
@daffl
Copy link
Member

daffl commented Apr 20, 2018

This is great to know. Thank you for the pr @pmabres. Released as v1.1.3.

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.

2 participants