A computer breach in Massachusetts has seen the town treasurer lose almost $50,000.