AuthBot icon indicating copy to clipboard operation
AuthBot copied to clipboard

Magic number

Open JWiersema opened this issue 9 years ago • 2 comments

So the code says this about the magic number:

//IMPORTANT: DO NOT REMOVE THE MAGIC NUMBER CHECK THAT WE DO HERE. THIS IS AN ABSOLUTE SECURITY REQUIREMENT
                    //REMOVING THIS WILL REMOVE YOUR BOT AND YOUR USERS TO SECURITY VULNERABILITIES. 
                    //MAKE SURE YOU UNDERSTAND THE ATTACK VECTORS AND WHY THIS IS IN PLACE.

So why is this so? Is there any other way to get rid of the security vulnerabilities? Of course it still needs to be secure. What I'm trying to do is authenticate a user to MS graph and then have them perform queries. If the user didnt need to paste something from the webpage, then they could get right back to the conversation with the S4B bot using a SIP link Return to bot (i think). Sadly you cannot add an initial message to the SIP link.

JWiersema avatar Jul 19 '17 13:07 JWiersema

Have a look at these discussions @JWiersema https://github.com/MicrosoftDX/AuthBot/issues/23#issuecomment-308699649 https://github.com/MicrosoftDX/AuthBot/issues/26#issuecomment-310142801

LTsLlama avatar Oct 18 '17 03:10 LTsLlama

Thanks mate, that clarifies things!

JWiersema avatar Oct 18 '17 06:10 JWiersema