Skip to content

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

Merged
tmbrbr merged 1 commit into
SAP:mainfrom
tmbrbr:jsonpath
Feb 13, 2024
Merged

Foxhound: Adding JSON path string to JSON parse operations#200
tmbrbr merged 1 commit into
SAP:mainfrom
tmbrbr:jsonpath

Conversation

@tmbrbr

@tmbrbr tmbrbr commented Feb 9, 2024

Copy link
Copy Markdown
Contributor

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

tmbrbr commented Feb 9, 2024

Copy link
Copy Markdown
Contributor Author

Fixes #199

@tmbrbr tmbrbr self-assigned this Feb 9, 2024

@leeN leeN left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me :)

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