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

feature/support more prototype features #466

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yi2255
Copy link
Contributor

@Yi2255 Yi2255 commented Nov 14, 2024

At the moment, it seems to me that fuzzilli implements read and write operations on the __proto__ property , and does not implement delete operations on it.
In addition, in practical use, the __proto__ property points to a complete object literal. It is often necessary to perform more granular operations, such as addition, deletion, or modification, on this object (where modification and addition share the same syntax). Below are examples of each operation :
obj.__proto__.a = 1
x = obj.__proto__.a
delete obj.__proto__.a

Similarly, the implementation of the constructor's prototype is missing, as exemplified by the following:
Class.prototype = {}
obj = Class.prototype
delete Class.prototype
More granular property manipulation, for example, is as follows:
Class.prototype.a = 1
x = Class.prototype.a
delete Class.prototype.a

So here we add some corresponding codeGenerators to cover the above scenarios.

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.

1 participant