I actually had the same question a while back. My Kingdom of Shendenflar campaign setting is set in the World Of Greyhawk which is of course a Wizards of the Coast/Hasbro product. After some research and e-mailing I discovered that as long as I don't try to make any money off of it I'm not breaking any laws.