It would seem that the caster is immune, as is black zetsu and anyone black zetsu is controlling (though that could be attributed to Obito being so close to death that the genjutsu, and subsuquent tree sucking, would kill him). Anyone with the foreheadiggan is probably immune I would say.