-
Notifications
You must be signed in to change notification settings - Fork 1.8k
JS: add query js/memory-exhaustion #3702
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
Conversation
d727ea8
to
cf118ea
Compare
77f6cef
to
2298892
Compare
Changes since last time:
Missing:
|
What about Underscore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the qhelp fixed and either an evaluation or rebase onto the sprint branch.
Small evaluation: https://git.semmle.com/esben/dist-compare-reports/tree/js/memory-exhaustion_1592466827664. And rebased onto the sprint branch. |
:oh no: Rebasing again. |
b28fe2c
to
ab01dda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
That was an interesting result in the evaluation.
The failing QLDoc check can be ignored.
Oh wait, I guess we're still missing doc review from @mchammer01 |
(
Yep. I have mentioned it in https://github.com/github/codeql-javascript-team/issues/186 |
Added this to my TODO list 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@esbena - finally reviewed this PR, it's looking good ✨
I made some suggestions on improvements.
Hope this helps!
@@ -0,0 +1,20 @@ | |||
/** | |||
* @name Resource exhaustion | |||
* @description Allocating objects or timers with user-controlled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be Allocating.... to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. "Allocating an object" generally means that it is created, with the implicit meaning that you have allocated some memory for it. It does look a bit weird now that you ask about it, but that is how it is. You can see som background information on wikipedia.
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Thanks @mchammer01. |
…exhaustion"" This reverts commit 9a0bbb3.
CVE-2017-16026: FN - due to a source that can not be recognized 🙄
The query is primarily an implementation of an interprocedural
isNumeric
type analysis seeded by user inputs.The query appears to have a scalability issue, but I haven't dug into it yet.