A mortgage broker works for both the borrower and the lender.  They are middlemen between the two parties.