-
Notifications
You must be signed in to change notification settings - Fork 240
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
[WIP] Fix false-negatives and false-positives #99
Closed
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3b4bf1b
Make a false_negatives directory with the issues from the 11/16/17 ev…
KevinHock 153501f
Made a folder example/november_2017_evaluation with a directory for f…
KevinHock 104cf80
Fix the foddy infinite loop
KevinHock 4156984
Delete the infinite_loop folder since it is fixed
KevinHock 97074f3
Make source_nested_in_sink.py test and pass it by making .args = list…
KevinHock 98b49b6
Make a test for if_else_in_sink
KevinHock ff1bc89
Fix double import trap https://stackoverflow.com/questions/43393764/p…
KevinHock 6c7a8d2
[False-negs] Problem illustration commit
KevinHock e9dd5e4
[comments] w/r/t ConnectStatements
KevinHock 63c3f96
save current work emergency
KevinHock 8367f68
save current work emergency
KevinHock 2578c29
Merge branch 'master' into fix_oakie_false_negative
KevinHock 6226a77
Added changes back to file that git merge missed
KevinHock 62e7420
Fix whitespace
KevinHock 8b72e52
Fixed some imports that got broken by the merge, indented EXPECTED in…
KevinHock d42243c
Delete tests/vulnerabilities_test.py that I accidentally added, Fix C…
KevinHock 695bbde
Mostly finished BoolOp, IfExp and expr_star_handler
KevinHock 7ecf462
Handle BoolOp inside of BoolOp, Make ConnectExpressions a class, Fix …
KevinHock 1fa04e8
Finished IfExp, found bug in expr_star_handler
KevinHock 4081900
Fix case where false-positives could occur by making the node before …
KevinHock c6d9e62
Add vulnerable_code_with_expressions/last_var_in_and_is_tainted and l…
KevinHock 4d2ad46
Change visit_IfExp to handle .test better, change expr_cfg_test.py to…
KevinHock 5b1f262
Add example of connecting_control_flow_exprs_in_connect_expressions.py
KevinHock b85c072
Things I did on 7/26/18
KevinHock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
example/november_2017_evaluation/false_negatives/source_nested_in_sink.py
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,9 @@ | ||
""" | ||
This is very similar to one of the false-negatives found in our November 16th/17th 2017 evaluation | ||
http://pyt.readthedocs.io/en/latest/past_evaluations.html#november-16-17th-2017 | ||
""" | ||
|
||
|
||
@app.route('/login', methods=['GET', 'POST']) | ||
def login(): | ||
return redirect(request.args.get("next")) |
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
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we did not make a new list, things like this would happen:
though the problem on master was that we didn't include
~call_N
in .args, and thus in the return value ofget_sink_args
and so we had a false-negative that's now fixed. However,or_in_sink.py
remains unsolved, for the time being.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.
The reason
or_in_sink.py
doesn't pass yet is because we don'tif isinstance
forBoolOp
in the 'loop through args' code invisit_Call
, should be easy enough.