The bank can indeed foreclose on the second mortgage even if the first is current.  What happens in that situation depends on what the first mortgage holder wishes to do. They could step up and purchase the second mortgage or maybe the second can negotiate for the first,  But they are both secured lenders and you need help if you intend on defaulting.  Good luck.