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

Foxhound: Adding JSON path string to JSON parse operations #200

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

tmbrbr
Copy link
Contributor

@tmbrbr tmbrbr commented Feb 9, 2024

Adding JSON path String to the TaintFlow arguments for the JSON.parse operation.

A description of the spec can be found here: https://www.ietf.org/archive/id/draft-goessner-dispatch-jsonpath-00.html

Luckily, the JSONParser in Firefox keeps a stack of visited elements in the tree, which can be iterated to read the property names or the array index.

The JSONParser relies heavily on C++ templates, which made the implementation a bit fiddly, but it seems to work!

@tmbrbr tmbrbr requested review from leeN and vladidx February 9, 2024 11:28
@tmbrbr
Copy link
Contributor Author

tmbrbr commented Feb 9, 2024

Fixes #199

@tmbrbr tmbrbr self-assigned this Feb 9, 2024
Copy link
Collaborator

@leeN leeN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@tmbrbr tmbrbr merged commit 2d2b8e3 into SAP:main Feb 13, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants