Skip to content

Commit b4026e2

Browse files
committed
cov
1 parent eea1a35 commit b4026e2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/vulnerabilities.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,6 +1769,13 @@ describe('(GHSA-j7mm-f4rv-6q6q) Protected fields bypass via LiveQuery dot-notati
17691769
await expectAsync(query.subscribe()).toBeRejected();
17701770
});
17711771

1772+
it('should reject LiveQuery subscription with protected field in $nor', async () => {
1773+
// Build $nor manually since Parse SDK doesn't expose it directly
1774+
const query = new Parse.Query('SecretClass');
1775+
query._where = { $nor: [{ 'secretObj.apiKey': 'SENSITIVE_KEY_123' }] };
1776+
await expectAsync(query.subscribe()).toBeRejected();
1777+
});
1778+
17721779
it('should reject LiveQuery subscription with $regex on protected field (boolean oracle)', async () => {
17731780
const query = new Parse.Query('SecretClass');
17741781
query._addCondition('secretObj.apiKey', '$regex', '^S');

0 commit comments

Comments
 (0)