We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be34c3 commit e434d43Copy full SHA for e434d43
src/management/identities/validations/identities.validation.service.ts
@@ -106,6 +106,11 @@ export class IdentitiesValidationService implements OnApplicationBootstrap {
106
}
107
private async createAttributes(key:string,data:any){
108
109
+ // Validate the key to prevent prototype pollution
110
+ if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
111
+ this.logger.error('Invalid key: ' + key);
112
+ throw new BadRequestException('Invalid key: ' + key);
113
+ }
114
const path = this.resolveConfigPath(key);
115
if (path === null){
116
this.logger.error('schema for ' + key + ' does not exist');
0 commit comments