forked from SAP/project-foxhound
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Js math taint propagation #3
Closed
+1,279
−219
Closed
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
152c794
Added taint propogation to Math.round
alexbara2000 ad3a3b1
Added ability to write a primitive value to an object. This is needed…
alexbara2000 720c4ad
Added taint propagation to most of the JSMath library
alexbara2000 6818a21
Finished making JSMath taint aware
alexbara2000 890080c
refactoring
alexbara2000 5498541
Ensured the result of an operation is stored in a new object
alexbara2000 8be7de2
Added base tests for JS math library testing
alexbara2000 30850fc
Added more comprehensive tests
alexbara2000 1476290
Fixed min and max logic
alexbara2000 4806180
simplified if statement with a helper function
alexbara2000 c5493d6
Adding webIDL sources to preferences
leeN 0e64714
Foxhound: adding binary taint nodes
tmbrbr 1a8545d
Adding fingerprinting source configuration flags
tmbrbr bd5c0f2
fixed optimized switch cases with tainted discriminants
0drai f44a0c9
refactored both math operations that take exactly 2 argumets
alexbara2000 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
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
Oops, something went wrong.
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.
Another thing I noticed - I think a lot of this code can be replaced by a call to JS::getAnyNumberTaint in jstaint.cpp.
Have a look at e.g. the AddOperation in Interpreter-inl.h for an example how this is done.
I have recently (last week!) updated the logic for combining two taint flows together so that in principle both parents in the taint flow are saved. If you use the getAnyNumberTaint call then all of this will be taken in account automatically.
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.
PS - you might need to update your branch to the HEAD of primitaint-merge to get the latest changes.