GHSA-r578-pj6f-r4ff
Auto-merging Person Records Compromised
Quick fix
GHSA-r578-pj6f-r4ff — @apollosproject/data-connector-rock: upgrade to the fixed version with the command below.
npm install @apollosproject/data-connector-rock@2.20.0Details
### Impact
New user registrations are able to access anyone's account by only knowing their basic profile information (name, birthday, gender, etc). This includes all app functionality within the app, as well as any authenticated links to Rock-based webpages (such as giving and events).
### Patches
We have released a security patch on v2.20.0. The solution was to create a duplicate person and then patch the new person with their profile details.
### Workarounds
If you do not wish to upgrade your app to the new version, you can patch your server by overriding the `create` data source method on the `People` class.
```js create = async (profile) => { const rockUpdateFields = this.mapApollosFieldsToRock(profile); // auto-merge functionality is compromised // we are creating a new user and patching them with profile details const id = await this.post('/People', { Gender: 0, // required by Rock. Listed first so it can be overridden. IsSystem: false, // required by rock }); await this.patch(`/People/${id}`, { ...rockUpdateFields, }); return id; }; ```
### For more information If you have any questions or comments about this advisory: * Email us at [support@apollos.app](mailto:support@apollos.app)
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.20.0npm install @apollosproject/data-connector-rock@2.20.0References
- https://github.com/ApollosProject/apollos-apps/security/advisories/GHSA-r578-pj6f-r4ff[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2021-32691[ADVISORY]
- https://github.com/ApollosProject/apollos-apps/commit/cb5f8f1c0b24f1b215b2bb5eb6f9a8e16d728ce2[WEB]
- https://github.com/ApollosProject/apollos-apps/releases/tag/v2.20.0[WEB]