It sounds like attorney fees were incurred during the initial period of confusion after you bought the condo. Unfortunately is is almost always the duty of the purchaser to determine how to pay the HOA, and this is why payment details and the HOA's address are usually provided at closing. Confessions of judgment can vary state to state but will allow a judgment to be entered against you without notice to you. Don't sign them unless specifically advised to do so by an attorney since you won't know what the judgment against you will be. There may be a lien for the attorney fees but if the firm ran up expenses while the HOA allowed you to pay, you may have an equitable argument against having to pay legal fees. See if you can get a free consultation just so you can be aware of your rights and options. Worst case scenario, if the lien is valid, yes, they could foreclose.
I hope that this answer helps you in a general sense, but it does not constitute legal advice, nor tax advice of any kind, and does not create an attorney-client relationship between you and myself or my firm.
Nearly all states have laws that allow for a lien to attach to real estate for past due HOA payments and other assessments that can include attorney's fees ;sometimes automatically when they become past due.They are called "statutory liens".Sometimes the HOA files them as well with the deed recorder as notice to other creditors that they are first in line.It's to basically insure collectability since the HOA depends on them to function.They are hard to discharge in bankruptcy for example.As for foreclosure,I agree with other counsel that this is possible.There are different ways to accomplish this under different laws but the HOA would probably reserve that right untl there was a substantial arrearage because of the costs involved.You should get a consult to advise you of the particulars and what the confession of judgment provision entails specifically.
This answer does not create an attorney/client relationship and is for informational purposes only.For further information please schedule a consultation with an attorney of your choice in your area or at my offices at the location on my Avvo profile