You do not need to buy the entire battery cable assembly. What you’re seeing there is, essentially, an adaptor that turns the normal car battery terminal into a marine battery terminal. The black plastic thing is the master fuse for the battery, which is, in turn, fastened the marine terminal via the green nut in the pic.
A new automotive to marine battery terminal will get you back up and running. Wallyworld can hook you up for less than $5.
Amazon can hook you up with the Genuine Hyundai 37260-2E100 Positive Battery Terminal for a few bucks more.
For the Macgyver solution, to tide you over till you get the new part, drive a screw or nail in there, in between the car’s existing terminal and the battery terminal, to tighten it up.