A patient is complaining of an open sore on the buccal mucosa. The lesion is painless, ulcerated, has indurated margins, 1.5 cm in diameter, covered by greyish-white exudate, enlarged lymph nodes and tender, negative tuberculin test and positive serology. The diagnosis is