Gadget security guide

Check out Michael Howard's and Dave Ross' nice article on how to write a more secure gadget at https://msdn2.microsoft.com/en-us/library/bb498012.aspx.