-
Notifications
You must be signed in to change notification settings - Fork 20
add CWE-770 experimental query for detection of DoS #55
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
@Sim4n6 Thanks! @pwntester Could you have a look at this regarding the file names? I think the files and should generally not just be named |
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.
Hey @Sim4n6
I think we're almost there, we can use the query as-is. (just with a different id)
Following things to do yet (maybe you see more that make sense)
- Think of a better name to use (e.g.
UserControlledMaxIterations
). - Use it for file names and for the query id.
- Create a test instead of examples. See CWE-328
.rb
file.qlref
file.expected
file- Check that the test works
That's it!
Co-authored-by: Peter Stöckli <p-@github.com>
Sorry I forget about this one, I'm gonna fix that today |
@p- keep me posted on this one ;-) |
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.
Thanks for the changes 👍
Could you please change the query id and remove the samples?
Co-authored-by: Peter Stöckli <p-@github.com>
Done 👍🏾 |
Now we have these failed tests:
Is it possible that you ran these with an older CodeQL version? (Probably easiest to replace the old |
A strange behavior, I updated Codeql cli from 1.17.1 to 1.17.4. The fix is manually added in the commit 757cf05 |
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.
Here we go, Thanks!
Following the @xcorail message , please find this PR that adds an experimental and incomplete query for detecting a specific kind of denial of service.
Regards,
@Sim4n6