Giter Club home page Giter Club logo

csed499i-01's Introduction

csed499I-01

Introduction

This repository is for CSED499I-01 class, POSTECH. The goal of this project is to write an exploit code for an V8 that works for V8 that runs with --wasm-write-protect-code-memory flag, with an assumption of OOB read and write. The working V8 environment is 8.4.0 version, commit 780665ad.

Purpose

The purpose of this repository is to demonstrate how WebAssembly module can be utilized in exploiting V8, even with --wasm-write-protect-code-memory flag. The exploit codes of this repository demonstrates that WebAssembly module can be utilized as a provider for ROP gadgets, thereby allowing useful gadgets to be contained in a WebAssembly compiled code.

Files

This repository contains five files. First, oob.patch file is a patch file that allows oob access for JSArrays. The patch is based on *CTF 2019 oob-v8 problem, but it is patched in a different way. (How oob function works, Pointer compression) Second, wasm-pwn-rwx.js file exploits patched V8 utilizing RWX page generated by WebAssembly module. Third, wasm-pwn-rx.js file exploits patched V8 using a technique similar to JIT spraying. Fourth, wasm2buffer.py converts a .wasm file into code buffer. Finally, addThree.wat shows a WebAssembly text format code which is used in wasm-pwn-rx.js.

wasm-pwn-rwx.js file runs only without --wasm-write-protect-code-memory flag. However, wasm-pwn-rx.js file can run with --wasm-write-protect-code-memory flag.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.