@@ -278,26 +278,26 @@ class PropNameTracking extends DataFlow::Configuration {
278278 }
279279
280280 override predicate isBarrierGuard ( DataFlow:: BarrierGuardNode node ) {
281- node instanceof BlacklistEqualityGuard or
282- node instanceof WhitelistEqualityGuard or
281+ node instanceof DenyListEqualityGuard or
282+ node instanceof AllowListEqualityGuard or
283283 node instanceof HasOwnPropertyGuard or
284284 node instanceof InExprGuard or
285285 node instanceof InstanceOfGuard or
286286 node instanceof TypeofGuard or
287- node instanceof BlacklistInclusionGuard or
288- node instanceof WhitelistInclusionGuard or
287+ node instanceof DenyListInclusionGuard or
288+ node instanceof AllowListInclusionGuard or
289289 node instanceof IsPlainObjectGuard
290290 }
291291}
292292
293293/**
294294 * Sanitizer guard of form `x === "__proto__"` or `x === "constructor"`.
295295 */
296- class BlacklistEqualityGuard extends DataFlow:: LabeledBarrierGuardNode , ValueNode {
296+ class DenyListEqualityGuard extends DataFlow:: LabeledBarrierGuardNode , ValueNode {
297297 override EqualityTest astNode ;
298298 string propName ;
299299
300- BlacklistEqualityGuard ( ) {
300+ DenyListEqualityGuard ( ) {
301301 astNode .getAnOperand ( ) .getStringValue ( ) = propName and
302302 propName = unsafePropName ( )
303303 }
@@ -312,10 +312,10 @@ class BlacklistEqualityGuard extends DataFlow::LabeledBarrierGuardNode, ValueNod
312312/**
313313 * An equality test with something other than `__proto__` or `constructor`.
314314 */
315- class WhitelistEqualityGuard extends DataFlow:: LabeledBarrierGuardNode , ValueNode {
315+ class AllowListEqualityGuard extends DataFlow:: LabeledBarrierGuardNode , ValueNode {
316316 override EqualityTest astNode ;
317317
318- WhitelistEqualityGuard ( ) {
318+ AllowListEqualityGuard ( ) {
319319 not astNode .getAnOperand ( ) .getStringValue ( ) = unsafePropName ( ) and
320320 astNode .getAnOperand ( ) instanceof Literal
321321 }
@@ -429,10 +429,10 @@ class TypeofGuard extends DataFlow::LabeledBarrierGuardNode, DataFlow::ValueNode
429429/**
430430 * A check of form `["__proto__"].includes(x)` or similar.
431431 */
432- class BlacklistInclusionGuard extends DataFlow:: LabeledBarrierGuardNode , InclusionTest {
432+ class DenyListInclusionGuard extends DataFlow:: LabeledBarrierGuardNode , InclusionTest {
433433 UnsafePropLabel label ;
434434
435- BlacklistInclusionGuard ( ) {
435+ DenyListInclusionGuard ( ) {
436436 exists ( DataFlow:: ArrayCreationNode array |
437437 array .getAnElement ( ) .getStringValue ( ) = label and
438438 array .flowsTo ( getContainerNode ( ) )
@@ -449,8 +449,8 @@ class BlacklistInclusionGuard extends DataFlow::LabeledBarrierGuardNode, Inclusi
449449/**
450450 * A check of form `xs.includes(x)` or similar, which sanitizes `x` in the true case.
451451 */
452- class WhitelistInclusionGuard extends DataFlow:: LabeledBarrierGuardNode {
453- WhitelistInclusionGuard ( ) {
452+ class AllowListInclusionGuard extends DataFlow:: LabeledBarrierGuardNode {
453+ AllowListInclusionGuard ( ) {
454454 this instanceof TaintTracking:: PositiveIndexOfSanitizer
455455 or
456456 this instanceof TaintTracking:: MembershipTestSanitizer and
0 commit comments