They were exposed to an unimaginably shameful sight.
Something with an ugly appearance is a shameful sight. You feel bad just looking at it. It probably feels bad too.
This is a jukugo word that uses the on'yomi readings of the kanji. You should be able to read this on your own.