Skip to content

Commit

Permalink
Fix Prototype-polluting assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jibrang committed Aug 30, 2024
1 parent 688aa81 commit 92586fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/braintree-1.3.10.js
Original file line number Diff line number Diff line change
Expand Up @@ -2366,8 +2366,12 @@ sjcl.random = {
}
}

const forbiddenKeys = ['__proto__', 'constructor', 'prototype'];
for (i=0; i<jsTemp.length; i++) {
j = jsTemp[i];
if (forbiddenKeys.includes(j)) {
continue;
}
delete cbs[j];
}
},
Expand Down

0 comments on commit 92586fa

Please sign in to comment.