Jump to content
Nytro

Adobe Flash - Object.unwatch Use-After-Free Exploit

Recommended Posts

Posted

Adobe Flash - Object.unwatch Use-After-Free Exploit

Sources: 
https://bugs.chromium.org/p/project-zero/issues/detail?id=716
https://googleprojectzero.blogspot.ca/2016/03/life-after-isolated-heap.html
 
The bug is an uninitialized variable in the fix to an ActionScript 2 use-after-free bug. Roughly 80 of these types of issues have been fixed by Adobe in the past year, and two uninitialized variable issues were introduced in the fixes. 
 
 This issue is fairly easy to reproduce, a proof-of-concept for this issue in its entirety is:
 
  var o = {};
 o.unwatch();
 
 The bug occurs because the use-after-free check in the unwatch method attempts to convert its first parameter to a string by calling toString on it before continuing with the part of the method where toString  could cause problems by freeing an object. However, Flash does not check that this parameter exists before calling toString on it. In pseudo-code, the rough behaviour of this method is:
 
  void* args = alloca( args_size );
 for( int i = 0; i < args_size; i++){
  // Init args
 }
 
 if ( ((int) args[0]) & 6 == 6 )
  args[0] = call_toString( args[0] );
 
 if ( args_size < 1)
  exit();
 
 
Exploit:
https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/39631.zip

Sursa: https://www.exploit-db.com/exploits/39631/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...