github / github/codeql

General issue: CWE-208 coverage for javascript

Open
#21,021 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

**Description**
CodeQL currently does not detect CWE-208 (Observable Timing Discrepancy) in JavaScript/TypeScript, while this weakness is covered in Java/Kotlin, Python and Ruby. This appears to be a language coverage gap rather than a configuration issue. [https://codeql.github.com/codeql-query-help/full-cwe/]

**Example**
In authentication or validation logic, I would expect CodeQL to at least be able
to model potential timing differences, for example:

``` js
if (value !== expectedValue) {
return res.status(401).json({ message: 'Invalid token' });
}
```

**Question**
Is there a plan to expand CodeQL query coverage for this weakness in the remaining languages?

Contributor guide

Open the contributing guide

Research direction

Start with the CodeQL query help page for full CWE coverage and compare CWE-208 support in Java/Kotlin, Python, and Ruby with the JavaScript/TypeScript gap described here. Clarify the intended coverage and implementation scope; done would mean an agreed plan or added CWE-208 coverage for JavaScript/TypeScript.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.