-
Notifications
You must be signed in to change notification settings - Fork 27
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
getOwnPropertyDescriptor() can be used to get access to raw values #20
Comments
ravijayaramappa
added a commit
to ravijayaramappa/observable-membrane
that referenced
this issue
Aug 21, 2018
ravijayaramappa
added a commit
to ravijayaramappa/observable-membrane
that referenced
this issue
Aug 21, 2018
ravijayaramappa
added a commit
to ravijayaramappa/observable-membrane
that referenced
this issue
Aug 21, 2018
Test to demostrate that membrane containment can be bypassed using getOwnPropertyDescriptor()
ravijayaramappa
added a commit
to ravijayaramappa/observable-membrane
that referenced
this issue
Aug 21, 2018
Test to demostrate that membrane containment can be bypassed using getOwnPropertyDescriptor()
ravijayaramappa
changed the title
getOwnPropertyDescriptor() can be used to get access to real raw values
getOwnPropertyDescriptor() can be used to get access to raw values
Aug 21, 2018
ravijayaramappa
added a commit
to ravijayaramappa/observable-membrane
that referenced
this issue
Aug 21, 2018
Test to demostrate that membrane containment can be bypassed using getOwnPropertyDescriptor()
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When an observable value has a configurable property, the reactive proxy and the readonly proxy can be bypassed to gain access to the underlying raw value.
This can be done using the getOwnPropertyDescriptor() to gain access to the raw descriptor of the raw value. In the case of the read-only proxy, the user can bypass the read only membrane and mutate the original object.
Further, the proxy implementation has to protection for descriptors that have a getter/setter.
Steps to Reproduce
Added tests as part of a PR: #21
Expected Results
Should not be able to evade the membrane containment using getOwnPropertyDescriptor()
Actual Results
Able to get out of the membrane
Browsers Affected
all
Version
0.25.0
Possible Solution
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: