QID 982051
QID 982051: Nodejs (npm) Security Update for @apollosproject/data-connector-rock (GHSA-r578-pj6f-r4ff)
Security update has been released for @apollosproject/data-connector-rock to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
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).
Solution
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.Workaround:
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;
};
```
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;
};
```
Vendor References
- GHSA-r578-pj6f-r4ff -
github.com/advisories/GHSA-r578-pj6f-r4ff
CVEs related to QID 982051
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-r578-pj6f-r4ff | @apollosproject/data-connector-rock |
|