CrossGeeks / AzurePushNotificationPlugin

Azure Push Notification Plugin for Xamarin iOS and Android
MIT License
67 stars 34 forks source link

Registration Security #49

Closed mphill closed 4 years ago

mphill commented 4 years ago

If the notification hub connection string is in the app, wouldn't that allow an attacker to register for other user's notifications? For instance if the system uses integer primary keys, and I am user ID 20, I could create a registration for user ID 21 by essentially forging the registration request and intercept users ID 21's notifications.

Is the work around to abstract way the integers with guids?

Thanks for your guidance on this.

rdelrosario commented 4 years ago

One option you have is to have an endpoint on your backend that provides this connection string once user is logged in. That way you won't have it in your application exposed.