forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,6 @@ paths: | |
- src | ||
- modules | ||
- libraries | ||
queries: | ||
- name: Prebid queries | ||
uses: ./.github/codeql/queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @id prebid/hardware-concurrency | ||
* @name hardwareConcurrency | ||
* @kind problem | ||
* @problem.severity warning | ||
* @description Finds uses of hardwareConcurrency | ||
*/ | ||
|
||
import javascript | ||
|
||
from DataFlow::SourceNode nav | ||
where | ||
nav = DataFlow::globalVarRef("navigator") or | ||
nav = DataFlow::globalVarRef("top").getAPropertyRead("navigator") | ||
select nav.getAPropertyRead("hardwareConcurrency"), "hardwareConcurrency is an indicator of fingerprinting" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
library: false | ||
warnOnImplicitThis: false | ||
name: queries | ||
version: 0.0.1 | ||
dependencies: | ||
codeql/javascript-all: ^1.1.1 | ||
codeql/javascript-queries: ^1.1.0 |