Skip to content

Commit 3f0755f

Browse files
committed
Update vulnerabilities.spec.js
1 parent ef006b2 commit 3f0755f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/vulnerabilities.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ describe('(GHSA-gqpp-xgvh-9h7h) SQL Injection via dot-notation sub-key name in I
14031403
// This causes a database error, NOT SQL injection. If injection succeeded,
14041404
// the query would take >= 3 seconds due to pg_sleep.
14051405
expect(elapsed).toBeLessThan(3000);
1406-
// Database error means no data modification at all
1406+
// Invalid JSONB cast fails the UPDATE, so the row is not modified
14071407
const verify = await new Parse.Query('SubKeyTest').get(obj.id);
14081408
expect(verify.get('stats')).toEqual({ counter: 0 });
14091409
});

0 commit comments

Comments
 (0)