Security analysis of ensemble-based quantum token protocol under advanced attacks