Well, I think many would agree that there are a lot of malignant personalities in ob/gyn. The clinical rotation is six to eight weeks, but is regularly regarded as one of the worst in the entire third year and many students feel like quiting medicine after it, it can be that bad. Ob/gyns feel entitled to verbally harass, and even physically harass, students. It is really hard to figure out why it is this way at some places, some students/residents love ob/gyn, but yeah it is overall worst than most.
Surgery gets slammed a lot too, though not nearly as much as ob/gyn. Surgeons, i.e. residents and attendings take time to make your day difficult in many places and enjoy reducing people to tears.
There are malignant attendings in other fields as well, such as peds, IM, even family practice doctors can have a bad attitude.
It depends on the specific attending, if they are really bad then the whole place becomes sort of contaminated.
I don't think that some specialties "attract" bad attendings necessarily, but some allow for a greater degree of torment to be dished out to residents and attendings. Consider ob/gyn, important specialty that encompases medical and surgical aspects, its practitioners act often as though they have no soul and make life difficult for residents and students. This is due to a poor culture and engrained harassment which is sort of viewed as just the way things are done in ob/gyn.
Take the same sadistic attending and put him or her in another specialty (theoretically) such as family medicine and their behavior would be considered to be pretty bad and would might draw the attention of colleagues. In the ob/gyn department nobody cares if a residnet or attending harasses somebody else. I think in a way mean people are drawn into ob/gyn, surgery and IM because they hope it will allow them to act like pricks I guess? Because a lot of them sure hate their field!