module

Ghostscript Failed Restore Command Execution

Disclosed
2018-08-21
Created
2019-03-19

Description

This module exploits a -dSAFER bypass in Ghostscript to execute
arbitrary commands by handling a failed restore (grestore) in
PostScript to disable LockSafetyParams and avoid invalidaccess.

This vulnerability is reachable via libraries such as ImageMagick.

Authors

Tavis Ormandy
wvu wvu@metasploit.com

Platform

Linux,Unix,Windows

Architectures

cmd, x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands ‘show options’ or ‘show advanced’:


msf > use exploit/multi/fileformat/ghostscript_failed_restore
msf exploit(ghostscript_failed_restore) > show targets
...targets...
msf exploit(ghostscript_failed_restore) > set TARGET < target-id >
msf exploit(ghostscript_failed_restore) > show options
...show and set options...
msf exploit(ghostscript_failed_restore) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.