Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this a timing attack? #70

Open
jimisaacs opened this issue Oct 13, 2021 · 3 comments
Open

Is this a timing attack? #70

jimisaacs opened this issue Oct 13, 2021 · 3 comments

Comments

@jimisaacs
Copy link

This doesn't seem right.
Screen Shot 2021-10-12 at 9 52 46 PM

@jesusprubio
Copy link
Contributor

Summary
Possible corner case for detect-possible-timing-attacks rule.

Still relevant?
Yes.

Next steps

  • Decide if we consider this case a vulnerable code.
  • If we decide to consider this a valid timing based vector we should verify or update our rule to support it.

@jesusprubio
Copy link
Contributor

jesusprubio commented Mar 25, 2022

IMHO technically that would be a vulnerability. Even if the lines don't make too much sense and include more dangerous vulnerabilities as hardcoding the value to check against, the use of null as a secret, etc.

@GrantGryczan
Copy link

GrantGryczan commented Nov 28, 2023

IMHO technically that would be a vulnerability.

@jesusprubio I disagree, as I'm struggling to imagine how this could result in a compromise taking place or how this falls within the scope of this rule. Isn't this vulnerability about comparisons that take an amount of time related to how correct they are? That should only possibly apply to strings, numbers, etc., not null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants