Can the attackers push bad code to 1password servers, which would then push bad JS code to customers, grabbing master keys when they are typed and all passwords?
Yes, only customers have the keys, but that's useful assuming the infrastructure is secure, which is often not the case.