Git Product home page Git Product logo

ghostrule's Introduction

GhostRule

This is a series of exploits that bypass SAFER mode of Ghostscript.

Ghostscript <= 9.2x

The PoC codes shown below allow you to get command execution or file I/O at the privilege of the process even if Ghostscript is running on SAFER mode.
However, all of them bypass the protection by overwriting the security flags in systemdict therefore they have no longer effect against recent Ghostscript(>= 9.50) that have started employing the new SAFER implementation that prevents critical dictionaries from overwriting (refer to commit 79a06b).

"Rule #1": A .forceput exposure from .pdf_hook_DSC_Creator (CVE-2019-14811)

CVE-2019-14811 is a .forceput exposure from .pdf_hook_DSC_Creator and 'ghostrule1.ps' is the exploit for it.

Credit: @hhc0null

"Rule #2": A .forceput exposure from setuserparams (CVE-2019-14812)

CVE-2019-14812 is a .forceput exposure from setuserparams and 'ghostrule2.ps' is the exploit for it.

Credit: @hhc0null

"Rule #3": A .forceput exposure from setsystemparams (CVE-2019-14813)

CVE-2019-14813 is a .forceput exposure from setsystemparams and 'ghostrule3.ps' is the exploit for it.

Credit: @hhc0null

"Rule #4": A .forceput exposure from .buildfont1 (CVE-2019-10216)

CVE-2019-10216 is a .forceput exposure from buildfont1 and 'ghostrule4.ps' is the exploit for it.

Credit: Artifex Software and Netanel (Cloudinary) as the "original" reporter...???

"Rule #5": '???'

I'm not so ethical thus I'm keeping the technique to grow its 'lifetime' <3


The name is from:

DECO*27 - ゴーストルール feat. 初音ミク

ghostrule's People

Contributors

hhc0null avatar

Stargazers

Dante Mendoza avatar pnig0s avatar o0xmuhe avatar  avatar Geometry6151 avatar Image avatar SamEng avatar  avatar jax777 avatar 星博's Github avatar  avatar  avatar d3adf1sh avatar Manasseh Zhou avatar Goyotan avatar

Watchers

James Cloos avatar  avatar

ghostrule's Issues

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.