I don't know for sure if that's the case but as was pointed out, properly reseating the toilet is such an cheap & easy thing to do that it's the best place to start. I was amazed that even though mine wasn't leaking water the smell came from so many seemingly unrelated places.

Good luck.